/* ========================================
   VIP FORM MODAL
   Bemfica Machado | Exclusive Access Form
   ======================================== */

.vip-form-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 15000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.vip-form-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
}

.vip-form-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(16, 16, 16, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 1.5rem 2.5rem 1.5rem 2.5rem;
    width: 650px;
    max-width: 95vw;
    height: auto;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 50px 150px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    pointer-events: auto !important;
    z-index: 1 !important;
}

.vip-form-modal.active .vip-form-container {
    transform: translateY(0) scale(1);
}

.form-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(212, 175, 55, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-close:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 200;
    color: var(--light);
    margin-bottom: 0.2rem;
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

/* Progress Bar Gamificado */
.progress-container {
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.8) 100%);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.progress-text {
    text-align: center;
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    display: none; /* Hidden for sophisticated minimalist design */
}

/* Form Steps */
.form-step {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    display: none;
    flex: 1;
    flex-direction: column;
    pointer-events: none;
    min-height: 0;
    max-height: 100%;
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
    display: flex;
    pointer-events: auto !important;
    z-index: 2 !important;
    min-height: 0;
    overflow: hidden;
}

.step-title {
    font-size: 1rem;
    color: var(--light);
    margin-bottom: 0.8rem;
    font-weight: 300;
    flex-shrink: 0;
    text-align: center;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    padding: 0 0.5rem 0 0;
    min-height: 0;
    max-height: 100%;
}

/* Custom scrollbar para step-content */
.step-content::-webkit-scrollbar {
    width: 8px;
}

.step-content::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.08);
    border-radius: 10px;
    margin: 4px 0;
}

.step-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.step-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Form Elements */
.form-group {
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.form-label {
    display: block;
    color: rgba(212, 175, 55, 0.9);
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05rem;
}

.form-input {
    width: 100%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input.invalid {
    border-color: rgba(220, 53, 69, 0.6);
    background: rgba(220, 53, 69, 0.05);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-input.valid {
    border-color: rgba(40, 167, 69, 0.6);
    background: rgba(40, 167, 69, 0.05);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.field-error {
    color: rgba(220, 53, 69, 0.8);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: none !important;
    animation: fadeInError 0.3s ease;
}

.field-error:not(:empty) {
    display: block !important;
}

.field-success {
    color: rgba(40, 167, 69, 0.8);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: none !important;
    animation: fadeInSuccess 0.3s ease;
}

.field-success:not(:empty) {
    display: block !important;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSuccess {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-form:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.form-select {
    width: 100%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(26, 26, 26, 0.8);
}

/* Radio Options Elegantes */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.8rem;
    margin: 0.5rem 0;
    flex: 1;
    min-height: 0;
    align-content: start;
    align-items: stretch;
}

.radio-option {
    position: relative;
    cursor: pointer;
    height: 100%;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
    min-height: 120px;
}

.radio-option input:checked + .radio-label {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.radio-title {
    color: var(--light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.radio-desc {
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    flex-shrink: 0;
}

.btn-form {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 0.05rem;
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative;
}

.btn-form:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-form.primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold);
}

.btn-form.primary:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

/* Success State */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.success-title {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.success-message {
    color: rgba(212, 175, 55, 0.8);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-form-container {
        padding: 2rem 1.5rem;
        width: 95%;
        max-height: 92vh;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .radio-label {
        padding: 1.2rem 0.8rem;
        min-height: 100px;
    }
}

/* Breakpoint padronizado: 768px */
@media (max-width: 768px) {
    .vip-form-container {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem 1.2rem;
    }

    .form-header {
        margin-bottom: 1rem;
    }

    .progress-container {
        margin-bottom: 1rem;
    }
}
