/**
 * Smart Form Styles - Formulario Multi-Step
 * Casa Alta Tenerife
 */

.smart-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* === PROGRESS BAR === */
.form-progress {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    margin-bottom: 0;
}

.form-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.form-progress .step.active,
.form-progress .step.completed {
    color: #fff;
}

.form-progress .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.form-progress .step.active .step-number {
    background: #fff;
    color: #667eea;
    transform: scale(1.1);
}

.form-progress .step.completed .step-number {
    background: #10b981;
    color: #fff;
}

.form-progress .step.completed .step-number:before {
    content: "✓";
}

.form-progress .step-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FORM STEPS === */
.form-step {
    display: none;
    padding: 40px 32px;
    min-height: 400px;
}

.form-step.active {
    display: block;
    animation: stepFadeIn 0.4s ease-in-out;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.step-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* === OPTION CARDS (STEP 1) === */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.option-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.option-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.option-card.selected .option-icon {
    transform: scale(1.2);
}

.option-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.option-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.option-card.selected .option-desc {
    color: rgba(255, 255, 255, 0.8);
}

.option-popular {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 0 12px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FORM FIELDS === */
.form-fields {
    margin-bottom: 32px;
}

.field-group {
    margin-bottom: 24px;
}

.field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.field-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* === NAVIGATION === */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-submit:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* === ERROR STATES === */
.step-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* === SUCCESS STATE === */
.form-success {
    text-align: center;
    padding: 60px 32px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: successBounce 0.6s ease-in-out;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.form-success h3 {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 16px;
}

.form-success p {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === INCENTIVE === */
.form-incentive {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 20px 24px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    margin-top: -16px;
}

.incentive-text {
    font-size: 14px;
    line-height: 1.5;
}

.incentive-text strong {
    font-weight: 700;
}

/* === PRIVACY NOTICE === */
.privacy-notice {
    margin-top: 20px;
    text-align: center;
}

.privacy-notice small {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .smart-form {
        margin: 16px;
        border-radius: 12px;
    }

    .form-progress {
        padding: 16px;
    }

    .form-progress .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .form-progress .step-label {
        font-size: 10px;
    }

    .form-step {
        padding: 24px 16px;
        min-height: 300px;
    }

    .step-header h3 {
        font-size: 20px;
    }

    .option-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .option-card {
        padding: 20px 12px;
    }

    .option-icon {
        font-size: 28px;
    }

    .option-title {
        font-size: 14px;
    }

    .option-desc {
        font-size: 12px;
    }

    .step-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 16px 24px;
    }

    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .option-cards {
        grid-template-columns: 1fr;
    }

    .form-success {
        padding: 40px 16px;
    }

    .success-icon {
        font-size: 48px;
    }

    .form-success h3 {
        font-size: 24px;
    }

    .form-success p {
        font-size: 16px;
    }
}