:root {
    --brides-white: #ffffff;
    --brides-background: #f9f6f1;
    --brides-background-secondary: #f3ede5;
    --brides-text: #25221f;
    --brides-muted: #817a73;
    --brides-border: #d9d1c8;
    --brides-gold: #b68b4c;
    --brides-gold-hover: #96703c;
    --brides-danger: #b14646;
}

html {
    scroll-behavior: smooth;
}

.brides-page {
    color: var(--brides-text);
    background: var(--brides-background);
}

.brides-container {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
}

/* Hero */

.brides-hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    color: var(--brides-white);
}

.brides-hero__background,
.brides-hero__overlay {
    position: absolute;
    inset: 0;
}

.brides-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brides-hero__overlay {
    background: linear-gradient(
        90deg,
        rgba(15, 13, 11, 0.72) 0%,
        rgba(15, 13, 11, 0.33) 48%,
        rgba(15, 13, 11, 0.08) 100%
    );
}

.brides-hero__logo {
    position: absolute;
    top: 34px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    font-family: "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 300;
    letter-spacing: 7px;
    white-space: nowrap;
}

.brides-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.brides-hero__content {
    max-width: 620px;
    padding: 140px 0 80px;
}

.brides-hero h1,
.brides-section-heading h2,
.brides-thank-you h1 {
    margin: 0;
    font-family: "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.02;
}

.brides-hero h1 {
    margin-bottom: 30px;
    font-size: clamp(46px, 5.2vw, 82px);
}

.brides-hero__content p {
    max-width: 500px;
    margin: 0 0 40px;
    font-size: 17px;
    line-height: 1.7;
}

.brides-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
}

.brides-hero__scroll span {
    position: absolute;
    top: 4px;
    left: 7px;
    width: 16px;
    height: 16px;
    border-right: 1px solid var(--brides-white);
    border-bottom: 1px solid var(--brides-white);
    transform: rotate(45deg);
    animation: brides-scroll 1.8s infinite;
}

@keyframes brides-scroll {
    0%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(7px) rotate(45deg);
        opacity: 1;
    }
}

/* Buttons */

.brides-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    min-height: 56px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.brides-button--transparent {
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--brides-white);
    background: transparent;
}

.brides-button--transparent:hover {
    color: var(--brides-text);
    background: var(--brides-white);
}

.brides-button--gold {
    color: var(--brides-white);
    background: var(--brides-gold);
}

.brides-button--gold:hover {
    color: var(--brides-white);
    background: var(--brides-gold-hover);
}

.brides-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* Form section */

.brides-form-section {
    padding: 110px 0 120px;
    background: radial-gradient(circle at center top, #ffffff 0, var(--brides-background) 58%);
}

.brides-section-heading {
    margin-bottom: 65px;
    text-align: center;
}

.brides-section-heading h2 {
    margin-bottom: 15px;
    font-size: clamp(38px, 4vw, 60px);
}

.brides-section-heading p {
    margin: 0;
    color: var(--brides-muted);
    font-size: 15px;
    line-height: 1.7;
}

.brides-alert {
    margin-bottom: 30px;
    padding: 18px 22px;
    border: 1px solid;
    font-size: 14px;
}

.brides-alert--danger {
    border-color: rgba(177, 70, 70, 0.4);
    color: var(--brides-danger);
    background: rgba(177, 70, 70, 0.05);
}

.brides-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 40px;
}

/* Fields */

.brides-field {
    position: relative;
}

.brides-field label,
.brides-upload-group__heading label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.brides-field label span {
    color: var(--brides-danger);
}

.brides-field input,
.brides-field select,
.brides-field textarea {
    width: 100%;
    border: 1px solid var(--brides-border);
    border-radius: 0;
    outline: none;
    box-sizing: border-box;
    color: var(--brides-text);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.brides-field input,
.brides-field select {
    height: 54px;
    padding: 0 16px;
}

.brides-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--brides-muted) 50%),
        linear-gradient(135deg, var(--brides-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 15px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 45px;
}

.brides-field textarea {
    min-height: 190px;
    padding: 18px;
    resize: vertical;
}

.brides-field input:focus,
.brides-field select:focus,
.brides-field textarea:focus {
    border-color: var(--brides-gold);
    background: var(--brides-white);
}

.brides-field input::placeholder,
.brides-field textarea::placeholder {
    color: #aaa39c;
}

.brides-field .is-invalid,
.brides-dropzone.is-invalid {
    border-color: var(--brides-danger);
}

.brides-field__description,
.brides-upload-group__heading p {
    margin: -4px 0 14px;
    color: var(--brides-muted);
    font-size: 12px;
    line-height: 1.6;
}

.brides-field__error {
    margin-top: 8px;
    color: var(--brides-danger);
    font-size: 12px;
    line-height: 1.4;
}

.brides-field--full {
    margin-top: 58px;
}

.brides-character-counter {
    position: absolute;
    right: 14px;
    bottom: 13px;
    color: var(--brides-muted);
    font-size: 11px;
}

/* Uploads */

.brides-video-upload {
    position: relative;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--brides-border);
    background: rgba(255, 255, 255, 0.45);
}

.brides-video-upload__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brides-video-upload__name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brides-video-upload__size {
    flex-shrink: 0;
    color: var(--brides-muted);
    font-size: 11px;
}

.brides-video-upload__progress {
    width: 100%;
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    background: var(--brides-border);
}

.brides-video-upload__progress-bar {
    width: 0;
    height: 100%;
    background: var(--brides-gold);
    transition: width 0.2s ease;
}

.brides-video-upload__status {
    margin-top: 8px;
    color: var(--brides-muted);
    font-size: 11px;
}

.brides-video-upload.is-completed .brides-video-upload__status {
    color: var(--brides-gold-hover);
}

.brides-video-upload.is-failed {
    border-color: var(--brides-danger);
}

.brides-video-upload.is-failed .brides-video-upload__status {
    color: var(--brides-danger);
}

.brides-video-upload__remove {
    margin-top: 10px;
    padding: 0;
    border: 0;
    color: var(--brides-danger);
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

.brides-video-upload__remove:disabled {
    cursor: wait;
    opacity: 0.5;
}

.brides-upload-group {
    margin-top: 58px;
}

.brides-dropzone {
    display: flex;
    min-height: 180px;
    border: 1px dashed var(--brides-border);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    box-sizing: border-box;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.brides-dropzone:hover,
.brides-dropzone.is-dragging {
    border-color: var(--brides-gold);
    background: rgba(255, 255, 255, 0.8);
}

.brides-dropzone__icon {
    display: flex;
    width: 42px;
    height: 42px;
    border: 1px solid var(--brides-muted);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    color: var(--brides-muted);
    font-size: 24px;
    line-height: 1;
}

.brides-dropzone strong {
    font-size: 13px;
    font-weight: 500;
}

.brides-dropzone small {
    color: var(--brides-muted);
    font-size: 11px;
}

.brides-file-preview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.brides-photo-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.8;
    border: 1px solid var(--brides-border);
    background: var(--brides-background-secondary);
}

.brides-photo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brides-photo-preview__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 7px;
    color: var(--brides-white);
    background: rgba(0, 0, 0, 0.55);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brides-photo-preview__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px;
    color: var(--brides-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    word-break: break-word;
}

.brides-file-list {
    margin-top: 20px;
}

.brides-file-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--brides-border);
    align-items: center;
}

.brides-file-item__name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brides-file-item__size {
    color: var(--brides-muted);
    font-size: 12px;
}

/* Consent */

.brides-consent {
    margin-top: 35px;
}

.brides-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #5e5954;
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.brides-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.brides-consent__check {
    position: relative;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid var(--brides-border);
    box-sizing: border-box;
    background: var(--brides-white);
}

.brides-consent input:checked + .brides-consent__check {
    border-color: var(--brides-gold);
    background: var(--brides-gold);
}

.brides-consent input:focus-visible + .brides-consent__check {
    outline: 2px solid rgba(182, 139, 76, 0.35);
    outline-offset: 2px;
}

.brides-consent input:checked + .brides-consent__check::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border-right: 1px solid var(--brides-white);
    border-bottom: 1px solid var(--brides-white);
    content: "";
    transform: rotate(45deg);
}

/* Form footer */

.brides-form__footer {
    margin-top: 45px;
    text-align: center;
}

.brides-form__footer p {
    margin: 18px 0 0;
    color: var(--brides-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* Thank you */

.brides-thank-you {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr 1fr;
    background: var(--brides-background);
}

.brides-thank-you__image {
    min-height: 100vh;
}

.brides-thank-you__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brides-thank-you__content {
    display: flex;
    padding: 80px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    text-align: center;
}

.brides-thank-you__heart {
    margin-bottom: 15px;
    color: var(--brides-gold);
    font-size: 58px;
    font-weight: 300;
    line-height: 1;
}

.brides-thank-you h1 {
    margin-bottom: 24px;
    font-size: clamp(52px, 5vw, 78px);
}

.brides-thank-you p {
    margin: 4px 0;
    line-height: 1.7;
}

.brides-thank-you__welcome {
    font-weight: 600;
}

.brides-thank-you__separator {
    display: block;
    width: 100px;
    height: 1px;
    margin: 32px auto;
    background: var(--brides-gold);
}

.brides-thank-you__secondary {
    margin-bottom: 38px !important;
    color: var(--brides-muted);
    font-size: 13px;
}

/* Tablet */

@media (max-width: 991px) {
    .brides-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brides-file-preview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brides-thank-you__content {
        padding: 50px 30px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .brides-container {
        width: min(100% - 30px, 1320px);
    }

    .brides-hero {
        min-height: 760px;
    }

    .brides-hero__background img {
        object-position: 62% center;
    }

    .brides-hero__overlay {
        background: linear-gradient(
            0deg,
            rgba(15, 13, 11, 0.75) 0%,
            rgba(15, 13, 11, 0.15) 100%
        );
    }

    .brides-hero__logo {
        top: 25px;
        font-size: 25px;
        letter-spacing: 5px;
    }

    .brides-hero__container {
        align-items: flex-end;
        min-height: 760px;
    }

    .brides-hero__content {
        padding: 140px 0 105px;
    }

    .brides-hero h1 {
        margin-bottom: 22px;
        font-size: 48px;
    }

    .brides-hero__content p {
        margin-bottom: 30px;
        font-size: 14px;
    }

    .brides-button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .brides-form-section {
        padding: 75px 0;
    }

    .brides-section-heading {
        margin-bottom: 45px;
    }

    .brides-section-heading h2 {
        font-size: 40px;
    }

    .brides-form__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .brides-upload-group,
    .brides-field--full {
        margin-top: 42px;
    }

    .brides-dropzone {
        min-height: 160px;
        padding: 20px;
        text-align: center;
    }

    .brides-file-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brides-thank-you {
        display: flex;
        min-height: auto;
        flex-direction: column;
    }

    .brides-thank-you__image {
        height: 55vh;
        min-height: 420px;
    }

    .brides-thank-you__content {
        min-height: 55vh;
        padding: 65px 20px;
    }
}

/* Small mobile */

@media (max-width: 420px) {
    .brides-hero h1 {
        font-size: 42px;
    }

    .brides-section-heading h2 {
        font-size: 36px;
    }

    .brides-file-preview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .brides-thank-you h1 {
        font-size: 48px;
    }
}