/* SG_QUOTATION_MODAL_UX_V3: scoped monochrome quote form. */
#quotationModal{--q-ink:#171717;--q-muted:#626262;--q-line:#d6d6d6;--q-accent:#171717;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
#quotationModal .modal-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:540px;min-height:100%;margin:0 auto!important;padding:16px 0;display:flex;align-items:center;justify-content:center}
#quotationModal .modal-content.quotation{box-sizing:border-box;width:100%;min-width:0;padding:0;border:1px solid #e5e5e5;border-radius:12px;background:#fff;color:var(--q-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;box-shadow:0 12px 40px rgba(0,0,0,.18);text-align:start;pointer-events:auto}
#quotationModal .modal-header{display:flex;position:relative;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 0;border:0}
#quotationModal #quotationModalLabel{font-family:inherit;font-size:23px;font-weight:500;line-height:1.25;letter-spacing:-.35px;color:var(--q-ink);text-align:start!important;margin:0;padding:0;overflow-wrap:anywhere;min-width:0}
#quotationModal #customCloseBtn{position:static;flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;min-width:40px;margin:0;padding:0;border:0;border-radius:50%;background:#f5f5f5;color:#333333;box-shadow:none}
#quotationModal #customCloseBtn:hover{background:#e6e6e6;color:#171717}
#quotationModal #customCloseBtn:focus-visible,#quotationModal button[type="submit"]:focus-visible,#quotationModal summary:focus-visible,#quotationModal a:focus-visible{outline:2px solid var(--q-accent);outline-offset:2px}
#quotationModal .modal-body{padding:4px 24px 20px;min-width:0}
#quotationModal form{margin:0;display:block}
#quotationModal .sgq-intro{font-size:13px;color:var(--q-muted);line-height:1.45;margin:0 0 15px}
#quotationModal .sgq-stone{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 10px;padding:13px 14px;background:#f5f5f5;border:0;border-radius:8px;margin:0 0 16px;min-width:0}
#quotationModal .sgq-stone-heading{grid-column:1/-1;font-size:12px;font-weight:400;letter-spacing:0;color:#616161;margin:0;line-height:1.35}
#quotationModal .sgq-stone>.mb-2{display:contents!important}
#quotationModal .sgq-stone .w-50{width:auto!important;min-width:0}
#quotationModal .sgq-stone .w-50:has(input[name="product_name"]){grid-column:1/-1}
#quotationModal .sgq-stone label:has(+input[name="product_name"]){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#quotationModal input[name="product_name"][readonly]{font-size:17px;font-weight:500;line-height:1.35;padding:0;border:0;background:transparent;min-height:28px;color:var(--q-ink);text-overflow:ellipsis}
#quotationModal .sgq-stone .form-label{font-size:11px;color:var(--q-muted);font-weight:500;margin-bottom:3px}
#quotationModal .sgq-stone select.form-select{font-size:13px;min-height:36px;padding-block:6px;padding-inline-start:7px;background-color:transparent;border-color:#d5d5d5;border-radius:6px}
#quotationModal .sgq-stone select.form-select:has(option:checked:not([value=""])){background-color:transparent;border-color:#d5d5d5}
#quotationModal .sgq-stone select.form-select:has(option:checked[value=""]){background-color:#fff;border-color:#777777}
#quotationModal .sgq-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;min-width:0;margin-bottom:10px}
#quotationModal .sgq-contact>.mb-2{margin:0!important;min-width:0}
#quotationModal .sgq-contact>.d-flex{grid-column:1/-1;gap:12px!important}
#quotationModal .sgq-contact>.d-flex>.w-50{flex:1 1 0;width:auto!important;min-width:0}
#quotationModal .form-label{display:block;font-size:12px;font-weight:400;line-height:1.35;margin:0 0 5px;color:var(--q-ink);overflow-wrap:anywhere}
#quotationModal .form-control,#quotationModal .form-select{box-sizing:border-box;min-width:0;width:100%;max-width:100%;min-height:42px;height:auto;margin:0;padding-block:9px;font-family:inherit;font-weight:400;font-size:14px;line-height:1.35;border:1px solid var(--q-line);border-radius:6px;background-color:#fff;color:var(--q-ink);box-shadow:none}
#quotationModal .form-control:not([name="phone"]):not([name="country_code"]):not([name="product_name"]){padding-inline:11px}
#quotationModal .form-control::placeholder{color:#737373;opacity:1}
#quotationModal .form-control:focus,#quotationModal .form-select:focus{border-color:var(--q-accent);box-shadow:0 0 0 2px rgba(0,0,0,.12);outline:none}
#quotationModal .iti{width:100%;min-width:0}
#quotationModal .sgq-quantity{margin:0 0 10px;min-width:0}
#quotationModal .sgq-quantity>.w-50,#quotationModal .sgq-optional .w-50{width:100%!important;min-width:0}
#quotationModal .sgq-optional{margin:0 0 13px;border-bottom:1px solid #e6e6e6;padding:0 0 9px}
#quotationModal .sgq-optional summary{display:list-item;list-style-position:inside;font-size:13px;font-weight:500;line-height:1.5;color:#171717;cursor:pointer;padding:5px 0;min-height:32px}
#quotationModal .sgq-optional[open] summary{margin-bottom:9px}
#quotationModal .sgq-optional .mb-2{margin:10px 0 0!important}
#quotationModal textarea[name="notes"]{min-height:58px;height:58px;resize:vertical}
#quotationModal .text-danger{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#quotationModal button[type="submit"]{display:block;width:100%;min-height:46px;padding:11px 16px;margin:0;border:1px solid var(--q-accent);border-radius:6px;background:var(--q-accent);color:#fff;font-family:inherit;font-size:14px;font-weight:500;line-height:1.35;white-space:normal;box-shadow:none;text-transform:none;letter-spacing:.015em}
#quotationModal button[type="submit"]:hover:not(:disabled){background:#333333;border-color:#333333}
#quotationModal button[type="submit"]:disabled{opacity:.65;cursor:wait}
#quotationModal .sgq-privacy{margin:9px 2px 0;font-size:11px;line-height:1.5;color:var(--q-muted);text-align:center;overflow-wrap:anywhere}
#quotationModal .sgq-privacy a{color:#171717;text-decoration:underline;text-underline-offset:2px}
@media(max-width:649px){#quotationModal .modal-dialog{width:calc(100% - 20px);padding:10px 0;align-items:flex-start}#quotationModal .modal-header{padding:15px 15px 0}#quotationModal .modal-body{padding:4px 15px 16px}#quotationModal #quotationModalLabel{font-size:22px}#quotationModal #customCloseBtn{width:44px;min-width:44px;height:44px}#quotationModal .sgq-contact{gap:9px 10px}#quotationModal .sgq-contact>.mb-2{grid-column:1/-1}#quotationModal .form-control,#quotationModal .form-select{font-size:16px;min-height:44px}#quotationModal .sgq-stone select.form-select{font-size:16px;min-height:44px}#quotationModal .sgq-stone{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;padding:10px 12px;margin-bottom:12px}#quotationModal .sgq-stone .w-50:has(select[name="product_size"]){grid-column:1/-1}#quotationModal .sgq-optional summary{min-height:40px}#quotationModal .sgq-privacy{font-size:12px}}
@media(max-width:359px){#quotationModal .sgq-contact>.d-flex{flex-wrap:wrap}#quotationModal .sgq-contact>.d-flex>.w-50{flex:1 1 100%}#quotationModal .sgq-stone{gap:7px}#quotationModal .modal-body{padding-inline:12px}}
/* Fallback for older browsers without :has(); no fields disappear. */
@supports not selector(:has(*)){#quotationModal .sgq-stone{display:block}#quotationModal .sgq-stone>.mb-2{display:flex!important;gap:8px;margin-bottom:8px!important}#quotationModal .sgq-stone .w-50{flex:1 1 0}#quotationModal .sgq-stone input[name="product_name"]{font-size:14px}}
/* Compact rhythm on normal desktop screens; mobile touch targets stay at 44px. */
@media(min-width:650px){
 #quotationModal .modal-header{padding-top:15px}
 #quotationModal .modal-body{padding-bottom:16px}
 #quotationModal .sgq-intro{margin-bottom:11px}
 #quotationModal .sgq-stone{padding:10px 13px;gap:5px 10px;margin-bottom:12px}
 #quotationModal .sgq-contact{gap:8px 12px;margin-bottom:8px}
 #quotationModal .form-label{margin-bottom:3px}
 #quotationModal .form-control,#quotationModal .form-select{min-height:39px;padding-block:7px}
 #quotationModal .sgq-quantity{margin-bottom:7px}
 #quotationModal .sgq-optional{margin-bottom:10px;padding-bottom:5px}
 #quotationModal .sgq-optional summary{min-height:26px;padding-block:3px}
 #quotationModal .sgq-privacy{margin-top:8px}
}
@media(min-width:480px) and (max-width:649px){
 #quotationModal .sgq-contact>.mb-2:not(.d-flex){grid-column:auto;align-self:end}
}

/* Monochrome details: simple, legible, no ornamental fonts. */
#quotationModal .sgq-stone select.form-select:has(option:checked:not([value=""])){border-color:transparent;background-color:transparent}
#quotationModal .sgq-stone select.form-select:focus{border-color:#555;box-shadow:0 0 0 2px rgba(0,0,0,.10)}
#quotationModal .sgq-stone .form-label{font-weight:400}
#quotationModal .sgq-optional summary{font-weight:400}
#quotationModal .sgq-privacy a{color:#171717}
#quotationModal #customCloseBtn{background:transparent;color:#333}
#quotationModal #customCloseBtn:hover{background:#eee}

/* SG_OPTIONAL_LABEL_CONSISTENCY_V1 */
#quotationModal .sgq-optional .form-label .text-muted.small {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    line-height: inherit;
}

/* SG_QUOTATION_SELECTION_REFINEMENT_V1 */

#quotationModal #quotationModalLabel {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.25px;
}

#quotationModal .sgq-intro {
    margin-bottom: 10px;
}

#quotationModal .sgq-stone {
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(0, 0.8fr)
        minmax(0, 1.3fr);
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 10px 12px;
    gap: 6px 8px;
    margin-bottom: 12px;
}

#quotationModal .sgq-stone-heading {
    font-size: 11px;
    font-weight: 400;
    color: #626262;
}

#quotationModal input[name="product_name"][readonly] {
    font-size: 15px;
    font-weight: 500;
    min-height: 23px;
    line-height: 1.4;
}

#quotationModal .sgq-stone .w-50:has(input[name="product_name"]) {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 7px;
    margin-bottom: 2px;
}

#quotationModal .sgq-stone .form-label {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 4px;
}

#quotationModal .sgq-stone select.form-select,
#quotationModal .sgq-stone select.form-select:has(option:checked:not([value=""])) {
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding-inline-start: 8px;
    min-height: 36px;
    font-weight: 400;
}

#quotationModal .sgq-stone select.form-select:focus {
    border-color: #555555;
}

@media (max-width: 649px) {
    #quotationModal .sgq-stone {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #quotationModal .sgq-stone .w-50:has(select[name="product_size"]) {
        grid-column: 1 / -1;
    }

    #quotationModal .sgq-stone select.form-select {
        min-height: 44px;
        font-size: 16px;
    }
}
