/*
 * Quote Request Modal Styles
 * Migrated from old site - Free Worktop Quote & Free Sample
 */

/* ============================================================================
   MODAL STYLES
   ============================================================================ */

.quote-modal {
    display: none;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    align-items: center !important;
    justify-content: center !important;
}

.quote-modal[style*="display: flex"],
.quote-modal[style*="display: block"] {
    display: flex !important;
}   margin: auto !important;
    padding: 0 !important;
    border-radius: 10px !important;
    width: 90% !important;
    max-width: 1200px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Sticky Modal Header */
.quote-modal-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: white !important;
    padding: 16px 20px 12px 20px !important;
    border-bottom: 2px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.quote-contact-compact {
    padding-left: 16px !important;
    border-left: 2px solid #e5e7eb !important;
}

/* Scrollable content area */
.quote-wrap {
    overflow-y: auto !important;
    flex: 1 !important;
    padding: 20px !important;
}

.quote-modal-close {
    color: #6b7280 !important;
    background: #f3f4f6 !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
    margin-left: 1rem !important;
}

.quote-modal-close:hover,
.quote-modal-close:focus {
    background: #ef4444 !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* ============================================================================
   GENERAL QUOTE STYLES
   ============================================================================ */

/* Input Styling with Tailwind-like classes */
.quote-input,
.quote-contact-input,
.quote-textarea-check {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: all 0.2s !important;
    background-color: #ffffff !important;
}

.quote-input:focus,
.quote-contact-input:focus,
.quote-textarea-check:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    ring: 2px !important;
    ring-color: rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.quote-input:hover,
.quote-contact-input:hover,
.quote-textarea-check:hover {
    border-color: #9ca3af !important;
}

.quote-error-field {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.quote-error-field:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.quote-contact-input[type="number"]::-webkit-inner-spin-button,
.quote-contact-input[type="number"]::-webkit-outer-spin-button,
.quote-input[type="number"]::-webkit-inner-spin-button,
.quote-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.quote-contact-input[type="number"],
.quote-input[type="number"] {
    -moz-appearance: textfield !important;
}

select.quote-contact-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.main-btn-green {
    text-align: center;
    position: relative;
    min-width: 150px;
    transition: 0.3s;
    background-color: #f1f1f1f1;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-weight: 700;
    font-size: 18px;    
    background: linear-gradient(16deg, rgb(1 24 66) 0%, rgb(26 81 183) 70%) !important;
    color: white;
    border: none;
}

.main-btn-green:hover {
    cursor: pointer;
    opacity: 0.9;
}

.js-quote-more {
    grid-column: 1/-1;
    margin: auto;
}

/* label > span {
    color: red;
} */

.hidden-product {
    display: none;
}

input[type="number"] {
    text-align: left !important;
    padding: 10px !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ============================================================================
   UPLOAD AREA STYLES
   ============================================================================ */

#uploadProgress {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-direction: column;
    width: 150px;
}

.upload-image {
    padding: 10px;
    width: 100%;
    max-height: 150px;
    overflow: hidden;
    background: #ededed;
    margin: 0;
}

.upload-image > img {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
}

.upload-item .progress-bar {
    width: 100%;
    background: #eee;
    border-radius: 5px;
    height: 5px;
    position: relative;
}

.upload-item .progress-bar .progress {
    background: #76c7c0;
    width: 0;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.upload-item .cancel-upload {
    cursor: pointer;
    color: #747474;
    font-weight: 500;
    background: #ededed;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.upload-area {
    width: 100%;
    height: 200px;
    border: 2px dashed #999;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-bottom: 20px;
    margin-top: 5px;
    position: relative;
}

.upload-error-msg {
    color: red;
    margin: 0;
    display: none;
}

.upload-area-error {
    border-color: red;
}

.upload-area-error > .upload-error-msg {
    display: block;
}

.upload-area:hover {
    border-color: #666;
}

.upload-icon img {
    width: 50px;
    margin-bottom: 15px;
}

#fileInput {
    display: none;
}

#fileSelect {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

/* ============================================================================
   QUOTE FORM STRUCTURE
   ============================================================================ */

.quote-contact-back {
    padding: 5px 10px;
    border: 2px solid #d8d8d8;
    color: #7c7c7c;
    display: inline-block;
    border-radius: 50px;
    cursor: pointer;
}

.quote-title {
    width: 100%;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 35px;
    font-weight: 900;
}

.quote-thankyou {
    display: none;
    padding: 30px;
    text-align: center;
}

.quote-thankyou-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 15px;
}

.quote-details {
    display: none;
    margin-top: 15px;
}

.quote-left {
    position: relative;
    width: 320px;
    padding-right: 30px;
}

.quote-right {
    flex: 1;
    padding-left: 15px;
}

.quote-input {
    border-radius: 8px !important;
    border: 0 !important;
    display: inline-block;
    width: 100% !important;
    margin-top: 5px;
    background-color: white !important;
}

.quote-contact-input {
    border-radius: 8px !important;
    border: 1px solid #6d6d6d !important;
    display: inline-block;
    width: 100% !important;
    margin-top: 5px;
    padding: 5px 10px !important;
}

.quote-box-active {
    background: linear-gradient(16deg, rgb(1 24 66) 0%, rgb(26 81 183) 70%) !important;
}

.quote-box-active > p {
    color: white !important;
}

.quote-above {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.quote-contact {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%) !important;
    border-radius: 8px !important;
    border: 1px solid #bfdbfe !important;
}

.quote-contact-text {
    margin: 0 !important;
    font-size: 14px !important;
    color: #1e40af !important;
    font-weight: 500 !important;
}

.quote-contact-phone {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.quote-contact-phone a {
    color: #1a51b7;
    text-decoration: none;
}

.quote-contact-phone a:hover {
    text-decoration: underline;
}

.quote-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 20px 30px !important;
    max-width: 1200px !important;
    margin: auto !important;
    overflow-y: auto !important;
    flex: 1 !important;
}

@media (max-width: 768px) {
    .quote-wrap {
        padding: 20px !important;
    }
}

@media (max-width: 500px) {
    .quote-wrap {
        padding: 20px 15px;
    }
}

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */

.quote-progress-wrap {
    border-bottom: none !important;
    margin-top: 15px !important;
}

.quote-progress {
    width: 100% !important;
    height: 8px !important;
    background-color: #e5e7eb !important;
    border-radius: 999px !important;
    position: relative !important;
    overflow: hidden !important;
}

.quote-progress::before {
    content: '' !important;
    width: 6px !important;
    height: 100% !important;
    position: absolute !important;
    left: 0 !important;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%) !important;
    transition: width 0.3s ease !important;
    border-radius: 999px !important;
}

.progress-1::before { width: 15%; }
.progress-2::before { width: 30%; }
.progress-3::before { width: 45%; }
.progress-4::before { width: 60%; }
.progress-5::before { width: 70%; }
.progress-6::before { width: 95%; }
.progress-7::before { width: 100%; }

/* ============================================================================
   QUOTE STEPS
   ============================================================================ */

.quote-each {
    width: 100% !important;
    display: none;
    padding: 20px 0 !important;
    position: relative !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Show Step 1 (Material Selection) by default */
.quote-each[data-type="material"] {
    display: block !important;
    padding-top: 0 !important;
}

.quote-each:last-child {
    border-bottom: none !important;
}

.quote-each:nth-child(1),
.quote-each:first-child,
.quote-each:first-of-type {
    border: none;
}

.quote-box-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    width: 100%;
}

.quote-box-wrap > .quote-box {
    flex: 0 0 calc(25% - 12px);
    min-width: 150px;
    max-width: calc(25% - 12px);
}

@media (max-width: 1024px) {
    .quote-box-wrap > .quote-box {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .quote-box-wrap > .quote-box {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 500px) {
    .quote-box-wrap > .quote-box {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 120px;
    }
}

.quote-product-each {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
}

.quote-active {
    display: block;
}

.quote-titles {
    width: 100% !important;
    margin-bottom: 16px !important;
}

.quote-titles h3 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.quote-titles p {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

.quote-placeholder {
    display: none !important;
    margin: 0 0 16px 0 !important;
    width: 100% !important;
}

.quote-plans-each textarea {
    border: none;
    border-radius: 15px;
    margin-top: 15px;
    background: white !important;
}

/* ============================================================================
   QUOTE BOXES
   ============================================================================ */

.quote-box {
    padding: 15px;
    text-align: center;
    position: relative;
    min-width: 150px;
    transition: 0.3s;
}

.quote-box-btn {
    text-align: center;
    position: relative;
    min-width: 150px;
    transition: 0.3s;
    background-color: #f1f1f1f1;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-weight: 700;
    font-size: 18px;
}

.quote-box-btn > p {
    margin: 0;
}

.quote-box-btn:hover {
    cursor: pointer;
    background: linear-gradient(16deg, rgb(1 24 66) 0%, rgb(26 81 183) 70%) !important;
}

.quote-box-btn:hover > p {
    color: white;
}

.quote-box > img {
    background-color: whitesmoke;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
    transition: 0.3s;
    border: 5px solid white;
}

/* Ensure .quote-img class also has fixed dimensions */
.quote-img {
    background-color: whitesmoke;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
    transition: 0.3s;
    border: 5px solid white;
}

.quote-box > p {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

/* Load More button */
.js-quote-more {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 10px;
}

.quote-box-img {
    padding: 0;
}

.quote-box-img > .quote-img-title {
    padding: 5px;
    margin: 0;
    width: 100%;
    line-height: 21px;
    font-size: 16px;
    margin-bottom: 15px;
}

.quote-box:hover,
.quote-box:hover .quote-img-title {
    color: var(--e-global-color-accent);
}

.quote-box:hover .quote-img {
    transform: scale(1.03);
}

.quote-product-active > img {
    border-color: #195edf !important;
}

.quote-box-active > .quote-img-title {
    background: linear-gradient(16deg, rgb(1 24 66) 0%, rgb(26 81 183) 70%) !important;
    color: white !important;
}

/* Selected state for thickness, sample, and plans buttons */
.quote-box.quote-box-active,
.quote-box.js-quote-box.quote-box-active {
    background: linear-gradient(135deg, #1a51b7 0%, #0c2d5e 100%) !important;
    border-color: #1a51b7 !important;
    color: white !important;
}

.quote-box.quote-box-active h3,
.quote-box.quote-box-active p {
    color: white !important;
}

.quote-box.quote-box-active .bg-blue-100,
.quote-box.quote-box-active .bg-green-100,
.quote-box.quote-box-active .bg-purple-100,
.quote-box.quote-box-active .bg-gray-100 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.quote-box.quote-box-active svg {
    color: white !important;
}

.quote-box:hover {
    cursor: pointer;
}

/* ============================================================================
   KITCHEN PLANS & MEASUREMENTS
   ============================================================================ */

.quote-plans-wrap {
    margin: 0 !important;
    width: 100% !important;
}

.quote-plans-each {
    width: 100% !important;
    margin-bottom: 24px !important;
}

/* Make measurement input rows single-column and inputs full-width
   Override utility/grid classes used in markup so each input stacks
   and stretches to 100% width for clarity. */
.quote-plans-each .grid,
.length-each .grid,
.quote-plans-each .grid.grid-cols-1,
.quote-plans-each .grid.grid-cols-1.md\:grid-cols-2,
.length-each .grid.grid-cols-1 {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
}

.quote-plans-each .grid > div,
.length-each .grid > div {
    width: 100% !important;
    display: block !important;
}

.quote-plans-each .quote-input,
.length-each .quote-input,
.quote-plans-each input.quote-input,
.length-each input.quote-input {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Utility class for icon offset */
.ml-13 {
    margin-left: 3.25rem;
}

/* Product pills in Step 2 */
.js-selected-products-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-reset {
    margin-top: 15px !important;
}

.quote-edit {
    transition: 0.3s;
}

.quote-edit:hover {
    transition: 0.3s;
    background-color: #f9f9f9;
    cursor: pointer;
}

.quote-stage {
    text-transform: capitalize;
    margin: 5px;
    margin-left: 0;
}

.quote-plans {
    display: none;
}

.quote-btn-details {
    display: none;
}

.quote-info {
    font-size: 14px;
}

.quote-kitchen-img {
    position: absolute;
    right: 0;
    top: 50%;
    max-width: 315px;
    transform: translateY(-50%);
}

.quote-plans-each {
    position: relative;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: inline-block;
    box-shadow: 1px 2px 2px 2px #0000002b;
    background-color: whitesmoke;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.quote-plans-each > h3 {
    margin-bottom: 7px;
}

.quote-plans-each > p {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
}

.quote-plans-title {
    margin-bottom: 30px;
}

.quote-add-wrap {
    display: flex;
    max-width: 300px;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.quote-field-wrap {
    display: flex;
    margin-top: 30px;
    flex-direction: column;
}

.quote-field-wrap > p {
    margin: 0;
    width: 120px;
    color: #111827;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.quote-item-nr {
    font-weight: 500;
}

.quote-bool-wrap {
    margin-top: 30px;
}

.quote-plans-each > h3,
.quote-plans-each > p,
.quote-plans-each > div {
    max-width: 400px;
}

/* Help Text Styling */
.quote-help-text {
    background-color: #f0f7ff !important;
    border-left: 4px solid #3b82f6 !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    max-width: 500px !important;
}

.quote-help-icon {
    flex-shrink: 0 !important;
    color: #3b82f6 !important;
    margin-top: 2px !important;
}

.quote-help-text p {
    margin: 0 !important;
    color: #1e40af !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
}

/* Dimension Container */
.quote-dimension-container {
    margin: 20px 0 !important;
}

.length-each {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 15px !important;
    padding: 20px !important;
    background: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    max-width: 600px !important;
}

.quote-dimension-field {
    flex: 1 !important;
    min-width: 0 !important;
}

.quote-dimension-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 14px !important;
}

.quote-label-text {
    color: #111827 !important;
    margin-right: 4px !important;
}

.quote-label-unit {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.quote-dimension-field input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: all 0.2s !important;
    background: white !important;
}

.quote-dimension-field input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.quote-dimension-field input::placeholder {
    color: #9ca3af !important;
    font-size: 14px !important;
}

.quote-dimension-separator {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    padding: 0 8px !important;
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
}

.length-each > div:not(.quote-dimension-field):not(.quote-dimension-separator) {
    max-width: none !important;
}

.quote-field-wrap:nth-child(1) {
    margin-left: 30px;
}

/* ============================================================================
   BUTTONS & CONTROLS
   ============================================================================ */

.item-btn,
.quote-bool-btn {
    background-color: gainsboro;
    border-radius: 7px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: #626262;
    font-weight: 500;
    position: relative;
    margin: 0;
    transition: 0.3s;
    min-width: 120px;
    line-height: 24px;
    cursor: pointer;
    border: 2px solid transparent;
}

.item-btn:hover {
    background-color: #d1d5db;
    border-color: #9ca3af;
    color: #374151;
}

.item-btn svg {
    flex-shrink: 0;
}

.quote-add-wrap {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.quote-bool-btn {
    padding: 15px;
    text-align: center;
}

.item-remove::before {
    position: absolute;
    content: "";
    width: 11px;
    height: 2px;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #626262;
}

/* decorative pseudo removed */

.item-add:hover,
.quote-bool-yes:hover,
.quote-bool-yes.quote-bool-active {
    cursor: pointer;
    background-color: #6dd699;
    color: #1b7939;
}

.item-add:hover::before,
.item-add:hover::after {
    background-color: #1b7939;
}

.item-remove:hover,
.quote-bool-no:hover,
.quote-bool-no.quote-bool-active {
    cursor: pointer;
    background: #e96262;
    color: #7c1f1f;
}

.item-remove:hover::before,
.item-remove:hover::after {
    background-color: #7c1f1f;
}

.item-remove {
    display: none;
}

/* ============================================================================
   ERROR STATES
   ============================================================================ */

.quote-error-field {
    border: 2px solid red !important;
}

.quote-error {
    animation: shake 1.2s;
    animation-iteration-count: 2;
    position: relative;
    color: red;
}

.quote-contact-error {
    animation: shake 1s;
    animation-iteration-count: 2;
    position: relative;
    border-color: red !important;
}

.quote-error::before {
    content: 'Please complete this step.';
    position: absolute;
    top: -12px;
    left: 0;
    color: red;
    font-size: 11px;
    margin: 0;
    padding: 0;
    line-height: 14px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ============================================================================
   CONTACT FORM
   ============================================================================ */

.quote-contact {
    display: flex;
    flex-wrap: wrap;
}

.quote-contact > div {
    flex: 1 1 calc(50% - 30px);
    box-sizing: border-box;
}

.quote-last-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================================================
   LOADER
   ============================================================================ */

.dots-loader {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100% / 3) 100%;
    animation: l7 1s infinite linear;
}

.highlight-big {
    color: #1a51b7;
}

@keyframes l7 {
    33% { background-size: calc(100% / 3) 0%, calc(100% / 3) 100%, calc(100% / 3) 100%; }
    50% { background-size: calc(100% / 3) 100%, calc(100% / 3) 0%, calc(100% / 3) 100%; }
    66% { background-size: calc(100% / 3) 100%, calc(100% / 3) 100%, calc(100% / 3) 0%; }
}

/* ============================================================================
   THANK YOU PAGE
   ============================================================================ */

.thankyou-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3) !important;
}

.thankyou-icon svg {
    width: 48px !important;
    height: 48px !important;
    color: white !important;
    stroke-width: 3 !important;
}

.thankyou-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: none;
}

.thankyou-confirmation-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.thankyou-header {
    background: linear-gradient(16deg, rgb(1 24 66) 0%, rgb(26 81 183) 70%);
    color: white;
    padding: 2rem;
}

.thankyou-headline {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.thankyou-subheadline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 0 !important;
}

.thankyou-content-area {
    padding: 3rem 2rem;
}

.thankyou-features-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.thankyou-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.thankyou-feature-item svg {
    width: 48px;
    height: 48px;
    color: #1a51b7;
}

.thankyou-feature-text {
    font-size: 0.9rem;
    color: #555;
}

.thankyou-notification-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    border-left: 4px solid #1a51b7;
}

.thankyou-highlighted-text {
    font-weight: 600;
    color: #1a51b7;
}

.thankyou-page-footer {
    background-color: #f1f1f1;
    padding: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.thankyou-btn {
    display: inline-block;
    color: white !important;
    text-decoration: none !important;
}

.thankyou-btn:hover {
    color: white;
}

.thankyou-page-footer > p {
    margin: 0 !important;
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 768px) {
    .thankyou-page-container {
        padding: 0;
    }
    
    .thankyou-headline {
        font-size: 2rem;
    }
    
    .thankyou-features-container {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .quote-modal-content {
        margin: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Make the quote modal truly full-screen on mobile, but narrower on desktop */
.quote-modal .quote-modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
}

/* Desktop: Make modal narrower and centered */
@media (min-width: 768px) {
    .quote-modal .quote-modal-content {
        width: 90vw !important;
        height: auto !important;
        max-width: 1280px !important; /* max-w-5xl */
        max-height: 90vh !important;
        margin: 5vh auto !important;
        border-radius: 0.75rem !important; /* rounded-xl */
    }
    
    .quote-modal .quote-wrap {
        max-height: calc(90vh - 80px) !important;
        height: auto !important;
    }
}

/* Ensure the inner scrollable area fills remaining space */
.quote-modal .quote-wrap {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}

/* Mobile: Full height minus header */
@media (max-width: 767px) {
    .quote-modal .quote-wrap {
        height: calc(100vh - 80px) !important;
    }
}

@media (max-width: 970px) {
    .quote-left > div {
        position: initial;
        width: 100%;
    }
    
    .quote-left {
        width: 100%;
        text-align: center;
        padding-right: 0;
    }
    
    .quote-wrap {
        flex-direction: column;
    }
    
    .quote-right {
        border-left: none;
        padding-left: 0;
    }
    
    .quote-edit:hover {
        background-color: initial !important;
    }
}

@media (max-width: 740px) {
    .quote-each {
        padding: 15px 0;
    }
    
    .quote-kitchen-img {
        position: initial;
        transform: none;
        border-radius: 10px;
        box-shadow: 2px 1px 3px 0px #0000002b;
        margin-bottom: 15px;
    }
    
    .length-each {
        max-width: 100%;
    }
    
    .quote-bool-wrap {
        display: flex;
        gap: 15px;
    }
    
    .quote-plans-each > div {
        max-width: 100%;
    }
    
    .quote-kitchen-img,
    .quote-plans-each > p {
        max-width: 100%;
    }
    
    .quote-add-wrap {
        justify-content: flex-end;
    }
    
    .quote-btn-details {
        margin: auto;
    }
}

@media (max-width: 500px) {
    .quote-box {
        min-width: initial;
    }
    
    .quote-contact {
        flex-direction: column;
    }
    
    .quote-contact > div {
        flex: 1;
    }
}

@media (max-width: 390px) {
    .quote-bool-btn {
        min-width: 45%;
    }
    
    .quote-bool-wrap {
        justify-content: center;
    }
    
    .upload-item {
        width: calc(50% - 10px);
        flex: auto;
    }
}

/* ============================================================================
   BOOLEAN BUTTONS (YES/NO) - Active State
   ============================================================================ */

.quote-bool-btn.quote-bool-active {
    background-color: #06b6d4 !important;
    border-color: #0891b2 !important;
    color: white !important;
    font-weight: 700 !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
}

.quote-bool-btn.quote-bool-active:hover {
    background-color: #0891b2 !important;
}

/* ============================================================================
   MAPBOX ADDRESS AUTOCOMPLETE DROPDOWN
   ============================================================================ */

.mapbox-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: -2px;
}

.mapbox-suggestions.active {
    display: block;
}

.mapbox-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mapbox-suggestion-item:last-child {
    border-bottom: none;
}

.mapbox-suggestion-item:hover {
    background-color: #eff6ff;
    color: #1e40af;
}

.mapbox-suggestion-item .suggestion-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.mapbox-suggestion-item:hover .suggestion-text {
    color: #1e40af;
    font-weight: 500;
}

/* Adjust input border radius when suggestions are active */
#full-address:focus ~ .mapbox-suggestions.active,
.mapbox-suggestions.active {
    border-color: #3b82f6;
}

#full-address:focus {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

#full-address:not(:focus) {
    border-radius: 0.5rem !important;
}

/* ============================================================================
   QUOTE STEP EDIT/COLLAPSE STYLES
   ============================================================================ */

/* When step is in edit mode (completed), collapse it */
.quote-each.quote-edit .quote-box-wrap {
    display: none !important;
}

/* Show the selected value when in edit mode */
.quote-each.quote-edit .quote-placeholder {
    display: block !important;
    color: #1a51b7 !important;
    font-weight: 600;
    font-size: 16px;
    margin-top: 8px;
}

/* Add edit button for collapsed steps */
.quote-each.quote-edit {
    position: relative;
    opacity: 0.9;
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px 15px !important;
    margin-bottom: 8px;
}

// ...existing code...
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.quote-each.quote-edit:hover {
    opacity: 1;
    cursor: pointer;
    background: #f3f4f6;
}

/* ============================================================================
   CONTACT DETAILS FORM - Keep Tailwind-style borders and focus states
   ============================================================================ */
.quote-details .quote-titles h3 {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
}

.quote-details .quote-form {
    max-width: 720px;
    margin: 0 auto;
}

.quote-details .quote-form-field {
    margin-bottom: 12px !important;
}

.quote-details label {
    display: block;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Prefer explicit visible borders to allow Tailwind utility classes in markup to show. */
.quote-details .quote-input,
.quote-details textarea,
.quote-details select {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
    border-radius: 0.5rem !important;
    border: 2px solid #d1d5db !important;
    background: #ffffff !important;
    transition: box-shadow 120ms ease, transform 80ms ease !important;
    outline: none !important;
}

.quote-details .quote-input::placeholder,
.quote-details textarea::placeholder {
    color: #9ca3af !important;
}

.quote-details .quote-input:focus,
.quote-details textarea:focus,
.quote-details select:focus {
    box-shadow: 0 0 0 6px rgba(59,130,246,0.08) !important;
    border-color: #3b82f6 !important;
    background: #ffffff !important;
}

.quote-details .quote-form-row {
    gap: 12px !important;
}

/* Make submit button slightly smaller and less heavy */
.quote-details .quote-submit {
    padding: 10px 14px !important;
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    box-shadow: 0 6px 18px rgba(16,24,40,0.08) !important;
}

@media (max-width: 768px) {
    .quote-details .quote-form { padding: 0 12px; }
    .quote-details .quote-titles h3 { font-size: 1.125rem !important; }
}

