/**
 * GP Signup Request Modal - Styles
 * Version: 1.0.0
 * 
 * Matches GRIPAR login form design language
 */

/* ===========================
   MODAL OVERLAY  (the scroll container)
   =========================== */
.gp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport — fixes iOS Safari address-bar collapse */
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    /* The overlay itself scrolls — bulletproof across browsers */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px;
    opacity: 0;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.gp-modal-overlay *,
.gp-modal-overlay *::before,
.gp-modal-overlay *::after {
    box-sizing: border-box;
}

.gp-modal-overlay.show {
    display: block;
    opacity: 1;
}

/* Fade-in animation */
.gp-modal-overlay.entering {
    display: block;
    opacity: 0;
}

/* Prevent background scroll when modal open */
body.gp-modal-open {
    overflow: hidden;
    /* iOS Safari fix - prevent rubber-band scrolling */
    position: fixed;
    width: 100%;
}

/* ===========================
   MODAL CONTAINER  (centered, content-sized)
   =========================== */
.gp-modal-container {
    width: 100%;
    max-width: 560px;
    /* Vertically center inside the scrolling overlay.
       `margin: auto` works because the overlay's block formatting context
       lets the child take its natural height; if content > viewport, the
       overlay scrolls and the modal naturally pins to the top. */
    margin: auto;
    /* Safari fix — ensure margin auto behavior in legacy browsers */
    min-height: 0;
    -webkit-transform: translateY(20px) scale(0.97);
    -ms-transform: translateY(20px) scale(0.97);
    transform: translateY(20px) scale(0.97);
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gp-modal-overlay.show .gp-modal-container {
    transform: translateY(0) scale(1);
}

/* Custom scrollbar for the overlay (visible scroll affordance) */
.gp-modal-overlay::-webkit-scrollbar {
    width: 8px;
}

.gp-modal-overlay::-webkit-scrollbar-track {
    background: transparent;
}

.gp-modal-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.gp-modal-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox scrollbar */
.gp-modal-overlay {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* ===========================
   MODAL CARD — colorful surface
   =========================== */
.gp-modal-card {
    /* Soft gradient surface so the modal doesn't feel flat */
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 50%),
        radial-gradient(circle at bottom left, rgba(91, 106, 191, 0.06), transparent 55%),
        #FFFFFF;
    border-radius: 18px;
    padding: 24px 28px 22px;
    -webkit-box-shadow:
        0 24px 60px rgba(91, 106, 191, 0.18),
        0 6px 18px rgba(139, 92, 246, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    box-shadow:
        0 24px 60px rgba(91, 106, 191, 0.18),
        0 6px 18px rgba(139, 92, 246, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(91, 106, 191, 0.12);
    position: relative;
    overflow: hidden;
    color: #2D3748;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Decorative gradient strip at the top of the card */
.gp-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5B6ABF 0%, #7B8AD4 50%, #F58220 100%);
    pointer-events: none;
}

/* ===========================
   CLOSE BUTTON
   =========================== */
.gp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.gp-modal-close:hover {
    background: #E5E7EB;
    color: #374151;
    transform: rotate(90deg);
}

.gp-modal-close:focus {
    outline: 2px solid #5B6ABF;
    outline-offset: 2px;
}

.gp-modal-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ===========================
   MODAL HEADER — gradient icon, accent title
   =========================== */
.gp-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.gp-modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #5B6ABF 0%, #7B8AD4 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #FFFFFF;
    -webkit-box-shadow: 0 8px 20px rgba(91, 106, 191, 0.35);
    box-shadow: 0 8px 20px rgba(91, 106, 191, 0.35);
}

.gp-modal-icon svg {
    width: 24px;
    height: 24px;
}

.gp-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.25;
    /* Subtle gradient title */
    background: linear-gradient(135deg, #1F2937 0%, #3D4FAF 50%, #7B8AD4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gp-modal-subtitle {
    color: #6B7280;
    font-size: 13.5px;
    margin: 0;
    padding: 0;
    line-height: 1.45;
}

/* ===========================
   SUCCESS STATE
   =========================== */
.gp-modal-success {
    text-align: center;
    padding: 20px 0;
}

.gp-modal-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.gp-modal-success-icon svg {
    width: 100%;
    height: 100%;
}

.gp-modal-success-icon circle {
    fill: #48BB78;
    opacity: 0.15;
}

.gp-modal-success-icon path {
    stroke: #48BB78;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: gp-checkmark 0.5s ease-out 0.2s forwards;
}

.gp-modal-success h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2D3748;
    margin: 0 0 10px 0;
}

.gp-modal-success p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   MODAL FORM — 2-column grid on desktop
   =========================== */
.gp-modal-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

/* Rows that must span the full width:
   - error banner
   - the form-group containing the textarea (Brief Introduction)
   - submit button */
.gp-modal-form > .gp-error-message,
.gp-modal-form > .gp-submit-btn,
.gp-modal-form > .gp-form-group:has(textarea) {
    grid-column: 1 / -1;
}

/* Fallback for browsers without :has() — referral row stays single column */
@supports not selector(:has(*)) {
    .gp-modal-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

.gp-modal-form .gp-form-label {
    text-align: left;
}

.gp-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===========================
   TEXTAREA
   =========================== */
.gp-form-textarea {
    height: auto !important;
    min-height: 80px;
    padding: 14px 20px !important;
    resize: vertical;
    line-height: 1.5 !important;
    font-family: inherit;
    border-radius: 12px !important;
}

.gp-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

.gp-char-count.near-limit {
    color: #F59E0B;
}

.gp-char-count.at-limit {
    color: #EF4444;
}

/* ===========================
   SELECT DROPDOWN
   =========================== */
.gp-select-wrapper {
    position: relative;
}

.gp-form-select {
    cursor: pointer;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 44px !important;
    background-image: none !important;
}

.gp-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   MODAL FORM OVERRIDES (Blocksy compat)
   =========================== */
.gp-modal-card .gp-form-input,
.gp-modal-card input[type="email"],
.gp-modal-card input[type="text"],
.gp-modal-card textarea,
.gp-modal-card select {
    width: 100% !important;
    height: 42px !important;
    padding: 0 16px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 12px !important;
    /* 16px stops iOS Safari from auto-zooming on focus */
    font-size: 16px !important;
    background: #FAFBFF !important;
    color: #2D3748 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    line-height: 42px !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
    box-sizing: border-box !important;
}

.gp-modal-card .gp-form-input:hover:not(:focus) {
    border-color: #C8D0F0 !important;
}

/* Placeholder color — vendor prefixes for older browsers */
.gp-modal-card .gp-form-input::-webkit-input-placeholder { color: #9CA3AF; opacity: 1; }
.gp-modal-card .gp-form-input::-moz-placeholder { color: #9CA3AF; opacity: 1; }
.gp-modal-card .gp-form-input:-ms-input-placeholder { color: #9CA3AF; opacity: 1; }
.gp-modal-card .gp-form-input::-ms-input-placeholder { color: #9CA3AF; opacity: 1; }
.gp-modal-card .gp-form-input::placeholder { color: #9CA3AF; opacity: 1; }

/* Remove iOS-style inner shadow on inputs */
.gp-modal-card input,
.gp-modal-card textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* Hide native browser validation popups when using novalidate */
.gp-modal-card input:invalid {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.gp-modal-card textarea.gp-form-input,
.gp-modal-card textarea {
    height: auto !important;
    min-height: 56px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    line-height: 1.45 !important;
}

.gp-modal-card select.gp-form-input,
.gp-modal-card select {
    border-radius: 12px !important;
}

.gp-modal-card .gp-form-input:focus,
.gp-modal-card input:focus,
.gp-modal-card textarea:focus,
.gp-modal-card select:focus {
    border-color: #7B8AD4 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15) !important;
    outline: none !important;
}

.gp-modal-card .gp-submit-btn {
    background: linear-gradient(135deg, #5B6ABF 0%, #7B8AD4 60%, #F58220 100%) !important;
    background-size: 200% 100% !important;
    background-position: 0% 0% !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    height: 46px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    width: 100% !important;
    cursor: pointer !important;
    -webkit-box-shadow:
        0 8px 22px rgba(91, 106, 191, 0.35),
        0 2px 6px rgba(139, 92, 246, 0.25) !important;
    box-shadow:
        0 8px 22px rgba(91, 106, 191, 0.35),
        0 2px 6px rgba(139, 92, 246, 0.25) !important;
    line-height: 46px !important;
    padding: 0 24px !important;
    margin-top: 4px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    font-family: inherit;
    -webkit-transition: background-position 0.4s ease, box-shadow 0.25s ease, transform 0.1s ease;
    transition: background-position 0.4s ease, box-shadow 0.25s ease, transform 0.1s ease;
}

.gp-modal-card .gp-submit-btn:active:not(:disabled) {
    -webkit-transform: scale(0.98);
    -ms-transform: scale(0.98);
    transform: scale(0.98);
}

.gp-modal-card .gp-submit-btn:hover:not(:disabled) {
    background-position: 100% 0% !important;
    -webkit-box-shadow:
        0 12px 28px rgba(139, 92, 246, 0.4),
        0 4px 10px rgba(236, 72, 153, 0.25) !important;
    box-shadow:
        0 12px 28px rgba(139, 92, 246, 0.4),
        0 4px 10px rgba(236, 72, 153, 0.25) !important;
}

.gp-modal-card .gp-form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #3D4FAF !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.1px;
}

.gp-modal-card .gp-required {
    color: #F58220 !important;
    margin-left: 2px;
}

/* OTP Step Overrides (Blocksy compat) */
.gp-otp-step .gp-form-input,
.gp-otp-step input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 20px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 9999px !important;
    /* 22px is already >16px so iOS won't zoom */
    font-size: 22px !important;
    background: #FFFFFF !important;
    color: #2D3748 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    line-height: 48px !important;
    margin: 0 !important;
    text-align: center !important;
    letter-spacing: 8px !important;
    font-weight: 600 !important;
    font-family: 'Courier New', monospace !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.gp-otp-step .gp-form-input:focus,
.gp-otp-step input[type="text"]:focus {
    border-color: #5B6ABF !important;
    box-shadow: 0 0 0 3px rgba(91, 106, 191, 0.12) !important;
    outline: none !important;
}

.gp-otp-step .gp-submit-btn {
    background: #5B6ABF !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 9999px !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(91, 106, 191, 0.25) !important;
    line-height: 48px !important;
    padding: 0 24px !important;
    margin-top: 16px !important;
}

.gp-otp-step .gp-submit-btn:hover:not(:disabled) {
    background: #4A59A8 !important;
    box-shadow: 0 4px 12px rgba(91, 106, 191, 0.35) !important;
}

.gp-otp-step .gp-form-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gp-otp-step .gp-error-message {
    margin-bottom: 16px;
}

/* ===========================
   OTP VERIFICATION STEP
   =========================== */
.gp-otp-step {
    animation: gp-fadeIn 0.3s ease;
}

@keyframes gp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.gp-otp-icon {
    width: 52px;
    height: 52px;
    background: rgba(91, 106, 191, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #5B6ABF;
}

.gp-otp-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2D3748;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.gp-otp-header p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.gp-otp-header strong {
    color: #2D3748;
    word-break: break-all;
}

/* OTP Status Message */
.gp-otp-status {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    min-height: 20px;
}

/* OTP Footer — Timer + Resend + Back */
.gp-otp-footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gp-otp-timer {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.gp-otp-resend {
    font-size: 14px;
    font-weight: 600;
    color: #5B6ABF !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gp-otp-resend:hover {
    color: #4A59A8 !important;
    text-decoration: underline !important;
}

.gp-otp-separator {
    color: #D1D5DB;
    font-size: 14px;
    user-select: none;
}

.gp-otp-back {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gp-otp-back:hover {
    color: #5B6ABF !important;
    text-decoration: underline !important;
}

/* OTP input styling — reuses .gp-mfa-input from parent CSS */
.gp-otp-step .gp-mfa-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ===========================
   REFERRAL "OTHER" SPECIFY FIELD
   =========================== */
.gp-referral-other-wrapper {
    margin-top: 10px;
}

/* ===========================
   SIGNUP TRIGGER LINK EMPHASIS
   =========================== */
.gp-signup-trigger {
    font-weight: 600 !important;
    position: relative;
}

/* ===========================
   RESPONSIVE — TABLET / MOBILE
   ===========================
   Strategy: single column, top-anchored, ultra-compact so the whole
   form fits in one viewport on common phones without scrolling. */
@media (max-width: 640px) {
    .gp-modal-overlay {
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .gp-modal-container {
        max-width: 100%;
        margin: 0;
    }

    .gp-modal-card {
        padding: 16px 18px 14px;
        border-radius: 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Mobile: drop to single column */
    .gp-modal-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Compact header — icon + title only, no subtitle bloat */
    .gp-modal-header {
        margin-bottom: 10px;
    }

    .gp-modal-icon,
    .gp-otp-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-bottom: 6px;
    }

    .gp-modal-icon svg,
    .gp-otp-icon svg {
        width: 22px;
        height: 22px;
    }

    .gp-modal-header h3,
    .gp-otp-header h3 {
        font-size: 18px;
        margin: 0 0 2px 0;
    }

    .gp-modal-subtitle {
        font-size: 12.5px;
        line-height: 1.35;
    }

    .gp-modal-card .gp-form-label {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }

    /* Inputs already 42px from base */
    .gp-modal-card textarea.gp-form-input,
    .gp-modal-card textarea {
        min-height: 48px !important;
        padding: 8px 14px !important;
        line-height: 1.4 !important;
    }

    .gp-char-count {
        font-size: 11px;
        margin-top: 2px;
    }

    .gp-modal-card .gp-submit-btn {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 15px !important;
        margin-top: 4px !important;
    }

    .gp-modal-close {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE
   =========================== */
@media (max-width: 480px) {
    .gp-modal-card {
        padding: 14px 16px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .gp-modal-form {
        gap: 7px;
    }

    .gp-modal-header {
        margin-bottom: 8px;
    }

    .gp-modal-header h3,
    .gp-otp-header h3 {
        font-size: 17px;
    }

    .gp-modal-subtitle {
        font-size: 12px;
    }

    .gp-modal-card textarea.gp-form-input,
    .gp-modal-card textarea {
        min-height: 42px !important;
    }

    .gp-otp-footer {
        gap: 10px;
    }

    .gp-otp-step .gp-form-input,
    .gp-otp-step input[type="text"] {
        letter-spacing: 6px !important;
        font-size: 20px !important;
    }
}

/* Extra-small phones (iPhone SE, Galaxy Fold closed) */
@media (max-width: 360px) {
    .gp-modal-card {
        padding: 12px 14px 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .gp-modal-header {
        margin-bottom: 6px;
    }

    .gp-modal-icon,
    .gp-otp-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
    }

    .gp-modal-icon svg,
    .gp-otp-icon svg {
        width: 20px;
        height: 20px;
    }

    .gp-modal-header h3,
    .gp-otp-header h3 {
        font-size: 16px;
    }

    .gp-modal-form {
        gap: 6px;
    }

    .gp-modal-card .gp-form-input,
    .gp-modal-card input[type="email"],
    .gp-modal-card input[type="text"],
    .gp-modal-card select {
        height: 40px !important;
        line-height: 40px !important;
    }

    .gp-modal-card .gp-submit-btn {
        height: 42px !important;
        line-height: 42px !important;
    }

    .gp-otp-step .gp-form-input,
    .gp-otp-step input[type="text"] {
        letter-spacing: 4px !important;
        font-size: 18px !important;
    }
}

/* Landscape on short screens — center modal, compact spacing */
@media (max-height: 500px) and (orientation: landscape) {
    .gp-modal-overlay.show,
    .gp-modal-overlay.entering {
        display: block;
        -webkit-box-orient: initial;
        -ms-flex-direction: initial;
        flex-direction: initial;
        -webkit-box-pack: initial;
        -ms-flex-pack: initial;
        justify-content: initial;
    }

    .gp-modal-overlay {
        padding: 12px;
    }

    .gp-modal-container {
        margin: auto;
    }

    .gp-modal-card {
        padding: 20px 24px;
        border-radius: 16px;
    }

    .gp-modal-header {
        margin-bottom: 18px;
    }

    .gp-modal-icon,
    .gp-otp-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
}

/* High-DPI / Retina — ensure crisp 1.5px borders */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gp-modal-card .gp-form-input {
        border-width: 1px !important;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .gp-modal-overlay,
    .gp-modal-container {
        transition-duration: 0.01ms !important;
    }
    
    .gp-modal-success-icon path {
        animation-duration: 0.01ms !important;
    }
}

/* ===========================
   STATUS CHECK — RESULT DISPLAY
   =========================== */
.gp-status-result {
    text-align: center;
    padding: 8px 0 24px;
    animation: gp-fadeIn 0.3s ease;
}

.gp-status-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.gp-status-badge-icon {
    font-size: 32px;
    line-height: 1;
}

.gp-status-result-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.gp-status-result-email {
    font-size: 14px;
    color: #2D3748;
    font-weight: 600;
    margin: 0 0 4px 0;
    word-break: break-all;
}

.gp-status-result-date {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0 0 20px 0;
}

.gp-status-result-message {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
    padding: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

.gp-status-done-btn {
    margin-top: 20px;
}

/* ===========================
   STATUS CHECK — BLOCKSY OVERRIDES
   =========================== */
#gp-status-modal .gp-form-input,
#gp-status-modal input[type="email"],
#gp-status-modal input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 20px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 9999px !important;
    font-size: 16px !important;
    background: #FFFFFF !important;
    color: #2D3748 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    line-height: 48px !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#gp-status-modal .gp-form-input:focus,
#gp-status-modal input[type="email"]:focus,
#gp-status-modal input[type="text"]:focus {
    border-color: #5B6ABF !important;
    box-shadow: 0 0 0 3px rgba(91, 106, 191, 0.12) !important;
    outline: none !important;
}

#gp-status-modal .gp-mfa-input {
    text-align: center !important;
    font-size: 22px !important;
    letter-spacing: 8px !important;
    font-weight: 600 !important;
    font-family: 'Courier New', monospace !important;
}

#gp-status-modal .gp-submit-btn {
    background: #5B6ABF !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 9999px !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    -webkit-box-shadow: 0 2px 8px rgba(91, 106, 191, 0.25) !important;
    box-shadow: 0 2px 8px rgba(91, 106, 191, 0.25) !important;
    line-height: 48px !important;
    padding: 0 24px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
}

#gp-status-modal .gp-submit-btn:hover:not(:disabled) {
    background: #4A59A8 !important;
    box-shadow: 0 4px 12px rgba(91, 106, 191, 0.35) !important;
}

#gp-status-modal .gp-form-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6B7280 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---- Switch between Signup and Login modals (added for PWA) ---- */
.gp-signup-switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.gp-signup-switch a {
    color: #5B6ABF;
    font-weight: 600;
    text-decoration: none;
}
.gp-signup-switch a:hover { text-decoration: underline; }
