/* Form Page Styles */
.form-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
}

.form-container {
    background: rgba(10, 10, 10, 0.79);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.6s ease-out;
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 40px;
    line-height: 1.4;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 14.28%;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Question Slides */
.question-slide {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.5;
}

.required {
    color: var(--color-gold);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input.error {
    border-color: #e74c3c;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone Input */
.phone-input-container {
    display: flex;
    gap: 10px;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    min-width: 130px;
    transition: all 0.3s ease;
}

.country-selector:hover {
    border-color: var(--color-gold);
}

.country-flag {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    overflow: hidden;
    text-indent: -9999px; /* ocultar el texto del código */
}

.country-code {
    font-size: 0.95rem;
    color: var(--color-white);
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.country-dropdown.open {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.country-option:hover {
    background: rgba(212, 175, 55, 0.2);
}

.country-option .flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    overflow: hidden;
    text-indent: -9999px;
}

.country-option .name {
    font-size: 0.9rem;
    color: var(--color-white);
    flex: 1;
}

.country-option .code {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.phone-number {
    flex: 1;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.radio-option input {
    display: none;
}

.radio-option input:checked + .radio-custom {
    border-color: var(--color-gold);
    background: var(--color-gold);
}

.radio-option input:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-option input:checked ~ .radio-label {
    color: var(--color-gold);
}

.radio-option:has(input:checked) {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

.radio-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.radio-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--color-dark);
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s ease;
}

.radio-label {
    font-size: 1rem;
    color: var(--color-white);
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Error Message */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
}

.btn-nav {
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-prev:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-next,
.btn-submit {
    background: var(--color-gold);
    color: var(--color-dark);
    margin-left: auto;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-submit {
    width: 100%;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--color-white);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 35px 25px;
        margin: 20px;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .question-label {
        font-size: 1.05rem;
    }
    
    .phone-input-container {
        flex-direction: column;
    }
    
    .country-selector {
        width: 100%;
    }
    
    .btn-nav {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .form-page {
        padding: 80px 10px 40px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .radio-option {
        padding: 15px;
    }
    
    .radio-label {
        font-size: 0.95rem;
    }
}
