/* Promo modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-content {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Header */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
    flex-shrink: 0;
}

.modal-header-text {
    flex: 1;
    min-width: 0;
}

.modal-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.close-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    margin-top: -4px;
    margin-right: -4px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

/* Form scroll area */
.promo-form {
    overflow-y: auto;
    padding: 20px 24px 24px;
    flex: 1;
}

.promo-form::-webkit-scrollbar { width: 4px; }
.promo-form::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Sections */
.form-section {
    border: none;
    margin: 0 0 20px;
    padding: 0;
    min-width: 0;
}

.form-section-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 10px;
    padding: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 420px) {
    .form-row { grid-template-columns: 1fr; }
}

.field {
    margin-bottom: 10px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d4d4d8;
    margin-bottom: 5px;
}

.field-optional {
    font-weight: 400;
    color: #52525b;
    font-size: 0.75rem;
}

.field input[type="email"],
.field input[type="text"],
.field textarea,
.select-wrap select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    resize: vertical;
    min-height: 72px;
    max-height: 140px;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #71717a;
    pointer-events: none;
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    cursor: pointer;
}

.field input:hover,
.field textarea:hover,
.select-wrap select:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.045);
}

.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
    outline: none;
    border-color: rgba(232, 93, 4, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #52525b;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px #16161a inset !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.select-wrap select option {
    background: #16161a;
    color: var(--text);
}

/* Payment radio cards */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.payment-option:hover .payment-option-inner {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.payment-option input:focus-visible + .payment-option-inner {
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.payment-option input:checked + .payment-option-inner {
    border-color: rgba(232, 93, 4, 0.55);
    background: rgba(232, 93, 4, 0.08);
}

.payment-option-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.payment-option-desc {
    font-size: 0.72rem;
    color: #71717a;
}

/* Legal checkbox */
.legal-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    margin-bottom: 16px;
    transition: border-color 0.15s ease;
}

.legal-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.legal-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.legal-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    margin-top: 1px;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.legal-box input:checked + .legal-check {
    background: var(--accent);
    border-color: var(--accent);
}

.legal-box input:checked + .legal-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.legal-box input:focus-visible + .legal-check {
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.legal-text {
    font-size: 0.78rem;
    color: #71717a;
    line-height: 1.45;
}

/* Submit */
.form-footer {
    padding-top: 4px;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

.submit-btn:active {
    transform: scale(0.985);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-icon {
    font-size: 0.8rem;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.submit-btn:hover .submit-icon {
    transform: translateX(2px);
}

/* Success state */
.form-success {
    padding: 48px 32px;
    text-align: center;
}

.form-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 16px;
}

.form-success-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-success-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Chat auth step */
.chat-auth-container {
    padding: 20px 16px;
    text-align: center;
}

.chat-auth-container h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.chat-auth-container p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.chat-auth-container input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-auth-container input:focus {
    outline: none;
    border-color: rgba(232, 93, 4, 0.5);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.start-chat-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s ease;
}

.start-chat-btn:hover {
    background: var(--accent-hover);
}
