﻿/* ============================================================
   AMER Wedding - Registration
   Revision 2
   ============================================================ */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Heebo", sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
}

.wedding-register-page {
    --wedding-gold: #a78328;
    --wedding-gold-dark: #806317;
    --wedding-gold-button: #bd9650;
    --wedding-text: #292625;
    --wedding-muted: #3f3a37;
    --wedding-bg: #ffffff;
    --wedding-bg-soft: #fafafa;
    --wedding-bg-warm: #fcfbf9;
    --wedding-border: #e8e4df;
    --wedding-purple: #7051a3;
    color: var(--wedding-text);
    background: white !important;
    /*background: var(--wedding-bg);*/
}


/* ============================================================
   Shared
   ============================================================ */

.register-container {
    width: min(1060px, calc(100% - 40px));
    margin-inline: auto;
}

.registration-container {
    width: min(1100px, calc(100% - 40px)) !important;
    margin-inline: auto;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 25px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--wedding-gold);
    font-size: 1.72rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.section-heading h2 {
    margin: 0 0 8px;
    color: var(--wedding-text);
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 750;
}

.section-heading p {
    margin: 0;
    color: var(--wedding-muted);
    font-size: .91rem;
    line-height: 1.65;
}


/* ============================================================
   HERO
   ============================================================ */

.register-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 20px 30px;
    text-align: center;
    /*background: radial-gradient( circle at 50% 15%, rgba(189, 150, 80, .055), transparent 37% ), #fff;*/
    border-bottom: 1px solid #f0ede9;
}

    .register-hero::before,
    .register-hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .register-hero::before {
        width: 170px;
        height: 170px;
        top: -105px;
        right: -80px;
        background: rgba(189, 150, 80, .035);
    }

    .register-hero::after {
        width: 130px;
        height: 130px;
        bottom: -85px;
        left: -60px;
        background: rgba(189, 150, 80, .03);
    }

.register-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-inline: auto;
}

.hero-ring {
    margin-bottom: 6px;
    font-size: 1.55rem;
}

.register-hero h1 {
    margin: 0 0 12px;
    color: var(--wedding-text);
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.18;
    font-weight: 750;
}

    .register-hero h1 span {
        display: block;
        margin-top: 3px;
        color: var(--wedding-gold);
    }

.hero-description {
    max-width: 650px;
    margin: 0 auto 20px;
    color: var(--wedding-muted);
    font-size: .96rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.btn-register-main,
.btn-register-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 19px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-register-main {
    color: #fff;
    background: var(--wedding-gold-button);
    border: 1px solid var(--wedding-gold-button);
    box-shadow: 0 4px 12px rgba(128, 99, 23, .12);
}

    .btn-register-main:hover {
        color: #fff;
        background: var(--wedding-gold);
        border-color: var(--wedding-gold);
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(128, 99, 23, .16);
    }

.btn-register-secondary {
    color: var(--wedding-text);
    background: #fff;
    border: 1px solid #e3ddd7;
}

    .btn-register-secondary:hover {
        color: var(--wedding-gold-dark);
        background: #fafafa;
        transform: translateY(-1px);
    }

.guide-link {
    color: var(--wedding-gold-dark);
    font-size: .9rem;
    text-underline-offset: 3px;
}


/* ============================================================
   FEATURES
   ============================================================ */

.features-section {
    padding: 34px 0 30px;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 50px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid var(--wedding-border);
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(48, 38, 30, .025);
}

.feature-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #faf9f7;
    font-size: 1.1rem;
}

.feature-content {
    min-width: 0;
}

    .feature-content h3 {
        margin: 0 0 4px;
        color: var(--wedding-gold-dark);
        font-size: .91rem;
        font-weight: 700;
    }

    .feature-content p {
        margin: 0;
        color: var(--wedding-muted);
        font-size: .79rem;
        line-height: 1.55;
    }

.show-more-features {
    display: none;
}


/* ============================================================
   GUIDE
   ============================================================ */

.guide-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 16px;
    background: #fcfbf9;
    border: 1px solid var(--wedding-border);
    border-radius: 9px;
}

.guide-box-icon {
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.guide-box-content {
    flex: 1;
}

    .guide-box-content h3 {
        display: inline;
        margin: 0;
        font-size: .84rem;
        font-weight: 700;
    }

    .guide-box-content p {
        display: inline;
        margin: 0 0 0 5px;
        color: var(--wedding-muted);
        font-size: .76rem;
    }

.guide-box-link {
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--wedding-gold-dark);
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
}

    .guide-box-link:hover {
        text-decoration: underline;
    }


/* ============================================================
   REGISTRATION SECTION
   ============================================================ */

.registration-section {
    padding: 34px 0 42px;
    background: white;
    border-top: 1px solid #efedea;
}

.registration-heading {
    margin-bottom: 23px;
}

.registration-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--wedding-border);
    border-radius: 14px;
    box-shadow: 0 7px 24px rgba(45, 38, 32, .055);
}

    .registration-card form {
        padding: 28px 32px 30px;
    }

.registration-validation:empty {
    display: none;
}


/* ============================================================
   FORM SECTIONS
   ============================================================ */

.form-section {
    width: 100%;
    padding-bottom: 26px;
}

    .form-section + .form-section {
        padding-top: 26px;
        border-top: 1px solid var(--wedding-border);
    }

.form-section-header {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
}

.form-section-number {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--wedding-gold-button);
    font-size: .78rem;
    font-weight: 700;
}

.form-section-header > div:last-child {
    flex: 1;
}

.form-section-header h3 {
    margin: 0 0 2px;
    color: var(--wedding-text);
    font-size: 1rem;
    font-weight: 700;
}

.form-section-header p {
    margin: 0;
    color: var(--wedding-muted);
    font-size: .76rem;
}


/* ============================================================
   Inputs
   ============================================================ */

.registration-card .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 14px;
    width: auto;
}

.registration-card .form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--wedding-text);
    font-size: .8rem;
    font-weight: 600;
}

.registration-card .form-control {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    padding: .48rem .7rem;
    color: var(--wedding-text);
    background: #fff;
    border: 1px solid #dcd7d2;
    border-radius: 7px;
    font-size: .88rem;
    box-sizing: border-box;
}

    .registration-card .form-control:focus {
        border-color: #b7954c;
        box-shadow: 0 0 0 .17rem rgba(183, 149, 76, .11);
    }

.registration-card input[type="date"] {
    width: 100% !important;
    max-width: none !important;
}

.wedding-date-field {
    margin-inline-start: 0;
}

.field-note {
    margin-top: 5px;
    color: var(--wedding-muted);
    font-size: .7rem;
    line-height: 1.45;
}

.registration-card .text-danger {
    font-size: .74rem;
}


/* ============================================================
   SECOND USER
   ============================================================ */

.second-user-section {
    margin-top: 0;
    background: #fcfbfa;
    border: 1px solid var(--wedding-border);
    border-radius: 10px;
}

.second-user-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: var(--wedding-text);
    background: transparent;
    border: 0;
    text-align: right;
    cursor: pointer;
}

.second-user-toggle-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.second-user-plus {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--wedding-purple);
    background: #fff;
    border: 1px solid var(--wedding-border);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
}

.second-user-toggle strong {
    display: block;
    margin-bottom: 1px;
    font-size: .84rem;
}

.second-user-toggle small {
    display: block;
    color: var(--wedding-muted);
    font-size: .7rem;
    font-weight: 400;
}

.second-user-arrow {
    color: var(--wedding-muted);
    font-size: 1rem;
    transition: transform .2s ease;
}

.second-user-toggle.open .second-user-arrow {
    transform: rotate(180deg);
}

.second-user-fields {
    display: none;
    padding: 3px 15px 17px;
}

    .second-user-fields.open {
        display: block;
    }

.second-user-intro {
    margin-bottom: 15px;
    padding: 10px 12px;
    color: var(--wedding-muted);
    background: #fff;
    border: 1px solid #efebe7;
    border-radius: 7px;
    font-size: .72rem;
    line-height: 1.55;
}


/* ============================================================
   SUBMIT
   ============================================================ */

.registration-submit {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--wedding-border);
}

.next-step-info {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 7px;
}

.next-step-icon {
    flex: 0 0 auto;
    font-size: .85rem;
}

.next-step-info strong {
    display: block;
    margin-bottom: 1px;
    font-size: .78rem;
}

.next-step-info span:not(.next-step-icon) {
    display: block;
    color: var(--wedding-muted);
    font-size: .69rem;
    line-height: 1.45;
}

.btn-continue-payment {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    color: #fff;
    background: var(--wedding-gold-button);
    border: 0;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 650;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .btn-continue-payment:hover {
        background: var(--wedding-gold);
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(128, 99, 23, .15);
    }


/* ============================================================
   LOGIN / PRIVACY
   ============================================================ */

.login-link {
    margin-top: 15px;
    color: var(--wedding-muted);
    text-align: center;
    font-size: .8rem;
}

    .login-link a {
        color: var(--wedding-gold-dark);
        font-weight: 650;
    }

.privacy-note {
    max-width: 630px;
    margin: 17px auto 0;
    color: var(--wedding-muted);
    font-size: .75rem;
    line-height: 1.55;
    text-align: center;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 767.98px) {

    .register-container {
        width: min(100% - 28px, 680px);
    }

    .registration-container {
        width: min(100% - 24px, 650px);
    }

    .register-hero {
        padding: 36px 16px 34px;
    }

    .features-section {
        padding: 36px 0 34px;
    }

    .registration-section {
        padding: 38px 0 44px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .registration-card form {
        padding: 25px 24px 27px;
    }
}


/* ============================================================
   REAL MOBILE UI
   ============================================================ */

@media (max-width: 575.98px) {

    /*
       Important:
       On mobile the page is not a scaled-down desktop page.
       It gets its own proportions.
    */

    .register-container,
    .registration-container {
        width: calc(100% - 20px);
    }


    /* --------------------------------------------------------
       HERO
       -------------------------------------------------------- */

    .register-hero {
        padding: 27px 12px 29px;
        background: #fff;
    }

        .register-hero::before,
        .register-hero::after {
            display: none;
        }

    .hero-ring {
        margin-bottom: 4px;
        font-size: 1.35rem;
    }

    .register-hero h1 {
        margin-bottom: 11px;
        font-size: 1.9rem;
        line-height: 1.18;
    }

    .hero-description {
        max-width: 350px;
        margin-bottom: 17px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: min(100%, 350px);
        margin: 0 auto 12px;
    }

    .btn-register-main,
    .btn-register-secondary {
        width: 100%;
        min-height: 45px;
        font-size: .95rem;
    }

    .guide-link {
        font-size: .85rem;
    }


    /* --------------------------------------------------------
       HEADINGS
       -------------------------------------------------------- */

    .section-heading {
        margin-bottom: 21px;
    }

    .section-eyebrow {
        font-size: .98rem;
    }

    .section-heading h2 {
        margin-bottom: 6px;
        font-size: 1.5rem;
    }

    .section-heading p {
        max-width: 340px;
        margin-inline: auto;
        font-size: .92rem;
        line-height: 1.6;
    }


    /* --------------------------------------------------------
       FEATURES
       -------------------------------------------------------- */

    .features-section {
        padding: 32px 0;
    }

    .features-grid {
        display: block;
    }

    .feature-item {
        min-height: 0;
        margin-bottom: 8px;
        padding: 13px 13px;
        gap: 11px;
        border-radius: 9px;
        box-shadow: none;
    }

    .feature-icon {
        flex: 0 0 37px;
        width: 37px;
        height: 37px;
        border-radius: 8px;
        font-size: 1.05rem;
    }

    .feature-content h3 {
        margin-bottom: 3px;
        font-size: .98rem;
    }

    .feature-content p {
        font-size: .86rem;
        line-height: 1.55;
    }

    /*
       First 4 are shown.
       Last 2 are hidden until "show more".
    */

    .feature-extra {
        display: none;
    }

    .features-grid.features-expanded .feature-extra {
        display: flex;
    }

    .show-more-features {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        margin-top: 3px;
        padding: 9px;
        color: var(--wedding-gold-dark);
        background: transparent;
        border: 0;
        font-size: .88rem;
        font-weight: 650;
    }

        .show-more-features .hide-text {
            display: none;
        }

        .show-more-features.expanded .show-text {
            display: none;
        }

        .show-more-features.expanded .hide-text {
            display: inline;
        }

    .show-more-arrow {
        transition: transform .2s ease;
    }

    .show-more-features.expanded .show-more-arrow {
        transform: rotate(180deg);
    }


    /* --------------------------------------------------------
       GUIDE
       -------------------------------------------------------- */

    .guide-box {
        display: block;
        margin-top: 11px;
        padding: 13px;
        text-align: center;
    }

    .guide-box-icon {
        display: none;
    }

    .guide-box-content h3 {
        display: block;
        margin-bottom: 3px;
        font-size: .9rem;
    }

    .guide-box-content p {
        display: block;
        margin: 0 0 6px;
        font-size: .82rem;
        line-height: 1.5;
    }

    .guide-box-link {
        display: inline-block;
        font-size: .85rem;
    }


    /* --------------------------------------------------------
       REGISTRATION
       -------------------------------------------------------- */

    .registration-section {
        padding: 32px 0 38px;
        background: white;
    }

    .registration-heading {
        margin-bottom: 19px;
    }

    .registration-card {
        width: 100%;
        border-radius: 11px;
        box-shadow: 0 4px 15px rgba(45, 38, 32, .045);
    }

        .registration-card form {
            width: 100%;
            padding: 21px 14px 23px;
        }


    /* --------------------------------------------------------
       FORM
       -------------------------------------------------------- */

    .form-section {
        padding-bottom: 23px;
    }

        .form-section + .form-section {
            padding-top: 23px;
        }

    .form-section-header {
        gap: 9px;
        margin-bottom: 17px;
    }

    .form-section-number {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        font-size: .73rem;
    }

    .form-section-header h3 {
        font-size: 1.05rem;
    }

    .form-section-header p {
        margin-top: 2px;
        font-size: .8rem;
        line-height: 1.5;
    }


    /*
       Force Bootstrap columns to full width on phones.
    */

    .registration-card .row {
        display: block;
        width: 100%;
        margin: 0;
    }

        .registration-card .row > [class*="col-"] {
            width: 100% !important;
            max-width: 100% !important;
            padding-right: 0 !important;
            padding-left: 0 !important;
            margin-bottom: 13px;
        }

            .registration-card .row > [class*="col-"]:last-child {
                margin-bottom: 0;
            }

    .registration-card .form-label {
        margin-bottom: 5px;
        font-size: .9rem;
    }

    .registration-card .form-control {
        width: 100% !important;
        max-width: none !important;
        min-height: 44px;
        padding: .55rem .7rem;
        font-size: 16px;
        border-radius: 7px;
    }

    /*
       16px prevents iPhone Safari from zooming
       automatically when an input gets focus.
    */

    .registration-card input,
    .registration-card select,
    .registration-card textarea {
        font-size: 16px;
    }

    .field-note {
        font-size: .85rem;
        line-height: 1.5;
    }

    .registration-card .text-danger {
        font-size: .8rem;
    }

    /* --------------------------------------------------------
       SECOND USER
       -------------------------------------------------------- */

    .second-user-section {
        margin-top: 1px;
        border-radius: 9px;
    }

    .second-user-toggle {
        padding: 13px 12px;
    }

    .second-user-toggle-main {
        gap: 9px;
    }

    .second-user-plus {
        flex: 0 0 29px;
        width: 29px;
        height: 29px;
    }

    .second-user-toggle strong {
        font-size: .9rem;
    }

    .second-user-toggle small {
        margin-top: 1px;
        font-size: .77rem;
        line-height: 1.45;
    }

    .second-user-fields {
        padding: 2px 12px 15px;
    }

    .second-user-intro {
        font-size: .8rem;
    }

    /* --------------------------------------------------------
       SUBMIT
       -------------------------------------------------------- */

    .registration-submit {
        margin-top: 18px;
        padding-top: 18px;
    }

    .next-step-info {
        align-items: flex-start;
        margin-bottom: 11px;
        padding: 10px;
    }

        .next-step-info strong {
            font-size: .86rem;
        }

        .next-step-info span:not(.next-step-icon) {
            font-size: .76rem;
            line-height: 1.5;
        }

    .btn-continue-payment {
        min-height: 47px;
        font-size: .96rem;
    }

    .login-link {
        margin-top: 14px;
        font-size: .86rem;
    }

    .privacy-note {
        margin-top: 15px;
        padding-inline: 6px;
        font-size: .76rem;
    }
}
.register-info-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

    .register-info-links .guide-link {
        margin: 0;
    }

.register-info-separator {
    opacity: .45;
}

@media (max-width: 576px) {
    .register-info-links {
        gap: 7px;
        font-size: 0.9rem;
    }
}