/* Quote Page Specific Styles */

.quote-hero {
    padding: 8rem 0 4rem;
    background: var(--gradient-dark);
    text-align: center;
    margin-top: 70px;
}

.quote-hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.quote-hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.quote-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.benefit i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.quote-form-section {
    padding: 6rem 0;
    background: var(--primary-color);
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid rgba(224, 224, 224, 0.1);
    box-shadow: var(--shadow-dark);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(224, 224, 224, 0.3);
    z-index: 1;
}

.progress-indicator::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    height: 2px;
    background: var(--accent-color);
    z-index: 2;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-indicator.step-2::after {
    width: 50%;
}

.progress-indicator.step-3::after {
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 3;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(224, 224, 224, 0.3);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--accent-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--accent-color);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-step > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(224, 224, 224, 0.1);
}

.form-navigation .btn {
    min-width: 120px;
}

/* File Upload Styling */
.file-upload {
    border: 2px dashed rgba(224, 224, 224, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--primary-color);
}

.file-upload:hover {
    border-color: var(--accent-color);
    background: rgba(0, 191, 255, 0.05);
}

.file-upload input {
    display: none;
}

.file-upload label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    position: static;
    background: none;
    padding: 0;
}

.file-upload i {
    font-size: 2rem;
    color: var(--accent-color);
}

.file-upload small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Auto-save Indicator */
.auto-save-indicator {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.auto-save-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

/* Form Validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
    color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

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

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .quote-hero {
        padding: 6rem 0 3rem;
    }
    
    .quote-benefits {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .quote-form-container {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .progress-indicator {
        margin-bottom: 2rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quote-form-container {
        padding: 1.5rem 1rem;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .progress-indicator::before,
    .progress-indicator::after {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 1rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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