.quote-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Step Container */
.quote-step {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Step Header (always visible) */
.step-header {
    padding: 10px;
    cursor: pointer;
    position: relative; /* For positioning the chevron */
}

/* Collapsed Step Styling */
.quote-step.collapsed {
    background: #f0f4f8; /* Light gray-blue for collapsed steps */
}

.quote-step.collapsed .step-header {
    background: #f0f4f8; /* Match the collapsed step background */
}

/* Active Step Styling */
.quote-step.active {
    background: #e6f0ff; /* Light blue for active step */
}

.quote-step.active .step-header {
    background: #e6f0ff; /* Match the active step background */
}

/* Chevron Indicator */
.step-header::after {
    content: 'â–¼'; /* Down arrow for expanded */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #007BFF;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.quote-step.collapsed .step-header::after {
    content: 'â–¶'; /* Right arrow for collapsed */
}

.step-header h3 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding-bottom: 5px;
    position: relative;
    display: inline-block;
}

.step-header h3 .step-number {
    font-weight: 400;
    color: #007BFF;
    margin-right: 5px;
}

.step-header h3 .step-title {
    font-weight: 500;
    color: #222;
}

.step-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #007BFF, #00c4b4);
}

/* Step Summary (visible only when active) */
.step-summary {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Step Content (form fields, hidden when collapsed) */
.step-content {
    padding: 10px;
    background: #fff;
}

/* Hide content when step is collapsed */
.quote-step.collapsed .step-content {
    display: none;
}

/* Hide summary when step is collapsed */
.quote-step.collapsed .step-summary {
    display: none !important;
}

/* Show summary when step is active */
.quote-step.active .step-summary {
    display: block;
}

/* Form Group (stacked layout) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Button Options */
.button-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-options button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    min-width: 60px;
    text-align: center;
}

.button-options button:hover {
    background: #e0e0e0;
}

.button-options button.selected {
    background: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

.button-options button.selected:hover {
    background: #0056b3;
}

/* Checkbox Group (Styled as Buttons) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    position: relative;
}

.checkbox-group label:hover {
    background: #e0e0e0;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.checkbox-group label:has(input[type="checkbox"]:checked) {
    background: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

.checkbox-group label:has(input[type="checkbox"]:checked):hover {
    background: #0056b3;
}

/* Style for the "Other" services text input */
#other-services {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
}

/* Estimated Price Box */
.price-box {
    background: #e6f0ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto 10px;
    width: 100%;
    max-width: 400px;
}

.price-box #estimated-price {
    font-size: 20px;
    font-weight: bold;
    color: #007BFF;
}

/* Buttons */
.button {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    margin-right: 10px;
    position: relative;
}

.button:hover {
    background: #0056b3;
}

.button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading Spinner */
.button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

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

/* Feedback Messages */
.success {
    color: green;
}

.error {
    color: red;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .quote-wrapper {
        padding: 10px;
    }
    .step-header h3 {
        font-size: 16px;
    }
    .button {
        margin-right: 5px;
        margin-top: 5px;
    }
    
#submission-feedback.success {
    color: green !important;
    font-weight: bold;
}

#submission-feedback {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    display: none;
}

#submission-feedback.success {
    color: #2ecc71;
    background-color: #e8f5e9;
    padding: 10px;
    border: 1px solid #2ecc71;
    border-radius: 4px;
    display: block;
}

#submission-feedback.error {
    color: #e74c3c;
    background-color: #f9e6e6;
    padding: 10px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    display: block;
}
}