
/* ============================================
   REGISTRATION CONSENT / TERMS
   ============================================ */

.ef-register-form .ef-register-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-top: 16px;
    padding: 0;
    overflow: visible;
}

.ef-register-form .ef-register-consent input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 1px 0 0;
    cursor: pointer;
}

.ef-register-form .ef-register-consent label {
    display: block;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.ef-register-form .ef-register-consent a {
    color: #00719e;
    text-decoration: none;
}

.ef-register-form .ef-register-consent a:hover {
    text-decoration: underline;
}


/* ================================================
   ELITE FILIPINO — PREMIUM REGISTRATION POPUP
   ================================================ */

/* Keep the premium modal independent of legacy popup positioning */

/* ============================================
   PREMIUM REGISTRATION MODAL
   ============================================ */

#mainRegPopUp.ef-register-modal {
    position: fixed !important;

    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0 !important;

    transform: none;

    width: 100%;
    max-width: none;

    height: 100dvh;
    min-height: 0;
    max-height: none;

    margin: 0;
    padding: 24px;

    box-sizing: border-box;
    border-radius: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(12, 25, 40, 0.72);
    backdrop-filter: blur(7px);

    overflow-x: hidden;
    overflow-y: auto;

    z-index: 10000010;
}

/* ============================================
   Override legacy registration scrolling
   ============================================ */

.ef-register-form .regFormMain {
    overflow: visible;
    max-height: none;
}

/* ============================================
   PREMIUM REGISTRATION — GRID ALIGNMENT
   ============================================ */

.ef-register-form .heroPageFormGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
    min-width: 0;
}

.ef-register-form .heroPageFormGrid > div {
    min-width: 0;
}

/* Prevent horizontal overflow inside the registration form */

.ef-register-form .regContainer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ef-register-form input,
.ef-register-form button {
    max-width: 100%;
}

#mainRegPopUp.ef-register-modal.hidden {
    display: none !important;
}

.ef-register-modal {
    position: fixed;
    inset: 0;
    z-index: 10000010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 25, 40, 0.72);
    backdrop-filter: blur(7px);
    overflow-y: auto;
}

.ef-register-modal.hidden {
    display: none !important;
}

/* Main card */

.ef-register-card {
    display: grid;
    grid-template-columns: 44% 56%;
    width: 100%;
    max-width: 1040px;
    max-height: calc(100dvh - 48px);
    margin: auto;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

/* ================================================
   LEFT PHOTO
   ================================================ */

.ef-register-visual {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #00719e;
}

.ef-register-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   LEFT PANEL — PREMIUM TEAL IMAGE GRADIENT
   ============================================ */

.ef-register-photo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(0, 35, 50, 0.18) 0%,
        rgba(0, 45, 65, 0.12) 25%,
        rgba(0, 60, 85, 0.35) 42%,
        rgba(0, 75, 105, 0.78) 62%,
        rgba(0, 76, 108, 0.96) 82%,
        rgba(0, 65, 95, 0.99) 100%
    );
}

.ef-register-brand {
    position: absolute;
    top: 30px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ef-register-heart {
    color: #ff79a9;
    font-size: 30px;
}

.ef-register-visual-content {
    position: absolute;
    bottom: 38px;
    left: 34px;
    right: 34px;
    color: white;
}

.ef-register-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #c2e9f1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ============================================
   LEFT PANEL — ROMANTIC HEADLINE
   ============================================ */

.ef-register-visual-content h2 {
    margin: 0 0 16px;
    max-width: 390px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 3.2vw, 44px);
    font-style: italic;
    font-weight: 600;

    line-height: 1.12;
    letter-spacing: -0.7px;

    text-shadow: 0 2px 12px rgba(0, 25, 40, 0.25);
}

.ef-register-visual-content p {
    max-width: 330px;
    margin: 0;
    color: #e4f4f7;
    font-size: 14px;
    line-height: 1.7;
}

.ef-register-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   LEFT PANEL — TRUST FEATURES
   ============================================ */

.ef-register-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 24px;
}

.ef-register-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ef-register-feature-icon {
    display: flex;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #00719e;
    font-size: 20px;
}

.ef-register-feature:last-child .ef-register-feature-icon {
    color: #e95c89;
}

.ef-register-feature-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.ef-register-feature strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ef-register-feature p {
    margin: 3px 0 0;
    color: #e2f4fa;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 767px) {

    .ef-register-visual-content h2 {
        max-width: 310px;
        margin-bottom: 8px;

        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(25px, 6vw, 32px);
        font-style: italic;
        font-weight: 600;

        line-height: 1.12;
        letter-spacing: -0.4px;
    }

}

/* ================================================
   RIGHT REGISTRATION PANEL
   ================================================ */

.ef-register-content {
    min-width: 0;
    padding: 32px 38px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ef-register-heading {
    margin-bottom: 24px;
    text-align: center;
}

.ef-register-heading-heart {
    display: inline-block;
    margin-bottom: 8px;
    color: #e65b88;
    font-size: 26px;
}

.ef-register-heading h2 {
    margin: 0 0 8px;
    color: #153b4c;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.ef-register-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* Form */

.ef-register-form {
    padding: 0;
    margin: 0;
}

.ef-register-form input:not([type="checkbox"]):not([type="hidden"]),
.ef-register-form .select-button {
    min-height: 44px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #243746;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ef-register-form input:focus,
.ef-register-form .select-button:focus {
    outline: none;
    border-color: #00719e;
    box-shadow: 0 0 0 3px rgba(0, 113, 158, 0.12);
}

.ef-register-form .mainRegPopUpLabel {
    color: #344b5a;
    font-size: 12px;
    font-weight: 600;
}

.ef-register-form #btnSubmit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #00719e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ef-register-form #btnSubmit:hover {
    background: #005a7e;
    transform: translateY(-1px);
}


/* ============================================
   REGISTRATION POPUP — FORM REFINEMENTS
   ============================================ */

.ef-register-content {
    box-sizing: border-box;
    overflow-x: hidden;
}

.ef-register-heading {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.ef-register-heading h2 {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 8px;
}

.ef-register-form,
.ef-register-form * {
    box-sizing: border-box;
}

.ef-register-form {
    width: 100%;
    max-width: 100%;
}

.ef-register-form input:not([type="checkbox"]):not([type="hidden"]),
.ef-register-form .select-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 9px;
}

.ef-register-form .mainRegPopUpLabel {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.ef-register-form #btnSubmit {
    min-height: 50px;
    margin-top: 16px;
    border-radius: 10px;
    background: #00719e;
    font-size: 14px;
    font-weight: 700;
}

.ef-register-form #btnSubmit:hover {
    background: #005c82;
}

/* ============================================
   REGISTRATION PRIVACY REASSURANCE
   ============================================ */

.ef-register-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
    padding: 0 10px;

    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.ef-register-privacy-note svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #64748b;
}

@media (max-width: 767px) {
    .ef-register-privacy-note {
        margin-top: 12px;
        font-size: 11px;
    }
}

/* ============================================
   REGISTRATION TRUST INDICATORS
   ============================================ */

.ef-register-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.ef-register-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #d9eee5;
    border-radius: 30px;
    background: #f0faf5;
    color: #26734e;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ef-register-trust-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #d2f1df;
    color: #21804e;
    font-size: 11px;
    font-weight: 700;
}

/* Remove inherited decorative heading lines */

.ef-register-heading,
.ef-register-heading h2,
.ef-register-heading p {
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.ef-register-heading::before,
.ef-register-heading::after,
.ef-register-heading h2::before,
.ef-register-heading h2::after {
    content: none !important;
    display: none !important;
}






/* ================================================
   MOBILE REGISTRATION POPUP
   ================================================ */

@media screen and (max-width: 767px) {

    /* MODAL */
    .ef-register-modal {
        position: fixed;
        inset: 0;
        z-index: 10000010;

        display: flex;
        align-items: flex-start;
        justify-content: center;

        width: 100%;
        height: 100dvh;
        padding: 10px;

        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* MAIN CARD */
    .ef-register-card {
        display: block;

        width: 100%;
        max-width: 460px;
        min-width: 0;

        height: auto;
        max-height: calc(100dvh - 20px);

        margin: auto;
        border-radius: 16px;

        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* IMAGE PANEL */
    .ef-register-visual {
        position: relative;

        width: 100%;
        min-width: 0;
        height: 230px;
        min-height: 230px;

        overflow: hidden;
    }

    .ef-register-photo {
        object-position: center 35%;
    }

    .ef-register-brand {
        top: 16px;
        left: 20px;
        font-size: 18px;
    }

    .ef-register-visual-content {
        bottom: 18px;
        left: 20px;
        right: 20px;
    }

    .ef-register-visual-content h2 {
        max-width: 310px;
        margin-bottom: 8px;

        font-family: Georgia, "Times New Roman", serif;
        font-size: 26px;
        font-style: italic;
        font-weight: 600;

        line-height: 1.12;
        letter-spacing: -0.4px;
    }

    .ef-register-visual-content p {
        font-size: 12px;
        line-height: 1.4;
    }

    .ef-register-eyebrow {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .ef-register-benefits {
        margin-top: 12px;
        gap: 12px;
        font-size: 11px;
    }

    .ef-register-features {
        display: none;
    }

    /* FORM PANEL */
    .ef-register-content {
        width: 100%;
        min-width: 0;

        padding: 24px 20px;

        box-sizing: border-box;
        overflow: visible;
    }

    .ef-register-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .ef-register-heading h2 {
        font-size: 23px;
    }

    /* TRUST CHIPS */
    .ef-register-trust {
        gap: 7px;
        margin-bottom: 20px;
    }

    .ef-register-trust-item {
        padding: 7px 9px;
        font-size: 11px;
    }
}

/* ============================================
   MOBILE — COMPACT REGISTRATION HEADER
   ============================================ */

@media screen and (max-width: 500px) {

    .ef-register-heading {
        margin-bottom: 12px;
        text-align: center;
    }

    .ef-register-heading-heart {
        margin-bottom: 4px;
        line-height: 1;
    }

    .ef-register-heading h2 {
        margin: 4px 0 5px;
        font-size: 21px;
        line-height: 1.2;
    }

    .ef-register-heading p {
        margin: 0;
        font-size: 12px;
        line-height: 1.4;
    }

    /* Keep all three trust indicators on one row */

    .ef-register-trust {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;

        gap: 5px;
        margin: 10px 0 18px;
    }

    .ef-register-trust-item {
        display: inline-flex;
        flex: 0 1 auto;
        min-width: 0;
        align-items: center;
        justify-content: center;

        gap: 4px;
        padding: 5px 6px;

        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }

}


@media screen and (max-width: 500px) {

    #mainRegPopUp.ef-register-modal {
        padding: 10px;
        align-items: flex-start;
    }

}

/* ============================================
   MOBILE — FORM FIELD ALIGNMENT
   ============================================ */

@media screen and (max-width: 500px) {

    .ef-register-content {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .ef-register-form,
    .ef-register-form .tregFormMain {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .ef-register-form input,
    .ef-register-form select,
    .ef-register-form textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

}
