/* Quote System Frontend Styles - Themed */

/* Base Container */
.quote-form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--qs-background-color);
    color: var(--qs-text-color);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--qs-border-color);
}

/* Header */
.quote-form-header {
    background: var(--qs-primary-color);
    color: var(--qs-button-text-color);
    padding: 2rem;
    text-align: center;
}

.quote-form-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.quote-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Steps */
.quote-step {
    padding: 2rem;
    min-height: 350px;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.quote-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--qs-border-color);
}

.quote-step-number {
    background: var(--qs-primary-color);
    color: var(--qs-button-text-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.quote-step-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--qs-text-color);
    font-weight: 600;
}

/* Service Cards */
.quote-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch; /* Ensure cards in a row stretch to same height */
}

.quote-service-card {
    border: 1px solid var(--qs-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--qs-background-color);
    transition: all 0.3s ease;
    display: flex; /* Use flexbox for equal height */
    flex-direction: column; /* Stack items vertically */
}

.quote-service-card:hover {
    border-color: var(--qs-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.quote-service-header {
    display: flex;
    justify-content: space-between; /* Align items */
    align-items: center; /* Vertically align items */
    margin-bottom: 1rem;
}

.quote-service-card h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--qs-text-color);
    font-weight: 600;
}

.quote-service-price {
    background-color: var(--qs-light-primary-color);
    color: var(--qs-primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent price from shrinking */
}

.quote-service-description {
    color: var(--qs-text-color);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow description to grow, pushing button down */
}

.quote-select-service {
    margin-top: auto; /* Push button to the bottom */
}

/* Questions */
.quote-question {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--qs-question-bg-color);
    border-radius: 10px;
    border-left: 3px solid var(--qs-primary-color);
}

.quote-question-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--qs-text-color);
    margin-bottom: 1rem;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

.quote-options {
    display: grid;
    gap: 0.75rem;
}

.quote-option {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align text left, price right */
    padding: 1rem;
    background: var(--qs-background-color);
    border: 1px solid var(--qs-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-option:hover {
    border-color: var(--qs-primary-color);
    background: var(--qs-light-primary-color);
}

.quote-option-text {
    flex-grow: 1; /* Allow text to take up available space */
    padding-left: 5px; /* Add space next to radio button */
}

.quote-option-price {
    font-weight: bold;
    color: var(--qs-accent-color);
    background: transparent;
    padding: 0;
    margin-left: 1rem; /* Add space between text and price */
}

/* Summary */
.quote-summary {
    background: var(--qs-question-bg-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.quote-price-breakdown, .quote-selected-options {
    margin-bottom: 1.5rem;
}

.quote-base-price, .quote-additional-price, .quote-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--qs-border-color);
}

.quote-total-price {
    border-bottom: none;
    border-top: 2px solid var(--qs-primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--qs-text-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.quote-price-label {
    font-weight: 500;
    opacity: 0.8;
}

.quote-price-value {
    font-weight: bold;
    color: var(--qs-accent-color);
}

.quote-selected-options h4 {
    margin-bottom: 1rem;
    color: var(--qs-text-color);
}

/* Contact Form */
.quote-form-group input[type="text"],
.quote-form-group input[type="email"],
.quote-form-group input[type="tel"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--qs-border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: var(--qs-background-color);
    color: var(--qs-text-color);
}

.quote-form-group input:focus {
    outline: none;
    border-color: var(--qs-primary-color);
    box-shadow: 0 0 0 3px var(--qs-light-primary-color);
}

/* Buttons */
.quote-btn-back {
    background: var(--qs-secondary-button-bg-color);
    color: var(--qs-secondary-button-text-color);
    border-color: var(--qs-border-color);
}

.quote-btn-back:hover {
    background: var(--qs-secondary-button-hover-bg-color);
}

.quote-btn-next, .quote-btn-primary, .quote-select-service {
    background: var(--qs-primary-color);
    color: var(--qs-button-text-color);
    border: none;
}

.quote-btn-next:hover, .quote-btn-primary:hover, .quote-select-service:hover {
    background: var(--qs-primary-button-hover-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Price Widget */
.quote-price-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--qs-background-color);
    color: var(--qs-text-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid var(--qs-border-color);
    width: 180px;
    text-align: center;
    display: none; /* Initially hidden */
}

.quote-widget-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

.quote-widget-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--qs-accent-color);
    margin-bottom: 0.5rem;
}

.quote-widget-note {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.3;
}

/* Custom Radio Buttons */
.quote-option input[type="radio"] {
    border-color: var(--qs-border-color);
}

.quote-option input[type="radio"]:checked {
    background: var(--qs-primary-color);
    border-color: var(--qs-primary-color);
}

.quote-option input[type="radio"]:checked::after {
    background: var(--qs-button-text-color);
}

/* Other shared styles from previous CSS */
.quote-form-group { margin-bottom: 1.5rem; }
.quote-form-group label { display: block; font-weight: 600; color: var(--qs-text-color); margin-bottom: 0.5rem; }
.quote-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.quote-btn { padding: 0.85rem 1.75rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.quote-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.quote-step-success { text-align: center; padding: 3rem 2rem; }
.quote-success-icon { font-size: 4rem; color: var(--qs-primary-color); margin-bottom: 1rem; }
.quote-step-success h3 { color: var(--qs-text-color); margin-bottom: 1rem; font-size: 1.8rem; }
.quote-selected-option { padding: 0.5rem 0; opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .quote-form-container { margin: 1rem; }
    .quote-step { padding: 1.5rem; }
    .quote-services { grid-template-columns: 1fr; }
    .quote-navigation { flex-direction: column; gap: 1rem; }
    .quote-btn { width: 100%; justify-content: center; }
    .quote-price-widget { position: static; margin-top: 1rem; width: 100%; max-width: none; }
}