#nubbu-verification-container {
    background: transparent !important;
    color: #ffffff;
    padding: 10px;
    border-radius: 15px;
    max-width: 600px; /* Wider form as requested */
    margin: 30px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nubbu-header {
    text-align: center;
    margin-bottom: 30px;
}

.nubbu-logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
}

.nubbu-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 0;
    color: #ffffff !important;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.width-full {
    width: 100%;
}

.width-half {
    width: calc(50% - 10px);
}

.width-75 {
    width: calc(75% - 15px);
}

.width-67 {
    width: calc(66.66% - 13.33px);
}

.width-third {
    width: calc(33.33% - 13.33px);
}

.width-quarter {
    width: calc(25% - 15px);
}

.age-width {
    width: 70px;
}

.insta-width {
    flex: 1;
}

.field-section-header {
    margin-top: 10px;
    margin-bottom: 12px !important;
}

.field-section-header h3 {
    color: #475569; /* Subtle grey as requested */
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* intl-tel-input overrides */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

.iti__country.iti__highlight {
    background-color: #334155 !important;
}

.iti__selected-dial-code {
    color: #f8fafc !important;
}

.iti__arrow {
    border-top-color: #64748b !important;
}

.iti__arrow--up {
    border-bottom-color: #64748b !important;
}

.form-group label {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Common input styles */
input[type="text"], 
input[type="tel"], 
input[type="email"], 
input[type="number"],
.otp-input-field {
    width: 100%;
    background: #0f172a !important; /* Digger grey/slate */
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px 16px;
    color: #f8fafc !important;
    font-size: 15px !important;
    outline: none;
    transition: all 0.2s ease;
}

input::placeholder {
    color: #475569 !important;
    opacity: 0.7;
}

input:focus {
    border-color: #bc2b0e;
    box-shadow: 0 0 0 2px rgba(188, 43, 14, 0.15);
}

.phone-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.country-code-group {
    flex: 0 0 110px;
}

.phone-number-group {
    flex: 1;
}

/* Gender Options - Aligned better as requested */
.gender-options {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

.gender-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #475569;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: border-color 0.3s;
}

.gender-options input[type="radio"]:checked {
    border-color: #bc2b0e;
}

.gender-options input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #bc2b0e;
    border-radius: 50%;
}

.gender-options span {
    line-height: 1;
}

/* Terms Checkbox */
.terms-group {
    margin: 40px 0 25px 0; /* More spacing from gender section */
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #94a3b8;
    width: 100%;
    line-height: 1.2;
}

.checkbox-label input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0;
    accent-color: #bc2b0e;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
}

.checkbox-label a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #bc2b0e;
}

/* Buttons - Larger as requested */
.nubbu-btn-submit, .nubbu-btn-primary {
    background: #bc2b0e;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    width: 100%;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(188, 43, 14, 0.3);
}

.nubbu-btn-submit:hover, .nubbu-btn-primary:hover {
    background: #9c230b;
    transform: translateY(-2px);
}

.nubbu-btn-submit:active {
    transform: translateY(0);
}

/* Modal Overlay System */
.nubbu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nubbu-modal-content {
    background: #1c1f26;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 1px solid #334155;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.nubbu-modal-content h2 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 24px;
}

.nubbu-modal-content p {
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.5;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 28px;
    cursor: pointer;
}

/* Success Content Styles */
.success-content {
    border-color: #334155;
    background: #0f172a;
}

.success-icon {
    font-size: 64px;
    color: #f8fafc;
    margin-bottom: 20px;
}

.redirect-loader {
    margin-top: 30px;
    color: #94a3b8;
    font-weight: 500;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* OTP specific styles in modal */
.otp-input-field {
    text-align: center;
    font-size: 32px !important;
    letter-spacing: 12px;
    font-weight: 700;
}

.otp-timer-text {
    font-size: 14px;
    margin-top: 15px;
    color: #cbd5e1 !important;
}

.resend-info {
    margin-top: 20px;
    font-size: 14px;
}

.resend-info button {
    background: none;
    border: none;
    color: #bc2b0e;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.resend-info button:disabled {
    color: #64748b;
    text-decoration: none;
    cursor: not-allowed;
}

/* Messages */
.message-box {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
}

.fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.half-width {
    width: calc(50% - 10px);
}

@media (max-width: 480px) {
    #nubbu-verification-container {
        margin: 5px auto;
        padding: 10px;
    }

    .nubbu-header {
        margin-bottom: 8px;
    }

    .nubbu-logo {
        max-width: 80px;
        margin-bottom: 5px;
    }

    .nubbu-header h1 {
        font-size: 18px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        margin-bottom: 3px;
        font-size: 12px;
    }

    .field-section-header {
        margin-top: 3px;
        margin-bottom: 5px !important;
    }

    .field-section-header h3 {
        font-size: 13px;
    }

    input[type="text"], 
    input[type="tel"], 
    input[type="email"], 
    input[type="number"] {
        padding: 8px 10px;
        font-size: 13px !important;
        height: 38px;
    }

    .gender-options {
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 3px;
    }

    .gender-options label {
        font-size: 13px;
    }

    .terms-group {
        margin: 10px 0 10px 0;
    }

    .terms-group span {
        font-size: 11px;
    }

    .nubbu-btn-submit {
        padding: 12px;
        font-size: 13px;
        height: 44px;
    }

    /* Allow half, third, and 67% fields to stay side-by-side on mobile if they fit */
    .width-quarter, .width-75 {
        width: 100%;
    }
}
