/* Floating Quote Button - Positioned below nav bar */
.quote-float-btn {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 140px;
    height: 50px;
    background: linear-gradient(135deg, #54aeac 0%, #0a5662 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(84, 174, 172, 0.4);
    z-index: 110;
    transition: all 0.3s ease;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adjust position when header is sticky - ensure below header */
.header-area.sticky ~ .quote-float-btn,
.header-area.homepage12.sticky ~ .quote-float-btn,
.header-area.homepage12.header-sticky.sticky ~ .quote-float-btn {
    top: 100px;
}

@media (max-width: 991px) {
    .quote-float-btn {
        top: 80px;
        right: 15px;
        min-width: 120px;
        height: 45px;
        font-size: 13px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .quote-float-btn {
        top: 70px;
        right: 15px;
        min-width: 110px;
        height: 42px;
        font-size: 11px;
        padding: 0 12px;
    }
    
    .quote-float-btn::before {
        content: "Calculator";
    }
}

.quote-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 174, 172, 0.6);
    background: linear-gradient(135deg, #0a5662  0%, #54aeac 100%);
}

.quote-float-btn i {
    display: none;
}

.quote-float-btn .fa {
    display: none;
}

.quote-float-btn::before {
    content: "Construction Calculator";
}

/* Quote Modal */
.quote-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.quote-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-modal-container {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.quote-modal-header {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.quote-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.quote-modal-close:hover {
    transform: rotate(90deg);
}

.quote-modal-body {
    padding: 30px;
}

.quote-form-group {
    margin-bottom: 20px;
}

.quote-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.quote-form-group input[type="text"],
.quote-form-group input[type="email"],
.quote-form-group input[type="tel"],
.quote-form-group input[type="number"],
.quote-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
}

.quote-form-group input[type="text"]:focus,
.quote-form-group input[type="email"]:focus,
.quote-form-group input[type="tel"]:focus,
.quote-form-group input[type="number"]:focus,
.quote-form-group textarea:focus {
    outline: none;
    border-color: #54aeac;
    box-shadow: 0 0 0 3px rgba(84, 174, 172, 0.1);
}

.quote-form-group input[type="text"]:hover,
.quote-form-group input[type="email"]:hover,
.quote-form-group input[type="tel"]:hover,
.quote-form-group input[type="number"]:hover,
.quote-form-group textarea:hover {
    border-color: #54aeac;
}

/* Hide nice-select dropdowns in quote calculator form and ensure native selects are visible */
#quote-calculator-form .nice-select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#quote-calculator-form select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Hide nice-select dropdowns in interior design calculator form and ensure native selects are visible */
#idesign-calculator-form .nice-select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#idesign-calculator-form select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Ensure interior design calculator select fields get proper styling */
#idesign-bhk,
#idesign-plan {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23D1B06B' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.quote-form-group select,
#construction-area,
#construction-variant {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.quote-form-group select:focus,
#construction-area:focus,
#construction-variant:focus {
    outline: none;
    border-color: #54aeac;
    box-shadow: 0 0 0 3px rgba(84, 174, 172, 0.1);
}

.quote-form-group select:hover:not(:disabled),
#construction-area:hover:not(:disabled),
#construction-variant:hover:not(:disabled) {
    border-color: #54aeac;
}

.quote-form-group select:disabled,
#construction-area:disabled,
#construction-variant:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.quote-form-group textarea {
    min-height: 100px;
    resize: vertical;
    padding-right: 15px;
}

.quote-form-group input[type="number"] {
    -moz-appearance: textfield;
    padding-right: 15px;
}

.quote-form-group input[type="number"]::-webkit-outer-spin-button,
.quote-form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure all inputs have consistent box-sizing */
.quote-form-group input,
.quote-form-group select,
.quote-form-group textarea {
    box-sizing: border-box;
}

.quote-checkbox-group {
    margin-bottom: 20px;
}

.quote-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.quote-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #54aeac;
}

/* Desktop: Show tables, hide mobile dropdowns and checkboxes */
@media (min-width: 769px) {
    .addon-table-mobile-select,
    .material-specs-mobile-select {
        display: none !important;
    }
    
    .addon-checkbox-wrapper {
        display: none !important;
    }
    
    .addon-table-section > h4 {
        display: block !important;
    }
    
    /* Ensure tables are visible on desktop */
    .addon-table,
    .addon-table thead,
    .addon-table tbody,
    .addon-table tr,
    .addon-table td,
    .addon-table th {
        display: table !important;
    }
    
    .addon-table {
        display: table !important;
    }
    
    .addon-table thead {
        display: table-header-group !important;
    }
    
    .addon-table tbody {
        display: table-row-group !important;
    }
    
    .addon-table tr {
        display: table-row !important;
    }
    
    .addon-table td,
    .addon-table th {
        display: table-cell !important;
    }
}

.quote-cost-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none; /* Hidden by default, shown only after form submission */
}

.quote-cost-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.quote-cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.quote-cost-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quote-cost-item.total {
    font-weight: 700;
    font-size: 18px;
    color: #6bcad1;
    border-top: 2px solid #D1B06B;
    padding-top: 10px;
    margin-top: 10px;
}

.quote-cost-label {
    color: #666;
}

.quote-cost-value {
    color: #333;
    font-weight: 600;
}

.quote-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(209, 176, 107, 0.4);
}

.quote-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quote-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.quote-error.show {
    display: block;
}

.quote-success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.quote-success-message.show {
    display: block;
}

/* Top Calculator Section */
.construction-calculator-top {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    padding: 50px 20px;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(209, 176, 107, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.construction-calculator-top::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.calculator-top-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.calculator-top-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.calculator-top-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.calculator-top-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #D1B06B;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.calculator-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* Material Specifications Table */
.material-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.material-specs-table th {
    background: linear-gradient(135deg, #54aeac 0%, #0a5662 100%);
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.material-specs-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.material-specs-table tr:last-child td {
    border-bottom: none;
}

.material-specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Addon Tables */
.addon-table-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.addon-table-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Checkbox wrapper for addons */
.addon-checkbox-wrapper {
    margin-bottom: 15px;
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #54aeac;
}

/* Disabled mobile dropdown styling - will be hidden on mobile, visible on desktop if needed */
.addon-table-mobile-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.addon-table-mobile-select:disabled:hover {
    border-color: #ddd;
}

.addon-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.addon-table th {
    background: #54aeac;
    color: #fff;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.addon-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
}

.addon-select-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.addon-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(209, 176, 107, 0.4);
}

.addon-select-btn.selected {
    background: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.addon-select-btn.selected:hover {
    background: #218838;
}

/* Updated Modal Container */
.quote-modal-container {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

/* Material specs mobile select - read-only display */
.material-specs-mobile-select {
    display: none;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    margin-bottom: 15px;
    color: #666;
    cursor: not-allowed;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

@media (max-width: 768px) {
    /* CRITICAL: Hide tables COMPLETELY on mobile - prevent any table-to-dropdown conversion */
    /* Override any Bootstrap or framework responsive table classes */
    .material-specs-table,
    .material-specs-table *,
    .addon-table,
    .addon-table *,
    .addon-table thead,
    .addon-table tbody,
    .addon-table tr,
    .addon-table td,
    .addon-table th,
    .addon-table button,
    .addon-table .addon-select-btn,
    table.addon-table,
    .addon-table-section table,
    .addon-table-section table *,
    /* Override Bootstrap responsive table classes if any */
    .table-responsive .addon-table,
    .table-responsive table.addon-table,
    .table-responsive .addon-table * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        clip: rect(0, 0, 0, 0) !important;
        overflow: hidden !important;
        font-size: 0 !important;
        line-height: 0 !important;
        content: none !important;
    }
    
    /* Hide the entire table container - multiple ways to ensure it's hidden */
    .addon-table-section table.addon-table,
    .addon-table-section > table,
    .addon-table-section table {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        content: none !important;
    }
    
    /* Prevent any table wrapper from showing */
    .addon-table-section .table-responsive,
    .table-responsive {
        display: none !important;
    }
    
    /* Hide desktop h4 headers, show checkbox labels instead */
    .addon-table-section > h4 {
        display: none !important;
    }
    
    /* Show checkbox wrapper */
    .addon-checkbox-wrapper {
        display: block !important;
        margin-bottom: 12px;
    }
    
    /* CRITICAL: Hide ALL disabled mobile dropdowns - only show when checkbox is checked (enabled) */
    .addon-table-section .addon-table-mobile-select:disabled {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        overflow: hidden !important;
    }
    
    /* Show enabled mobile dropdowns ONLY - one per section when checkbox is checked */
    /* This is the ONLY dropdown that should be visible - tables are completely hidden above */
    /* IMPORTANT: Only actual <select> elements with class addon-table-mobile-select should show */
    .addon-table-section select.addon-table-mobile-select:not(:disabled) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 12px 15px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 15px;
        background: #fff;
        margin-bottom: 15px;
        margin-top: 0 !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px;
        padding-right: 40px;
        cursor: pointer;
        color: #333;
        font-family: inherit;
        box-sizing: border-box;
        transition: all 0.3s ease;
        direction: ltr;
        clip: auto !important;
        overflow: visible !important;
    }
    
    /* CRITICAL: Ensure NO select elements from tables are visible - only our mobile dropdowns */
    .addon-table-section table select,
    .addon-table-section .addon-table select,
    .addon-table-section table option,
    .addon-table-section .addon-table option,
    .addon-table-section table button[type="button"] {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Ensure buttons in tables don't render as dropdowns or select-like elements */
    .addon-table-section .addon-select-btn,
    .addon-table-section button.addon-select-btn,
    .addon-table .addon-select-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        height: 0 !important;
        width: 0 !important;
        pointer-events: none !important;
    }
    
    /* Ensure dropdown opens downward */
    .addon-table-section select.addon-table-mobile-select:not(:disabled) option {
        direction: ltr;
        text-align: left;
    }
    
    /* FINAL SAFETY: On mobile, ONLY show checkbox and enabled dropdown - hide everything else in the section */
    .addon-table-section {
        position: relative;
    }
    
    /* ULTIMATE RULE: Ensure table and its container take no space and are completely invisible */
    /* This overrides ANY framework or browser default that might convert tables to dropdowns */
    .quote-modal-body .addon-table-section > table,
    .quote-modal-body .addon-table-section table.addon-table,
    .addon-table-section > table.addon-table,
    .addon-table-section table.addon-table,
    div.addon-table-section > table.addon-table {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        opacity: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        font-size: 0 !important;
        line-height: 0 !important;
        transform: scale(0) !important;
        pointer-events: none !important;
    }
    
    /* Prevent table from being converted to any form of select/dropdown by frameworks */
    .addon-table-section table,
    .addon-table-section table * {
        -webkit-appearance: none !important;
        appearance: none !important;
        -moz-appearance: none !important;
    }
    
    .addon-table-mobile-select:not(:disabled):focus {
        outline: none;
        border-color: #54aeac;
        box-shadow: 0 0 0 3px rgba(84, 174, 172, 0.1);
    }
    
    .addon-table-mobile-select:not(:disabled):hover {
        border-color: #54aeac;
    }
    
    /* Mobile specific step visibility - ensure only active step is visible */
    #quote-step-1:not(.active),
    #quote-step-2:not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    #quote-step-1.active,
    #quote-step-2.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        left: auto !important;
    }
    
    .quote-step {
        width: 100% !important;
    }
    
    .material-specs-mobile-select {
        display: block !important;
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        background: #f8f9fa;
        margin-bottom: 15px;
        color: #666;
        cursor: not-allowed;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        box-sizing: border-box;
    }
    
    
    .construction-calculator-top {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .calculator-top-content h2 {
        font-size: 22px;
    }
    
    .calculator-top-content p {
        font-size: 13px;
    }
    
    .calculator-top-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .quote-modal-container {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .quote-modal-body {
        padding: 20px 15px;
    }
    
    .quote-modal-header {
        padding: 15px 20px;
    }
    
    .quote-modal-header h3 {
        font-size: 18px;
    }
    
    .quote-form-group {
        margin-bottom: 20px;
        width: 100%;
        display: block;
    }
    
    .quote-form-group label {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
        width: 100%;
    }
    
    /* Ensure all form inputs are full width and properly stacked on mobile */
    .quote-form-group {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        display: block !important;
    }
    
    .quote-form-group input[type="text"],
    .quote-form-group input[type="email"],
    .quote-form-group input[type="tel"],
    .quote-form-group input[type="number"],
    .quote-form-group select,
    #construction-area,
    #construction-variant {
        width: 100% !important;
        display: block !important;
        margin-bottom: 0 !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }
    
    /* Proper spacing for addon sections on mobile - ensure clean layout */
    .addon-table-section {
        margin: 20px 0 !important;
        padding: 15px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        clear: both !important;
        float: none !important;
        position: relative !important;
    }
    
    .addon-checkbox-wrapper {
        margin-bottom: 12px !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
        float: none !important;
    }
    
    .addon-checkbox-label {
        font-size: 14px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin-bottom: 0 !important;
    }
    
    /* Ensure mobile dropdown has proper spacing and is the ONLY visible dropdown */
    .addon-table-section select.addon-table-mobile-select:not(:disabled) {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
        float: none !important;
        position: relative !important;
    }
    
    /* CRITICAL: Ensure disabled dropdowns are completely hidden and take no space */
    .addon-table-section select.addon-table-mobile-select:disabled {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Cost summary spacing */
    .quote-cost-summary {
        padding: 15px;
        margin: 20px 0;
    }
    
    .quote-cost-summary h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .quote-cost-item {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .quote-cost-item.total {
        font-size: 16px;
        margin-top: 10px;
        padding-top: 12px;
    }
    
    #material-specs-container {
        margin: 20px 0;
    }
    
    #material-specs-container h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    /* Ensure all form elements are properly stacked */
    .quote-form-group {
        clear: both;
        width: 100%;
    }
    
    /* Submit button spacing */
    .quote-submit-btn {
        width: 100%;
        margin-top: 20px;
        padding: 14px;
        font-size: 16px;
    }
    
    /* Ensure proper layout flow - prevent any floating or side-by-side elements */
    .quote-modal-body > * {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        display: block !important;
    }
    
    /* Ensure form groups stack vertically */
    .quote-form-group,
    .addon-table-section {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
    
    /* Hide cost summary in mobile view until form is submitted */
    .quote-cost-summary {
        display: none !important;
    }
}

/* Responsive for smaller mobile */
@media (max-width: 480px) {
    .construction-calculator-top {
        padding: 25px 12px;
        margin: 15px 0;
    }
    
    .calculator-top-content h2 {
        font-size: 20px;
    }
    
    .calculator-top-content p {
        font-size: 12px;
    }
    
    .calculator-top-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .quote-modal-body {
        padding: 15px 12px;
    }
    
    .quote-modal-container {
        margin: 5px;
        max-height: 98vh;
    }
    
    .quote-modal-header {
        padding: 12px 15px;
    }
    
    .quote-modal-header h3 {
        font-size: 16px;
    }
    
    .quote-form-group {
        margin-bottom: 18px;
        width: 100%;
    }
    
    .quote-form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .quote-form-group input[type="text"],
    .quote-form-group input[type="email"],
    .quote-form-group input[type="tel"],
    .quote-form-group select,
    #construction-area,
    #construction-variant,
    .addon-table-mobile-select,
    .material-specs-mobile-select {
        padding: 10px 12px;
        font-size: 14px;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .quote-form-group select,
    #construction-area,
    #construction-variant,
    .addon-table-mobile-select {
        padding-right: 35px;
    }
    
    .quote-form-group input[type="text"],
    .quote-form-group input[type="email"],
    .quote-form-group input[type="tel"] {
        padding-right: 12px;
    }
    
    .addon-table-section {
        padding: 12px !important;
        margin: 15px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .addon-checkbox-wrapper {
        margin-bottom: 12px !important;
    }
    
    .addon-checkbox-label {
        font-size: 13px !important;
    }
    
    .addon-table-section select.addon-table-mobile-select:not(:disabled) {
        margin-bottom: 10px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    /* Hide cost summary in mobile view until form is submitted */
    .quote-cost-summary {
        display: none !important;
    }
    
    .quote-cost-item {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .quote-cost-item.total {
        font-size: 15px;
        margin-top: 8px;
        padding-top: 10px;
    }
    
    .quote-submit-btn {
        padding: 12px;
        font-size: 15px;
        margin-top: 15px;
    }
}

/* Two-Step Modal Styles */
.quote-step {
    display: none !important;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-step.active {
    display: block !important;
}

/* Ensure steps are properly hidden on all devices */
#quote-step-1:not(.active),
#quote-step-2:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

#quote-step-1.active,
#quote-step-2.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.quote-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-step-header h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.quote-step-header p {
    color: #666;
    font-size: 14px;
}

.contact-next-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #54aeac 0%, #0a5662 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(84, 174, 172, 0.4);
}

.contact-next-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Pricing Summary Modal */
.quote-summary-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.quote-summary-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.summary-modal-header {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.summary-modal-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-modal-header h3::before {
    content: "✓";
    background: rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: checkmark 0.6s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.summary-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.summary-modal-body {
    padding: 30px;
}

.summary-success-message {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
}

.summary-success-message p {
    margin: 0;
    color: #155724;
    font-weight: 600;
    font-size: 16px;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D1B06B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    border-radius: 2px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.summary-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.summary-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.summary-cost-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid #D1B06B;
}

.summary-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.summary-cost-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 3px solid #D1B06B;
    font-size: 22px;
    font-weight: 700;
    color: #0a5662;
}

.summary-cost-label {
    color: #333;
    font-weight: 600;
}

.summary-cost-value {
    color: #0a5662;
    font-weight: 700;
}

.summary-cost-value.total {
    font-size: 26px;
    color: #D1B06B;
}

.summary-pdf-section {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.summary-pdf-download {
    text-align: center;
    margin-top: 15px;
}

.summary-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #54aeac 0%, #0a5662 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(84, 174, 172, 0.3);
}

.summary-pdf-btn:hover {
    background: linear-gradient(135deg, #0a5662 0%, #54aeac 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 174, 172, 0.5);
}

.summary-pdf-btn i {
    font-size: 18px;
}

.summary-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.summary-footer p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Enhanced Modal Styling */
.quote-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quote-modal-header {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    box-shadow: 0 4px 15px rgba(209, 176, 107, 0.3);
}

.quote-form-group input:focus,
.quote-form-group select:focus {
    border-color: #D1B06B;
    box-shadow: 0 0 0 3px rgba(209, 176, 107, 0.1);
}

.quote-submit-btn {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    box-shadow: 0 4px 15px rgba(209, 176, 107, 0.3);
}

.quote-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 176, 107, 0.4);
}

/* Mobile Responsive for Summary Modal */
@media (max-width: 768px) {
    .summary-modal-container {
        max-width: 100%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .summary-modal-header {
        padding: 20px 15px;
    }
    
    .summary-modal-header h3 {
        font-size: 20px;
    }
    
    .summary-modal-body {
        padding: 20px 15px;
    }
    
    .summary-section-title {
        font-size: 16px;
    }
    
    .summary-item {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .summary-cost-item.total {
        font-size: 20px;
    }
    
    .summary-cost-value.total {
        font-size: 22px;
    }
}

/* ============================================
   INTERIOR DESIGN CALCULATOR STYLES
   ============================================ */

/* Interior Design Floating Button */
.idesign-float-btn {
    position: fixed;
    top: 160px;
    right: 20px;
    left: auto;
    min-width: 140px;
    height: 50px;
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(209, 176, 107, 0.4);
    z-index: 110;
    transition: all 0.3s ease;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adjust position when header is sticky - ensure below Construction button */
.header-area.sticky ~ .idesign-float-btn,
.header-area.homepage12.sticky ~ .idesign-float-btn,
.header-area.homepage12.header-sticky.sticky ~ .idesign-float-btn {
    top: 160px;
}

@media (max-width: 991px) {
    .idesign-float-btn {
        top: 135px;
        right: 15px;
        left: auto;
        min-width: 120px;
        height: 45px;
        font-size: 13px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .idesign-float-btn {
        top: 122px;
        right: 15px;
        left: auto;
        min-width: 110px;
        height: 42px;
        font-size: 11px;
        padding: 0 12px;
    }
    
    .idesign-float-btn::before {
        content: "Interior";
    }
}

.idesign-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 176, 107, 0.6);
    background: linear-gradient(135deg, #B8945F 0%, #D1B06B 100%);
}

.idesign-float-btn::before {
    content: "Interior Calculator";
}

/* Interior Design Modal */
.idesign-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.idesign-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.idesign-modal-container {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.idesign-modal-header {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idesign-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.idesign-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.idesign-modal-close:hover {
    transform: rotate(90deg);
}

.idesign-modal-body {
    padding: 30px;
}

.idesign-step-header {
    margin-bottom: 25px;
}

.idesign-step-header h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.idesign-step-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.idesign-form-group {
    margin-bottom: 20px;
}

.idesign-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.idesign-form-group label::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D1B06B 0%, #B8945F 100%);
    margin-top: 4px;
    border-radius: 2px;
}

.idesign-form-group input[type="text"],
.idesign-form-group input[type="email"],
.idesign-form-group input[type="tel"],
.idesign-form-group input[type="number"],
.idesign-form-group select,
.idesign-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.idesign-form-group input[type="text"]:hover,
.idesign-form-group input[type="email"]:hover,
.idesign-form-group input[type="tel"]:hover,
.idesign-form-group select:hover {
    border-color: #D1B06B;
    background: #fff;
    box-shadow: 0 4px 8px rgba(209, 176, 107, 0.15);
    transform: translateY(-1px);
}

.idesign-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23D1B06B' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
    font-weight: 500;
}

.idesign-form-group input[type="text"]:focus,
.idesign-form-group input[type="email"]:focus,
.idesign-form-group input[type="tel"]:focus,
.idesign-form-group input[type="number"]:focus,
.idesign-form-group select:focus,
.idesign-form-group textarea:focus {
    outline: none;
    border-color: #D1B06B;
    box-shadow: 0 0 0 4px rgba(209, 176, 107, 0.15), 0 4px 12px rgba(209, 176, 107, 0.2);
    background: #fff;
    transform: translateY(-1px);
}

.idesign-form-group input[type="text"]:hover,
.idesign-form-group input[type="email"]:hover,
.idesign-form-group input[type="tel"]:hover,
.idesign-form-group input[type="number"]:hover,
.idesign-form-group select:hover,
.idesign-form-group textarea:hover {
    border-color: #D1B06B;
}

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

.idesign-form-group input[type="number"] {
    -moz-appearance: textfield;
}

.idesign-form-group input[type="number"]::-webkit-outer-spin-button,
.idesign-form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.idesign-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.idesign-error.show {
    display: block;
}

.idesign-contact-next-btn,
.idesign-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.idesign-contact-next-btn:hover,
.idesign-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 176, 107, 0.4);
    background: linear-gradient(135deg, #B8945F 0%, #D1B06B 100%);
}

.idesign-contact-next-btn:disabled,
.idesign-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.idesign-material-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.idesign-material-specs-table thead {
    background: #f8f9fa;
}

.idesign-material-specs-table th,
.idesign-material-specs-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.idesign-material-specs-table th {
    background: #D1B06B;
    color: #fff;
    font-weight: 600;
}

.idesign-material-specs-table tbody tr:hover {
    background: #fafafa;
}

/* Plan-specific materials table (shown below plan select) */
.idesign-plan-materials-container {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.idesign-plan-materials-container.active {
    display: block;
}

.idesign-plan-materials-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #D1B06B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.idesign-plan-materials-title::before {
    content: '📋';
    font-size: 18px;
}

.idesign-plan-materials-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.idesign-plan-materials-table thead {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
}

.idesign-plan-materials-table th {
    padding: 14px 16px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idesign-plan-materials-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.idesign-plan-materials-table tbody tr:last-child td {
    border-bottom: none;
}

.idesign-plan-materials-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.idesign-plan-materials-table tbody tr:hover {
    background: #fff8e1;
    transition: background 0.2s ease;
}

.idesign-plan-materials-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 35%;
}

.idesign-plan-materials-table td:last-child {
    color: #666;
}

.idesign-cost-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0 20px 0;
    border: 2px solid #D1B06B;
    box-shadow: 0 4px 15px rgba(209, 176, 107, 0.2);
    animation: slideDownFade 0.5s ease-out;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.idesign-cost-summary h4 {
    margin: 0 0 18px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.idesign-cost-summary h4::before {
    content: '💰';
    font-size: 24px;
}

.idesign-cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.idesign-cost-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.idesign-cost-item.total {
    font-weight: 700;
    font-size: 18px;
    color: #D1B06B;
    border-top: 2px solid #D1B06B;
    padding-top: 10px;
    margin-top: 10px;
}

.idesign-cost-label {
    color: #666;
}

.idesign-cost-value {
    color: #333;
    font-weight: 600;
}

/* Interior Design Summary Modal */
.idesign-summary-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

.idesign-summary-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.idesign-summary-modal-container {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.idesign-summary-modal-header {
    background: linear-gradient(135deg, #D1B06B 0%, #B8945F 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idesign-summary-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.idesign-summary-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.idesign-summary-modal-close:hover {
    transform: rotate(90deg);
}

.idesign-summary-modal-body {
    padding: 30px;
}

.idesign-summary-success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.idesign-summary-section {
    margin-bottom: 25px;
}

.idesign-summary-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D1B06B;
}

.idesign-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 0;
}

.idesign-summary-label {
    color: #666;
    font-weight: 500;
}

.idesign-summary-value {
    color: #333;
    font-weight: 600;
}

.idesign-summary-cost-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.idesign-summary-cost-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.idesign-summary-cost-item.total {
    font-weight: 700;
    font-size: 18px;
    color: #D1B06B;
    border-top: 2px solid #D1B06B;
    padding-top: 10px;
    margin-top: 10px;
    border-bottom: none;
}

.idesign-summary-cost-label {
    color: #666;
    font-weight: 500;
}

.idesign-summary-cost-value {
    color: #333;
    font-weight: 600;
}

.idesign-summary-cost-value.total {
    color: #D1B06B;
    font-size: 20px;
}

.idesign-summary-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #D1B06B;
    color: #666;
}

.idesign-summary-footer p {
    margin: 0;
    font-weight: 600;
}

/* Responsive adjustments for interior design calculator */
@media (max-width: 768px) {
    .idesign-modal-container {
        max-height: 95vh;
    }

    .idesign-modal-body {
        padding: 20px;
    }

    .idesign-form-group {
        margin-bottom: 15px;
    }

    .idesign-form-group label {
        font-size: 14px;
    }

    .idesign-form-group input[type="text"],
    .idesign-form-group input[type="email"],
    .idesign-form-group input[type="tel"],
    .idesign-form-group select {
        padding: 12px 15px;
        font-size: 14px;
    }

    .idesign-plan-materials-container {
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .idesign-plan-materials-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .idesign-plan-materials-table {
        font-size: 12px;
    }

    .idesign-plan-materials-table th,
    .idesign-plan-materials-table td {
        padding: 10px 12px;
    }

    .idesign-plan-materials-table td:first-child {
        width: 40%;
        font-size: 12px;
    }

    .idesign-material-specs-table {
        font-size: 12px;
    }

    .idesign-material-specs-table th,
    .idesign-material-specs-table td {
        padding: 8px;
    }

    .idesign-summary-modal-body {
        padding: 20px;
    }

    .idesign-summary-section-title {
        font-size: 14px;
    }

    .idesign-summary-item {
        font-size: 13px;
        padding: 8px 0;
    }

    .idesign-summary-cost-item.total {
        font-size: 16px;
    }

    .idesign-summary-cost-value.total {
        font-size: 18px;
    }
}

