/* Core Colors & Body */
:root {
    --brand-orange: #f28532;
    --brand-orange-hover: #e6761d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdfdfd;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 30px 30px;
    color: #333;
}

/* Typography & Buttons */
.brand-orange {
    color: var(--brand-orange);
}

.btn-orange {
    background-color: var(--brand-orange);
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-orange:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 133, 50, 0.2);
}

/* Auth Card Styling */
.reg-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    background: white;
    max-height: 90vh;
    overflow-y: auto;
}

/* Registration Type Buttons */
.user-type-btn { 
    border: 1px solid #eee; 
    background: white; 
    color: #666; 
    font-size: 13px; 
    text-decoration: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    /* Equal height across the three roles (paired with h-100 + row stretch),
       and let long labels like "Buyer/Owner" wrap instead of overflowing. */
    height: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.2;
}

.user-type-btn.active {
    border-color: var(--brand-orange);
    background: #fff8f3;
    color: var(--brand-orange);
    font-weight: bold;
}

.popular-badge {
    background: var(--brand-orange);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Captcha & Errors */
.error-message {
    color: #dc3545;
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
}

.captcha-box {
    background: #f0f4ff;
    color: #3b5998;
    font-weight: bold;
    letter-spacing: 4px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================================
   Phones (<=575.98px): keep the key labels on ONE line and reclaim the
   space taken by card padding, so the form uses the full width instead of
   looking cramped. Shared by login + signup/register.
   ===================================================================== */
@media (max-width: 575.98px) {
    /* Trim card padding so the content uses the full card width. */
    .reg-card,
    .reg-card .card-body,
    .container.py-5 .card .card-body {
        padding: 1.25rem !important;
    }

    /* Headings ("New User Registration", "Buyer/Owner Login", ...) on one line. */
    .reg-card h3,
    .card-body h3,
    #login-title {
        font-size: clamp(1.1rem, 5.2vw, 1.45rem);
        white-space: nowrap;
        line-height: 1.2;
    }

    /* Sub-heading ("Please fill your information...") on one line too. */
    .reg-card h3 + p,
    .card-body h3 + p,
    #login-title + p {
        font-size: clamp(0.62rem, 2.6vw, 0.875rem);
        white-space: nowrap;
    }

    /* Role buttons: equal size, single-line labels, tighter padding so
       "Buyer/Owner" fits on one line next to Agent / Builder. */
    .user-type-btn,
    #loginForm .user-type-btn {
        font-size: clamp(11px, 3vw, 13px) !important;
        padding: 10px 4px !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    /* Tighten the 3-button row gutter a touch for more text room. */
    .row.g-2.mb-4 > [class*="col-"] {
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* Tablet and up: keep short headings on one line. The long buyer login title
   ("Buyer / Owner Login & Sign Up") is allowed to wrap so it never clips
   the card edge on iPad landscape. */
@media (min-width: 576px) {
    .reg-card h3,
    .card-body h3,
    .reg-card h3 + p,
    .card-body h3 + p,
    #login-title + p {
        white-space: nowrap;
    }

    #login-title {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.25;
        max-width: 100%;
        padding-right: 0.25rem;
    }
}

/* ==========================================================================
                            🍎 APPLE DEVICE BREAKPOINTS
=============================================================================

Mobile
------
320px – 375px     → iPhone SE / Mini
376px – 430px     → iPhone 12 / 13 / 14 / 15 / 16 / Pro / Pro Max
Landscape         → All iPhones

Tablet
-------
768px – 1024px    → iPad Portrait
1024px – 1366px   → iPad Landscape
1194px            → iPad Pro 11"
1366px            → iPad Pro 12.9"

Laptop/Desktop
--------------
1280px – 1440px   → MacBook Air
1441px – 1728px   → MacBook Pro 14"
1729px+           → MacBook Pro 16"
1800px+           → Apple Studio Display / Pro Display XDR

=============================================================================
*/


/* ==========================================================================
   🍎 iPhone SE / Mini
   Width : 320px - 375px

   Devices
   --------
   ✓ iPhone SE (2020)
   ✓ iPhone SE (2022)
   ✓ iPhone 5
   ✓ iPhone 5S
   ✓ iPhone 12 Mini
   ✓ iPhone 13 Mini

   Orientation
   -----------
   Portrait
========================================================================== */

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

    .container.py-5 {
        padding: 1.5rem 1rem !important;
    }

    .reg-card {
        padding: 1.5rem !important;
        border-radius: 18px !important;
    }

    h1.display-5 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.45rem;
    }

    p.lead {
        font-size: 0.95rem;
    }

    .user-type-btn {
        font-size: 12px !important;
        padding: 10px 5px !important;
    }

    .popular-badge {
        font-size: 9px;
    }

    .otp-inputs-row {
        --otp-box-size: 40px;
        --otp-gap: 5px;
        --otp-font-size: 1.15rem;
    }

    .captcha-box {
        font-size: 14px;
        letter-spacing: 2px;
    }

    #otpModal .modal-body {
        padding: 1.5rem !important;
    }

    #otpModal .otp-inputs-row {
        gap: 5px !important;
    }

}


/* ==========================================================================
   🍎 Standard iPhones

   Width : 376px - 430px

   Devices
   --------
   ✓ iPhone 12
   ✓ iPhone 13
   ✓ iPhone 14
   ✓ iPhone 15
   ✓ iPhone 16
   ✓ Pro
   ✓ Pro Max
   ✓ Plus

   Orientation
   -----------
   Portrait

========================================================================== */

@media only screen and (min-width:376px) and (max-width:430px) and (orientation:portrait) {

    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .reg-card {
        padding: 2rem !important;
    }

    h1.display-5 {
        font-size: 2.2rem;
    }

    .otp-inputs-row {
        --otp-box-size: 44px;
        --otp-font-size: 1.2rem;
    }

    #otpModal .modal-body {
        padding: 2rem !important;
    }

}


/* ==========================================================================
   🍎 All iPhones Landscape

   Devices
   --------
   ✓ SE
   ✓ Mini
   ✓ Plus
   ✓ Pro
   ✓ Pro Max

   Orientation
   -----------
   Landscape

   Purpose
   -------
   Less vertical height.
   Reduce spacing.
   Enable scrolling.

========================================================================== */

@media only screen and (max-height:430px) and (orientation:landscape) {

    .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .reg-card {
        max-height: 95vh;
        overflow-y: auto;
        padding: 1.5rem !important;
    }

    #otpModal .modal-content {
        max-height: 94vh;
        overflow-y: auto;
    }

    .otp-inputs-row {
        --otp-box-size: 42px;
        --otp-font-size: 1.1rem;
    }

}


/* ==========================================================================
   🍎 iPad Portrait

   Width : 768px - 1024px

   Devices
   --------
   ✓ iPad Mini
   ✓ iPad Air
   ✓ iPad 9th Gen
   ✓ iPad 10th Gen
   ✓ iPad Pro 11"

   Orientation
   -----------
   Portrait

   Purpose
   -------
   Hide left graphics.
   Center login/register card.

========================================================================== */
/* Phone + tablet: when the marketing graphic is NOT shown beside the form,
   present the form as a clean white card instead of bare fields floating on
   the dotted page background. (Desktop keeps the transparent form next to
   the graphic, so this is scoped to <=1024px.) */
@media only screen and (max-width:1024px) {
    .signup-responsive-wrapper .reg-card,
    .signup-responsive-wrapper .card.reg-card {
        background: #ffffff !important;
        border: 1px solid #eef0f4 !important;
        box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06) !important;
        border-radius: 18px !important;
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* iPad / tablet (portrait & landscape up to 1024): hide the marketing column
   and center the form as a comfortably sized card so it uses the space
   instead of being stranded on the left with a big empty gap. */
@media only screen and (min-width:768px) and (max-width:1024px) {

    .signup-responsive-wrapper .col-lg-5,
    .sticky-graphics,
    .image-container {
        display: none !important;
    }

    .signup-responsive-wrapper > .row {
        justify-content: center !important;
    }

    /* Balanced, comfortable form width, centered. */
    .signup-responsive-wrapper .col-12.col-md-10.col-lg-7,
    .signup-responsive-wrapper .col-lg-7,
    .signup-responsive-wrapper .reg-card {
        width: 100% !important;
        max-width: 640px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex: 0 0 auto !important;
    }

    .reg-card .card-body {
        padding: 2.25rem !important;
    }

    h1.display-5 {
        font-size: 2.7rem;
    }

    /* User Type Buttons — keep each label on a single line (there is plenty
       of width on iPad), equal size across the three roles. */
    .user-type-btn {
        min-height: 56px;
        font-size: 15px;
        padding: 12px 8px !important;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .popular-badge {
        font-size: 10px;
    }

    /* Captcha Row */
    #captcha-wrapper .row {
        row-gap: 12px;
    }

}

/* ==========================================================================
   🍎 iPad Landscape

   Width : 1024px - 1366px

   Devices
   --------
   ✓ iPad Mini
   ✓ iPad Air
   ✓ iPad
   ✓ iPad Pro

   Orientation
   -----------
   Landscape

========================================================================== */

@media only screen and (min-width:1024px) and (max-width:1366px) and (orientation:landscape) {

    /* Left Graphics */
    .sticky-graphics {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }

    .main-house-img,
    .main-house {
        width: 300px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 210px;
        top: 130px;
        left: 125px;
    }

    /* Registration/Login Card */
    .reg-card {
        width: 100% !important;
        max-width: 780px !important;
        padding: 2.75rem !important;
        margin: auto;
    }

    /* Login card shares the right column with graphics — shrink the long
       buyer title so it stays inside the box. */
    #login-title {
        font-size: clamp(1.2rem, 1.7vw, 1.45rem) !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        max-width: 100%;
    }

    .container.py-5 .card .card-body {
        overflow: hidden;
    }

    /* User Type Buttons */
    .user-type-btn {
        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 58px;
        padding: 10px 8px !important;

        font-size: 14px !important;
        font-weight: 600;

        line-height: 1.2;
        text-align: center;

        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .row.g-2 .col-4 {
        padding-left: 6px;
        padding-right: 6px;
    }

    .popular-badge {
        font-size: 10px;
        padding: 2px 6px;
        top: -9px;
    }

    /* Captcha */
    #captcha-wrapper .row {
        row-gap: 12px;
    }

    .captcha-box {
        font-size: 18px;
        letter-spacing: 3px;
    }

    #captcha-wrapper input.form-control {
        min-width: 0;
    }

}


/* ==========================================================================
   🍎 iPad Pro 11"

   Width : 1180px - 1194px

   Devices
   --------
   ✓ iPad Pro 11" M1
   ✓ iPad Pro 11" M2
   ✓ iPad Pro 11" M4

========================================================================== */

@media only screen and (min-width:1180px) and (max-width:1194px) {

    .main-house-img,
    .main-house {
        width: 340px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 230px;
    }

}


/* ==========================================================================
   🍎 iPad Pro 12.9"

   Width : 1365px - 1366px

   Devices
   --------
   ✓ iPad Pro 12.9" M1
   ✓ iPad Pro 12.9" M2
   ✓ iPad Pro 12.9" M4

========================================================================== */

@media only screen and (min-width:1365px) and (max-width:1366px) {

    .main-house-img,
    .main-house {
        width: 360px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 250px;
    }

}


/* ==========================================================================
   🍎 MacBook Air

   Width : 1280px - 1440px

   Devices
   --------
   ✓ MacBook Air M1
   ✓ MacBook Air M2
   ✓ MacBook Air M3
   ✓ MacBook Air M4
   ✓ 13"
   ✓ 15"

========================================================================== */

@media only screen and (min-width:1280px) and (max-width:1440px) {

    .main-house-img,
    .main-house {
        width: 360px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 250px;
    }

    .reg-card {
        padding: 2.8rem !important;
    }

}


/* ==========================================================================
   🍎 MacBook Pro 14"

   Width : 1441px - 1728px

   Devices
   --------
   ✓ MacBook Pro 14" M1
   ✓ MacBook Pro 14" M2
   ✓ MacBook Pro 14" M3
   ✓ MacBook Pro 14" M4

========================================================================== */

@media only screen and (min-width:1441px) and (max-width:1728px) {

    .main-house-img,
    .main-house {
        width: 380px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 260px;
    }

    .reg-card {
        padding: 3rem !important;
    }

}


/* ==========================================================================
   🍎 MacBook Pro 16"

   Width : 1729px - 1800px

   Devices
   --------
   ✓ MacBook Pro 16" M1
   ✓ MacBook Pro 16" M2
   ✓ MacBook Pro 16" M3
   ✓ MacBook Pro 16" M4

========================================================================== */

@media only screen and (min-width:1729px) and (max-width:1800px) {

    .main-house-img,
    .main-house {
        width: 420px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 290px;
    }

}


/* ==========================================================================
   🍎 Apple Studio Display / Pro Display XDR

   Width : 1801px+

   Devices
   --------
   ✓ Apple Studio Display
   ✓ Apple Pro Display XDR
   ✓ Ultra Wide Monitors
   ✓ Large Desktop Displays

========================================================================== */

@media only screen and (min-width:1801px) {

    .main-house-img,
    .main-house {
        width: 460px;
    }

    .city-overlay-img,
    .city-overlay {
        width: 320px;
        left: 190px;
        top: 170px;
    }

    .reg-card {
        max-width: 540px;
        margin: auto;
    }

}

/* =====================================================================
   🍎 iPad LANDSCAPE — premium polish for the RIGHT-SIDE registration form
   ---------------------------------------------------------------------
   - Scoped to .signup-responsive-wrapper so ONLY the signup/register form is
     affected (login + desktop + the left image section are untouched).
   - Two-column layout is preserved; the left graphic is NOT modified.
   - Additive media query only — no existing rules rewritten.
   ===================================================================== */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {

    /* --- Form card: fills the wider col-lg-7 so fields stretch full length --- */
    .signup-responsive-wrapper .reg-card {
        width: 100% !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: #ffffff !important;
        border: 1px solid #eef0f4 !important;
        box-shadow: 0 16px 48px rgba(16, 24, 40, 0.08) !important;
        border-radius: 20px !important;
        padding: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .signup-responsive-wrapper .reg-card .card-body {
        padding: 1.85rem 2.25rem !important;    /* trimmed vertical padding so it fits landscape height */
    }

    /* --- Headings: larger, readable, with comfortable spacing below --- */
    .signup-responsive-wrapper .reg-card h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    .signup-responsive-wrapper .reg-card h3 + p {
        font-size: 0.92rem !important;
        margin-bottom: 1.1rem !important;
    }

    /* --- Role buttons (Buyer/Owner · Agent · Builder): equal size, aligned --- */
    .signup-responsive-wrapper .row.g-2.mb-4 {
        gap: 10px !important;
        margin-bottom: 1.1rem !important;
    }
    .signup-responsive-wrapper .user-type-btn {
        min-height: 56px !important;
        height: 100% !important;
        font-size: 14.5px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }

    /* --- Field labels: readable size + breathing room --- */
    .signup-responsive-wrapper #dynamicFields label,
    .signup-responsive-wrapper .form-label {
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.45rem !important;
    }

    /* --- Spacing between each field group --- */
    .signup-responsive-wrapper #dynamicFields .mb-3,
    .signup-responsive-wrapper #dynamicFields .mb-4 {
        margin-bottom: 0.85rem !important;
    }

    /* --- Inputs: equal height + full width, comfortable padding --- */
    .signup-responsive-wrapper .form-control,
    .signup-responsive-wrapper #dynamicFields input.form-control,
    .signup-responsive-wrapper #dynamicFields select,
    .signup-responsive-wrapper #dynamicFields textarea {
        height: 50px !important;
        width: 100% !important;
        font-size: 15px !important;
        padding: 0.6rem 0.9rem !important;
        border-radius: 12px !important;
    }

    /* --- Mobile number group (+91 prefix + input): render as ONE seamless
       field. It looked like two separate boxes because each child carried its
       own shadow + full border/radius. Merge them: one shadow + rounded ends on
       the group, shared seam (no gap) between prefix and input. --- */
    .signup-responsive-wrapper .input-group {
        flex-wrap: nowrap !important;
        gap: 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06) !important;
    }
    .signup-responsive-wrapper .input-group-text {
        height: 50px !important;
        font-size: 15px !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-right: 0 !important;             /* seam with the input */
        border-radius: 12px 0 0 12px !important;
        box-shadow: none !important;
    }
    /* Input inside the group must flex (not a forced 100% width) and join
       flush to the +91 prefix (no left border/radius, no shadow). */
    .signup-responsive-wrapper .input-group .form-control {
        height: 50px !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        border: 1px solid #dee2e6 !important;
        border-left: 0 !important;              /* seam with the prefix */
        border-radius: 0 12px 12px 0 !important;
        box-shadow: none !important;
    }

    /* --- Captcha row: even spacing so nothing crowds or overlaps --- */
    .signup-responsive-wrapper #dynamicFields .row.align-items-end {
        row-gap: 14px !important;
        margin-bottom: 0.85rem !important;
    }
    .signup-responsive-wrapper #captcha-box,
    .signup-responsive-wrapper .captcha-box {
        height: 50px !important;
        font-size: 18px !important;
    }
    .signup-responsive-wrapper #signup-captcha-refresh {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
    }

    /* --- Checkboxes: spacing between rows for an airy, premium feel --- */
    .signup-responsive-wrapper .form-check {
        gap: 12px !important;
        margin-bottom: 0.55rem !important;
    }
    .signup-responsive-wrapper .form-check-label {
        font-size: 0.86rem !important;
        line-height: 1.4 !important;
    }

    /* --- Submit button: full width, premium height --- */
    .signup-responsive-wrapper .btn-orange {
        width: 100% !important;
        height: 52px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        margin-top: 0.6rem !important;
    }
}

/* =====================================================================
   Mobile-number field (+91 prefix + input) — render as ONE seamless field
   on the signup/register form at EVERY screen size.
   ---------------------------------------------------------------------
   The default rendered as two separate rounded/shadowed boxes with a visible
   gap. This merges them: a single border + radius + shadow lives on the GROUP,
   the children are borderless & transparent (clipped by overflow:hidden), with
   only a subtle divider after "+91". General rule (no media query) so it works
   regardless of which breakpoint the device hits.
   ===================================================================== */
.signup-responsive-wrapper .input-group {
    flex-wrap: nowrap !important;
    gap: 0 !important;
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    overflow: hidden !important;
}

.signup-responsive-wrapper .input-group > .input-group-text {
    margin: 0 !important;
    border: 0 !important;
    border-right: 1px solid #e7e9ee !important;   /* subtle divider after +91 */
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.signup-responsive-wrapper .input-group > .form-control {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.signup-responsive-wrapper .input-group > .form-control:focus {
    box-shadow: none !important;
}

/* =====================================================================
   Checkbox labels (WhatsApp / Terms & Privacy) — wrap inside the card so the
   "...Privacy Policy & Cookie Policy" line never spills out of the container.
   ===================================================================== */
.signup-responsive-wrapper .form-check {
    min-width: 0 !important;
}
.signup-responsive-wrapper .form-check-label {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

/* =====================================================================
   Captcha row — keep the code box, refresh button and input on one tidy row
   with equal heights and no overflow, at every screen size.
   ===================================================================== */
.signup-responsive-wrapper #dynamicFields .row.align-items-end > [class*="col-"] {
    min-width: 0 !important;
}
.signup-responsive-wrapper #captcha-box,
.signup-responsive-wrapper #dynamicFields input[name="captcha_input"] {
    height: 48px !important;
    min-width: 0 !important;
}
.signup-responsive-wrapper #signup-captcha-refresh {
    height: 48px !important;
    width: 44px !important;
    min-width: 44px !important;
    flex-shrink: 0 !important;
}

/* =====================================================================
   Signup form — TWO fields per row on iPad ONLY (768–1366px) so the form
   reads horizontally (shorter) instead of one tall vertical column.
   Phones (<768px) and desktop/large screens (>1366px) keep a single column.
   Pure CSS grid over the JS-rendered #dynamicFields; no HTML/JS changes.
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1366px) {
    .signup-responsive-wrapper #dynamicFields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.1rem;
        align-items: start;
    }

    /* Keep each field group's own vertical spacing consistent inside the grid. */
    .signup-responsive-wrapper #dynamicFields > .mb-3,
    .signup-responsive-wrapper #dynamicFields > .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Keep field labels (incl. their "(Optional)" tag) on ONE line so paired
       fields like Agency Name | Licence Number have equal-height labels and the
       inputs below them stay aligned. Scoped to .form-label so it never touches
       the long WhatsApp / Terms checkbox labels. */
    .signup-responsive-wrapper #dynamicFields .form-label {
        white-space: nowrap !important;
        overflow: visible !important;
    }

    /* Items that must span BOTH columns (full width):
       - the mobile-number group (has the +91 input-group)
       - the lone optional Company Name field (builder) so Password + Confirm
         Password sit together as a pair on the next row
       - the captcha row (already a 2-col internal layout)
       - the WhatsApp / Terms / Show Password checkboxes
       - the Submit button */
    .signup-responsive-wrapper #dynamicFields > .mb-3:has(.input-group),
    .signup-responsive-wrapper #dynamicFields > .mb-3:has(input[name="company"]),
    .signup-responsive-wrapper #dynamicFields > .row,
    .signup-responsive-wrapper #dynamicFields > .form-check,
    .signup-responsive-wrapper #dynamicFields > button,
    .signup-responsive-wrapper #dynamicFields > .btn-orange {
        grid-column: 1 / -1;
    }
}

/* =====================================================================
   Laptop / desktop (>1366px): give the signup form the SAME plain white card
   as the LOGIN page (a default Bootstrap .card: white bg, thin light border,
   small radius, NO shadow). register.css makes .reg-card transparent by
   default; this restores a matching card on large screens. Scoped to signup.
   ===================================================================== */
@media (min-width: 1367px) {
    .signup-responsive-wrapper .reg-card,
    .signup-responsive-wrapper .card.reg-card {
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.175) !important;
        box-shadow: none !important;
        border-radius: 0.375rem !important;
        /* Remove the doubled outer padding (reg-card 2.8rem + card-body 3rem)
           and keep the card compact, not huge. card-body handles inner padding. */
        padding: 0 !important;
        max-width: 580px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Single, tighter inner padding so the form isn't oversized. */
    .signup-responsive-wrapper .reg-card .card-body {
        padding: 2rem 2.25rem !important;
    }
}