/* ==========================================================
   CONIC HOMES - REALTOR REGISTRATION FORM
   Responsive styling for desktop, tablet and mobile
   ========================================================== */

.realtor-registration-page,
.realtor-registration-page * {
    box-sizing: border-box;
}

.realtor-registration-page {
    --reg-orange: #f47721;
    --reg-red: #e5392d;
    --reg-ink: #172033;
    --reg-muted: #687386;
    --reg-border: #e1e6ed;
    --reg-surface: #ffffff;

    width: 100%;
    padding: 42px 20px 64px;
    margin: 0 auto;
    color: var(--reg-ink);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: #f7f8fb;
    overflow-wrap: anywhere;
}

.realtor-registration-page .registration-shell {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.realtor-registration-page .realtor-bg,
.realtor-registration-page .elementor-container,
.realtor-registration-page .elementor-column,
.realtor-registration-page .elementor-widget-wrap,
.realtor-registration-page .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.realtor-registration-page .form-title {
    margin: 0 0 12px;
    color: var(--reg-ink);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.7px;
}

.realtor-registration-page .form-subtitle {
    margin: 0 0 28px;
    color: var(--reg-muted);
    font-size: 14px;
    line-height: 1.8;
}

.realtor-registration-page .form-subtitle a {
    color: #c83d24;
    font-weight: 800;
    text-underline-offset: 3px;
}

.realtor-registration-page .section-card {
    width: 100%;
    margin: 0 0 24px;
    padding: 26px;
    background: var(--reg-surface);
    border: 1px solid var(--reg-border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 32, 51, 0.045);
}

.realtor-registration-page .section-heading {
    margin: 0 0 22px;
    padding: 0 0 14px;
    color: var(--reg-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    border-bottom: 2px solid #fff0e5;
    position: relative;
}

.realtor-registration-page .section-heading::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 68px;
    height: 2px;
    background: var(--reg-orange);
}

.realtor-registration-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 24px;
    align-items: start;
}

.realtor-registration-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--reg-ink);
    font-size: 14px;
    font-weight: 600;
}

.realtor-registration-page .form-group.full-width {
    grid-column: 1 / -1;
}

.realtor-registration-page .form-group label {
    display: block;
    margin: 0;
    color: #30394b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.realtor-registration-page .form-group input:not([type="checkbox"]):not([type="radio"]),
.realtor-registration-page .form-group select,
.realtor-registration-page .form-group textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    color: #172033;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.realtor-registration-page .form-group textarea {
    min-height: 88px;
    resize: vertical;
}

.realtor-registration-page .form-group input[type="file"] {
    width: 100%;
    min-height: 48px;
    padding: 9px;
    border: 1px dashed #cbd3df;
    border-radius: 9px;
    background: #fafbfc;
    font-family: inherit;
    font-size: 13px;
}

.realtor-registration-page .form-group input:focus,
.realtor-registration-page .form-group select:focus,
.realtor-registration-page .form-group textarea:focus {
    border-color: var(--reg-orange);
    box-shadow: 0 0 0 3px rgba(244, 119, 33, .13);
}

.realtor-registration-page .form-group input::placeholder,
.realtor-registration-page .form-group textarea::placeholder {
    color: #9aa3b2;
}

.realtor-registration-page .dob-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.realtor-registration-page .dob-fields select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    background: #fff;
    color: var(--reg-ink);
    font: inherit;
}

.realtor-registration-page .form-group small,
.realtor-registration-page #password-rules {
    font-size: 12px;
    line-height: 1.7;
}

.realtor-registration-page #username-feedback {
    font-weight: 600;
}

.realtor-registration-page #password-rules > div {
    margin-top: 3px;
}

.realtor-registration-page .checkbox-group {
    margin: 24px 0;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    color: #424b5c;
    font-size: 13px;
    line-height: 1.8;
}

.realtor-registration-page .checkbox-group ul {
    margin: 0;
    padding-left: 20px;
}

.realtor-registration-page .checkbox-group li {
    padding-left: 3px;
}

.realtor-registration-page .checkbox-group label {
    cursor: pointer;
}

.realtor-registration-page .checkbox-group input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 7px 0 0;
    vertical-align: middle;
    accent-color: var(--reg-orange);
}

.realtor-registration-page .realtor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 15px 24px;
    color: #fff;
    background: linear-gradient(110deg, var(--reg-red), var(--reg-orange));
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(229, 57, 45, .17);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.realtor-registration-page .realtor-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(229, 57, 45, .24);
}

.realtor-registration-page .realtor-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

/* Keep password visibility controls positioned inside their field. */
.realtor-registration-page #togglePassword {
    z-index: 2;
}

/* Tablet */
@media (max-width: 760px) {
    .realtor-registration-page {
        padding: 30px 16px 45px;
    }

    .realtor-registration-page .section-card {
        padding: 22px;
        border-radius: 13px;
    }

    .realtor-registration-page .form-grid {
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .realtor-registration-page {
        padding: 23px 12px 35px;
        font-size: 14px;
    }

    .realtor-registration-page .form-title {
        font-size: 23px;
        letter-spacing: -.4px;
    }

    .realtor-registration-page .form-subtitle {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .realtor-registration-page .section-card {
        padding: 18px 15px;
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .realtor-registration-page .section-heading {
        margin-bottom: 18px;
        font-size: 17px;
    }

    .realtor-registration-page .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .realtor-registration-page .form-group.full-width {
        grid-column: auto;
    }

    .realtor-registration-page .form-group input:not([type="checkbox"]):not([type="radio"]),
    .realtor-registration-page .form-group select,
    .realtor-registration-page .form-group textarea {
        min-height: 46px;
        font-size: 16px;
    }

    .realtor-registration-page .dob-fields {
        gap: 8px;
    }

    .realtor-registration-page .checkbox-group {
        padding: 16px;
    }

    .realtor-registration-page .realtor-btn {
        min-height: 51px;
    }
}

/* ==========================================================
   CONIC BRAND FINISH + LIGHT/DARK THEME SUPPORT
   ========================================================== */

/* Light mode: warm, branded surfaces instead of stark white */
html[data-theme="light"] .realtor-registration-page,
html:not([data-theme="dark"]) .realtor-registration-page {
    background: #fff8f2;
    color: #292b35;
}

html[data-theme="light"] .realtor-registration-page .section-card,
html:not([data-theme="dark"]) .realtor-registration-page .section-card {
    background: #fffdfb;
    border-color: #f0d8c7;
    box-shadow: 0 8px 28px rgba(135, 72, 35, .07);
}

html[data-theme="light"] .realtor-registration-page .form-group input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] .realtor-registration-page .form-group select,
html[data-theme="light"] .realtor-registration-page .form-group textarea,
html:not([data-theme="dark"]) .realtor-registration-page .form-group input:not([type="checkbox"]):not([type="radio"]),
html:not([data-theme="dark"]) .realtor-registration-page .form-group select,
html:not([data-theme="dark"]) .realtor-registration-page .form-group textarea {
    background: #fff9f4;
    border-color: #e9cbb6;
    color: #292b35;
}

html[data-theme="light"] .realtor-registration-page .form-group input:focus,
html[data-theme="light"] .realtor-registration-page .form-group select:focus,
html[data-theme="light"] .realtor-registration-page .form-group textarea:focus,
html:not([data-theme="dark"]) .realtor-registration-page .form-group input:focus,
html:not([data-theme="dark"]) .realtor-registration-page .form-group select:focus,
html:not([data-theme="dark"]) .realtor-registration-page .form-group textarea:focus {
    border-color: #f47721;
    box-shadow: 0 0 0 3px rgba(244, 119, 33, .15);
}

html[data-theme="light"] .realtor-registration-page .checkbox-group,
html:not([data-theme="dark"]) .realtor-registration-page .checkbox-group {
    background: #fff7ef;
    border-color: #f0d8c7;
}

html[data-theme="light"] .realtor-registration-page .form-group label,
html:not([data-theme="dark"]) .realtor-registration-page .form-group label {
    color: #49382f;
}

html[data-theme="light"] .realtor-registration-page .form-title,
html[data-theme="light"] .realtor-registration-page .section-heading,
html:not([data-theme="dark"]) .realtor-registration-page .form-title,
html:not([data-theme="dark"]) .realtor-registration-page .section-heading {
    color: #30251f;
}

/* Dark mode: follow the theme selected by the site header */
html[data-theme="dark"] .realtor-registration-page {
    --reg-ink: #f7e9df;
    --reg-muted: #c1b2a9;
    --reg-border: #49382f;
    --reg-surface: #211d1b;

    background: #151311;
    color: #f7e9df;
    color-scheme: dark;
}

html[data-theme="dark"] .realtor-registration-page .form-title,
html[data-theme="dark"] .realtor-registration-page .section-heading {
    color: #fff1e8;
}

html[data-theme="dark"] .realtor-registration-page .form-subtitle {
    color: #c9bdb5;
}

html[data-theme="dark"] .realtor-registration-page .form-subtitle a {
    color: #ff995c;
}

html[data-theme="dark"] .realtor-registration-page .section-card {
    background: #211d1b;
    border-color: #49382f;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .realtor-registration-page .section-heading {
    border-bottom-color: #493329;
}

html[data-theme="dark"] .realtor-registration-page .form-group label {
    color: #f0ded2;
}

html[data-theme="dark"] .realtor-registration-page .form-group input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .realtor-registration-page .form-group select,
html[data-theme="dark"] .realtor-registration-page .form-group textarea,
html[data-theme="dark"] .realtor-registration-page .dob-fields select {
    color: #f7eee8;
    background: #302824;
    border-color: #5b4437;
    color-scheme: dark;
}

html[data-theme="dark"] .realtor-registration-page .form-group input::placeholder,
html[data-theme="dark"] .realtor-registration-page .form-group textarea::placeholder {
    color: #b9a79b;
}

html[data-theme="dark"] .realtor-registration-page .form-group input:focus,
html[data-theme="dark"] .realtor-registration-page .form-group select:focus,
html[data-theme="dark"] .realtor-registration-page .form-group textarea:focus,
html[data-theme="dark"] .realtor-registration-page .dob-fields select:focus {
    border-color: #ff8b45;
    box-shadow: 0 0 0 3px rgba(255, 139, 69, .17);
}

html[data-theme="dark"] .realtor-registration-page .checkbox-group {
    color: #e5d8cf;
    background: #211d1b;
    border-color: #49382f;
}

html[data-theme="dark"] .realtor-registration-page .form-group input[type="file"] {
    color: #f7eee8;
    background: #302824;
    border-color: #5b4437;
}

html[data-theme="dark"] .realtor-registration-page .realtor-btn {
    color: #fff;
    background: linear-gradient(110deg, #d9362c, #f47721);
}

/* Keep validation feedback legible in both themes */
html[data-theme="dark"] .realtor-registration-page #username-feedback {
    color: #ffd0ad;
}

/* Smooth theme changes */
.realtor-registration-page,
.realtor-registration-page .section-card,
.realtor-registration-page .checkbox-group,
.realtor-registration-page .form-group input,
.realtor-registration-page .form-group select,
.realtor-registration-page .form-group textarea {
    transition: background-color .2s ease, color .2s ease,
                border-color .2s ease, box-shadow .2s ease;
}

/* Referral notification and referral code field */
.referral-notice {
    background: #fff2e6;
    color: #392316;
    border: 1px solid #f5c9a9;
    border-left: 4px solid #f47721;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 16px;
}

.referral-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #b84417;
}

.referral-notice p {
    margin: 0;
    color: inherit;
}

.referral-code-group {
    margin-bottom: 20px;
}

.referral-code-group input[readonly] {
    cursor: not-allowed;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.referral-code-group small {
    display: block;
    margin-top: 6px;
}

/* Dark theme */
[data-theme="dark"] .referral-notice,
.dark-mode .referral-notice {
    background: #302219;
    color: #fff0e4;
    border-color: #62402d;
    border-left-color: #ff812e;
}

[data-theme="dark"] .referral-notice strong,
.dark-mode .referral-notice strong {
    color: #ff9b58;
}
