/* Quote Summary Block Styles */
.quote-summary-block {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    height: fit-content;
}

.quote-summary-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

/* Summary Sections */
.summary-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    transition: opacity 0.3s ease;
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Selected Service */
.selected-service-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    transition: color 0.3s ease;
}

.selected-service-text:not(:empty) {
    color: var(--primary-blue);
}

/* Project Details */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 0.875rem;
    text-align: right;
}

.detail-value:not(:empty):not([data-empty="true"]) {
    color: var(--primary-blue);
}

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-item {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-item::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
}

/* Timeline Section */
.timeline-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    border-bottom: none !important;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timeline-icon {
    flex-shrink: 0;
}

.timeline-icon i {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.timeline-info {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.timeline-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Help Section */
.help-section {
    border-bottom: none !important;
    padding-bottom: 0;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.contact-link:hover {
    color: var(--primary-blue);
}

.contact-link i {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.phone-link {
    font-weight: 500;
}

.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.chat-btn i {
    width: 16px;
    height: 16px;
}

/* FAQ Section */
.faq-section {
    margin-top: 1.5rem;
}

.faq-title {
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.faq-title::before {
    content: "▶";
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: var(--gray-500);
}

.faq-section[open] .faq-title::before {
    transform: rotate(90deg);
}

.faq-title::-webkit-details-marker {
    display: none;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.faq-item {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.faq-item strong {
    color: var(--gray-700);
}

/* Animation for summary updates */
.summary-section[data-updated] {
    animation: highlight 0.6s ease-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(0, 123, 255, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* Empty state styling */
.summary-section[data-empty="true"] {
    opacity: 0.6;
}

.summary-section[data-empty="false"] {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-summary-block {
        padding: 1.5rem;
        margin-bottom: 2rem;
        position: static !important;
        top: auto !important;
    }
    
    .summary-title {
        font-size: 1.25rem;
    }
    
    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-icon {
        align-self: flex-start;
    }
    
    .contact-options {
        gap: 1rem;
    }
    
    .chat-btn {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .quote-summary-block {
        padding: 1rem;
        border-radius: var(--radius);
    }
    
    .quote-summary-container {
        gap: 1rem;
    }
    
    .summary-section {
        padding-bottom: 1rem;
    }
    
    .section-title {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
        font-weight: 600;
    }
}