/* ===== QUOTE PAGE STYLES ===== */

/* Quote Hero Section */
.quote-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 120px; /* Account for fixed header */
    text-align: center;
}

.quote-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.quote-hero-content {
    position: relative;
    z-index: 2;
}

.quote-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.quote-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-badge i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Quote Form Section */
.quote-form-section {
    padding: 4rem 0;
    background: #ffffff !important;
    min-height: 80vh;
}

.quote-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.quote-progress {
    background: #ffffff !important;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 25%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.step i {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(30, 60, 114, 0.1);
}

.step.active i,
.step.active span {
    color: var(--primary-color);
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* AI Suggestions Panel */
.ai-suggestions-panel {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(16, 185, 129, 0.05));
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-header:hover {
    background: rgba(30, 60, 114, 0.1);
}

.ai-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.ai-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    flex: 1;
}

.ai-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-content {
    padding: 0 2rem 2rem;
    display: none;
}

.ai-loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.ai-suggestions {
    display: grid;
    gap: 1rem;
}

.ai-suggestion {
    background: #ffffff !important;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ai-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ai-suggestion h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.ai-suggestion p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Quote Form */
.quote-form {
    padding: 2rem;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

.form-step h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-validation {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.field-validation.error {
    color: #e74c3c;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #f39c12;
}

/* Service Options */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.service-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.service-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.service-option.selected {
    border-color: var(--primary-color);
    background: rgba(30, 60, 114, 0.05);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.service-option i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.service-option.selected i {
    color: var(--primary-color);
}

.service-option span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    font-size: 0.9rem;
}

/* Budget Options */
.budget-options {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

.budget-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.budget-option:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.budget-option.selected {
    border-color: var(--primary-color);
    background: rgba(30, 60, 114, 0.05);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.budget-range {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.budget-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Timeline Options */
.timeline-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.timeline-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.timeline-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.timeline-option.selected {
    border-color: var(--primary-color);
    background: rgba(30, 60, 114, 0.05);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.timeline-option i {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.timeline-option.selected i {
    color: var(--primary-color);
}

.timeline-option span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    font-size: 0.9rem;
}

/* Contact Options */
.contact-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff !important;
    flex: 1;
}

.contact-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.contact-option.selected {
    border-color: var(--primary-color);
    background: rgba(30, 60, 114, 0.05);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.contact-option i {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contact-option.selected i {
    color: var(--primary-color);
}

.contact-option span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    font-size: 0.9rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Quote Summary */
.quote-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.quote-summary h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-content {
    display: grid;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff !important;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.summary-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #0e9f6e);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-hero h1 {
        font-size: 2.5rem;
    }

    .quote-hero p {
        font-size: 1rem;
    }

    .quote-form-container {
        margin: 0 1rem;
        border-radius: 15px;
    }

    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .step {
        flex-direction: row;
        padding: 0.75rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .service-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-options {
        flex-direction: column;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quote-hero {
        padding: 6rem 0 3rem;
    }

    .quote-hero h1 {
        font-size: 2rem;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .timeline-options {
        grid-template-columns: 1fr;
    }
}
