/* New Quote Flow Styles */

/* Progress Indicator Section */
.progress-indicator-section {
    background: #fff !important;
    padding: 40px 0 !important;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-indicator-section .container {
    max-width: 1200px;
}

/* Progress Indicator */
.progress-steps {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 40px;
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}

.progress-indicator-section .progress-steps::before {
    content: '' !important;
    position: absolute !important;
    top: 25px !important;
    left: 80px !important;
    right: 80px !important;
    height: 3px !important;
    background: #e0e0e0 !important;
    z-index: 0 !important;
}

.progress-step {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 120px;
}

/* More specific selectors to override quote-builder.css */
.progress-indicator-section .step-number {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    line-height: normal !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 3px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #999 !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
}

.progress-indicator-section .step-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #999 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.progress-indicator-section .progress-step.active .step-number {
    background: #FF5722 !important;
    border-color: #FF5722 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4) !important;
    transform: scale(1.1) !important;
}

.progress-indicator-section .progress-step.active .step-label {
    color: #FF5722 !important;
    font-weight: 700 !important;
}

.progress-indicator-section .progress-step.completed .step-number {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

.progress-indicator-section .progress-step.completed .step-number::after {
    content: '✓' !important;
    position: absolute !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.progress-indicator-section .progress-step.completed .step-label {
    color: #4CAF50 !important;
}

/* File Upload Styles */
.upload-area {
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #FF5722;
    background: rgba(255, 87, 34, 0.05);
}

.file-preview-item {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.file-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-preview-item .file-name {
    font-size: 12px;
    color: #666;
    word-break: break-all;
    margin-bottom: 5px;
}

.file-preview-item .file-size {
    font-size: 11px;
    color: #999;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.file-preview-item .remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

.file-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Character Counter */
#char-count {
    font-weight: 600;
    color: #333;
}

#additional-details-textarea:focus {
    border-color: #FF5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
    outline: none;
}

/* Form Validation */
.form-control.error {
    border-color: #dc3545 !important;
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* Button Hover Effects */
.btn-next-questions:hover,
.btn-next-details:hover,
.btn-next-upload:hover,
.btn-lookup-postcode:hover,
.btn-submit-quote:hover {
    background: #E64A19 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4) !important;
}

.btn-skip-details:hover {
    background: #5a6268 !important;
    transform: translateY(-2px);
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section Containers - Consistent Styling */
.dynamic-questions-section,
.additional-details-section,
.file-upload-section,
.postcode-section-new,
.client-details-section {
    background: #f8f9fa !important;
    padding: 60px 0 !important;
    min-height: 400px;
}

.dynamic-questions-section .question-box,
.additional-details-section .details-box,
.file-upload-section .upload-box,
.postcode-section-new .postcode-box,
.client-details-section .client-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Headers */
.dynamic-questions-section h3,
.additional-details-section h3,
.file-upload-section h3,
.postcode-section-new h3,
.client-details-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #032642;
    margin-bottom: 12px;
}

.dynamic-questions-section p,
.additional-details-section p,
.file-upload-section p,
.postcode-section-new p,
.client-details-section p {
    font-size: 16px;
    color: #666;
}

/* Button Styling */
.btn-next-questions,
.btn-next-details,
.btn-skip-details,
.btn-next-upload,
.btn-lookup-postcode,
.btn-submit-quote {
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-next-questions,
.btn-next-details,
.btn-next-upload,
.btn-lookup-postcode,
.btn-submit-quote {
    background: #FF5722;
    color: white;
}

.btn-next-questions:hover,
.btn-next-details:hover,
.btn-next-upload:hover,
.btn-lookup-postcode:hover,
.btn-submit-quote:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

.btn-skip-details {
    background: #6c757d;
    color: white;
}

.btn-skip-details:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .progress-indicator-section {
        padding: 25px 0 !important;
    }

    .progress-steps {
        padding: 0 10px;
    }

    .progress-steps::before {
        left: 50px;
        right: 50px;
        top: 20px;
    }

    .progress-indicator-section .progress-steps .step-number {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        font-size: 16px !important;
    }

    .progress-indicator-section .progress-steps .step-label {
        font-size: 10px !important;
    }

    .file-preview-item img {
        height: 100px;
    }

    .dynamic-questions-section,
    .additional-details-section,
    .file-upload-section,
    .postcode-section-new,
    .client-details-section {
        padding: 40px 0 !important;
    }

    .dynamic-questions-section .question-box,
    .additional-details-section .details-box,
    .file-upload-section .upload-box,
    .postcode-section-new .postcode-box,
    .client-details-section .client-box {
        padding: 25px 20px !important;
        border-radius: 12px;
    }

    .dynamic-questions-section h3,
    .additional-details-section h3,
    .file-upload-section h3,
    .postcode-section-new h3,
    .client-details-section h3 {
        font-size: 22px;
    }

    .btn-next-questions,
    .btn-next-details,
    .btn-skip-details,
    .btn-next-upload,
    .btn-lookup-postcode,
    .btn-submit-quote {
        width: 100%;
        padding: 14px 30px;
    }
}
