.online-quote .container {
    max-width: 1200px !important;
    margin: 0 auto;
}

.online-quote .header {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.online-quote .header h1 {
    color: #2d3748;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.online-quote .header p {
    color: #718096;
    font-size: 1.1em;
}

.online-quote .steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.online-quote .step {
    background: rgba(255,255,255,0.2);
    padding: 15px 30px;
    border: solid 1px #d6ab4e;
    /* border-radius: 50px; */
    color: #3b393c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.online-quote .step-number {
    background: #3b393c;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.online-quote .main-content {
    background: white;
    /* border-radius: 16px; */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

.online-quote .quick-quote-section {
    margin-bottom: 40px;
}

.quick-quote-section h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.online-quote .dimensions-input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #e9ecef;
    /* border-radius: 12px; */
}

.online-quote .input-group {
    display: flex;
    flex-direction: column;
}

.online-quote .input-group label,
.online-quote .form-group label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-quote .form-group {
    margin-bottom: 20px;
}

.online-quote .input-group input,
.online-quote .input-group select,
.online-quote .form-group input,
.online-quote .form-group select {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8em !important;
    transition: all 0.3s;
    background: white;
}

.online-quote .input-group select,
.online-quote .form-group select{
    padding: 11px 16px;
}

.online-quote .blinds-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.online-quote .blinds-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
    border-radius: 8px;
}

.online-quote .overlay-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #d6ab4e;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.online-quote .blinds-grid-overlay p {
    color: #2d3748;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

/* Dim the cards when overlay is active */
.online-quote .blinds-grid.loading .blind-card {
    opacity: 0.4;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Keep existing price container simple */
.online-quote .price-container {
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.online-quote .blind-card {
    background: white;
    border: 2px solid #e2e8f0;
    /* border-radius: 12px; */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.online-quote .blind-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #d6ab4e;
}

.online-quote .blind-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em; */
}

.online-quote .blind-info {
    padding: 20px;
}

.online-quote .blind-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.online-quote .blind-price {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #385647
}

.online-quote .blind-price-was{
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    padding-bottom: 0px !important;
}

.online-quote .blind-discount-badge {
    display: inline-block;
    background: #9A1222;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    width: fit-content;
}

/* Individual card loader */
.online-quote .price-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(136, 136, 136, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.online-quote .price-spinner-wheel {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d6ab4e;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
}

 .online-quote .blind-size {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.online-quote .btn-add,
.online-quote .btn-add-quote {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: rgb(59, 57, 60);
    border: solid 1px rgba(59, 57, 60, 0.75);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-quote .btn-add:hover,
.online-quote .btn-add-quote:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.online-quote .quote-items {
    margin-top: 40px;
}

.online-quote .quote-items h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.online-quote .quote-item {
    background: #f7fafc;
    border-left: 4px solid #d6ab4e;
    padding: 20px;
    margin-bottom: 15px;
    /* border-radius: 8px; */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.online-quote .quote-item-details h3,
.customer-form h3 {
    color: #2d3748;
    margin-bottom: 10px !important;
    font-size: 1.2em !important;
}

.online-quote .quote-item-specs {
    color: #718096;
    font-size: 0.95em;
    line-height: 1.6;
}

.online-quote .quote-item-specs p{
    padding-bottom: 0px !important;
}

.online-quote .quote-item-price{
    font-size: 0.95em;
    color: #718096;
    text-align: right;
}

.online-quote .quote-discount-price{
    color: #9A1222;
}

.online-quote .quote-current-price{
    color: #385647;
    font-weight: 800;
}

.online-quote .btn-remove,
.online-quote .btn-edit {
    background: #B5404D;
    color: white;
    border: none;
    padding: 8px 16px;
    /* border-radius: 6px; */
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
}

.online-quote .quote-summary {
    background: #e9ecef;
    color: #3b393c;
    padding: 30px;
    /* border-radius: 12px; */
    margin-top: 30px;
}

.online-quote .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.online-quote .summary-total {
    border-top: 2px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.5em;
    font-weight: 800;
}

.online-quote .btn-submit {
    width: 100%;
    padding: 18px;
    background: white;
    color: rgb(59, 57, 60);
    border: solid 1px rgba(59, 57, 60, 0.75);
    /* border-radius: 8px; */
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.online-quote .btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

/** ---------- Modal ------------ **/
.online-quote .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.online-quote .modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-quote .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.online-quote .modal-loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.online-quote .modal-loading-overlay .spinner {
    margin: 0 auto 10px;
}

.online-quote .modal-loading-overlay p {
    color: #4a5568;
    font-weight: 500;
}

.online-quote #modalForm {
    transition: opacity 0.3s ease;
}

/* .online-quote .modal-header{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
} */

.online-quote .modal-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.online-quote .modal-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em !important;
    color: #1a202c;
    font-weight: 600;
}

/* Modal price display */
.online-quote .modal-price-display {
    background: #f7f7f7;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0px;
    text-align: center;
}

.online-quote #modalPrice {
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 700;
    color: #385647;
}

/* Modal price blur overlay */
.online-quote .modal-price-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 253, 244, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 6px;
}

.online-quote .modal-spinner-wheel {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d6ab4e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

.online-quote .color-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.online-quote .color-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s;
}

.online-quote .color-option-item:hover {
    border-color: #d6ab4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.online-quote .color-option-item.selected {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.online-quote .color-option-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.online-quote .color-option-item span {
    font-size: 13px;
    color: #4a5568;
    text-align: center;
}

.online-quote .color-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.online-quote .color-option {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.online-quote .color-option:hover {
    border-color: #667eea;
}

.online-quote .color-option.selected {
    border-color: #667eea;
    background: #f7fafc;
}

.online-quote .modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.online-quote .btn-cancel {
    flex: 1;
    padding: 14px;
    background: #B5404D;
    color: #fff;
    border: none;
    /* border-radius: 8px; */
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .online-quote .header h1 {
        font-size: 1.8em;
    }

    .online-quote .main-content {
        padding: 20px;
    }

    .online-quote .blinds-grid {
        grid-template-columns: 1fr;
    }

    .online-quote .steps {
        flex-direction: column;
        align-items: stretch;
    }

    .online-quote .quote-item {
        grid-template-columns: 1fr;
    }

    .online-quote .item-price {
        text-align: left;
        margin-top: 10px;
    }

    .online-quote .modal-content {
        padding: 25px;
    }
}

.online-quote .quote-tool-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.online-quote .quote-tool-header {
    margin-bottom: 30px;
}

.online-quote .category-filter {
    margin: 20px 0;
}

.online-quote .category-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.online-quote .category-filter select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Blinds loader */
.online-quote .blinds-loader {
    text-align: center;
    padding: 40px;
}

.online-quote .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d6ab4e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quote Item Styles */
.online-quote .no-blinds {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.online-quote .customer-form {
    background: white;
    padding: 20px;
    /* border-radius: 8px; */
    margin: 20px 0;
}

.online-quote .customer-form h3 {
    margin: 0 0 15px 0;
    color: #1a202c;
}

.online-quote .customer-form .form-group {
    margin-bottom: 15px;
}

.online-quote .customer-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
}

.online-quote .customer-form input,
.online-quote .customer-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.online-quote .address-group-1,
.online-quote .address-group-2 {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.online-quote .address-group-1 {
    grid-template-columns: 2fr 1fr;
}

.online-quote .address-group-2 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .online-quote .address-group-1,
    .online-quote .address-group-2 {
        grid-template-columns: 1fr;
    }
}

.online-quote .measure-guide{
    color: #4a5568;
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.online-quote .btn-add:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}