/* Quote Page Styles */

.quote-page-main {
    background: linear-gradient(106deg, #E7F5F4 4.3%, #FFFFFF 106.7%);
    /* Light teal background from Figma */
    min-height: 80vh;
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.quote-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.quote-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #12131A;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.quote-header p {
    font-size: 18px;
    color: #555555;
    max-width: 600px;
    margin: 0 auto;
}

.quote-content-wrapper {
    display: flex;
    gap: 32px;
    position: relative;
    z-index: 10;
    align-items: flex-start;
}

/* Background Ellipses for Quote Page */
.quote-ellipse-1 {
    width: 600px;
    height: 600px;
    left: -200px;
    top: 100px;
    background: rgba(36, 143, 132, 0.05);
}

.quote-ellipse-2 {
    width: 400px;
    height: 400px;
    right: -100px;
    top: -100px;
    background: rgba(36, 143, 132, 0.08);

}

.quote-ellipse-3 {
    width: 300px;
    height: 300px;
    right: 50px;
    bottom: 50px;
    background: rgba(36, 143, 132, 0.05);
}


/* Left Panel: Selected Products */
.selected-products-panel {
    width: 380px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.selected-products-panel h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #12131A;
}

.selected-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
    /* For scrollbar space */
}

/* Custom Scrollbar for list */
.selected-items-list::-webkit-scrollbar {
    width: 4px;
}

.selected-items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.selected-items-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}


.selected-product-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
}

.selected-product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: #f9f9f9;
    object-fit: contain;
    padding: 4px;
    border: 1px solid #eee;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #12131A;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-config {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.quote-summary {
    border-top: 2px solid #F5F5F5;
    padding-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #12131A;
    font-weight: 600;
}

.summary-row span:last-child {
    font-weight: 700;
}


/* Right Panel: Contact Form */
.contact-form-panel {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.04);
}

.contact-form-panel h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #12131A;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #12131A;
    margin-bottom: 8px;
}

.required {
    color: #FF5C5C;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #F8F8F8;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #248F84;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(36, 143, 132, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Validation Error Styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #FF5C5C;
    background-color: #FFF4F4;
}

.error-message {
    color: #FF5C5C;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.form-disclaimer {
    background-color: #F8F8F8;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.form-disclaimer p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submit-quote-btn {
    width: 48%;
    justify-content: center;
    font-size: 16px;
    padding: 14px;
}

.back-btn {
    width: 48%;
    border-radius: 50px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.back-btn:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
    .quote-content-wrapper {
        flex-direction: column;
    }

    .selected-products-panel {
        width: 100%;
        order: 2;
        /* Move below form on mobile if desired, or keep top */
        order: 1;
        /* Actually usually better on top so they know what they are querying about, or bottom? Figma implies side by side. Stacked: List then Form */
    }

    .contact-form-panel {
        width: 100%;
        order: 2;
    }
}