/**
 * QuoteCalc Frontend Styles
 * Minimal structural CSS. Inherits theme fonts and colours.
 */

 .qc-calculator { max-width: 100%; }
 .qc-calc-title { margin-bottom: 1.2em; }
 .qc-fields { display: flex; flex-direction: column; gap: 1.2em; margin-bottom: 1.5em; }
 .qc-field  { display: flex; flex-direction: column; gap: 0.4em; }
 .qc-label  { font-weight: 600; font-size: 0.9em; display: block; }
 .qc-required { color: #c00; margin-left: 2px; }
 .qc-hint   { font-size: 0.8em; opacity: 0.65; }
 
 .qc-input  {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 1em !important;
    line-height: 1.4 !important;
    background: #fff !important;
    color: inherit !important;
    outline: none;
}
.qc-input:focus {
    border-color: #666 !important;
    box-shadow: none !important;
}
 .qc-select { display: block; width: 100%; box-sizing: border-box; }
 
 .qc-line-item-row { display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap; }
 .qc-qty-input     { width: 100px !important; flex-shrink: 0; }
 .qc-unit-label    { font-size: 0.9em; opacity: 0.75; }
 .qc-unit-price    { font-size: 0.85em; opacity: 0.55; }
 
 .qc-radio-group, .qc-check-group { display: flex; flex-direction: column; gap: 0.5em; }
 .qc-radio-label, .qc-check-label { display: flex; align-items: center; gap: 0.5em; cursor: pointer; font-weight: normal; }
 
 .qc-phone-row    { display: flex; gap: 0.5em; align-items: center; }
 .qc-country-code { width: auto !important; flex-shrink: 0; }
 .qc-phone-input  { flex: 1; }
 
 .qc-total-wrap { margin: 1.5em 0 0.5em; }
 .qc-total      { display: flex; justify-content: space-between; align-items: center; padding: 0.8em 1em; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
 .qc-total-label  { font-weight: 600; font-size: 1em; }
 .qc-total-amount { font-size: 1.5em; font-weight: 700; }
 
 .qc-breakdown { margin: 0.8em 0; }
 .qc-breakdown-table { display: flex; flex-direction: column; gap: 0.3em; font-size: 0.875em; opacity: 0.8; }
 .qc-breakdown-row   { display: flex; justify-content: space-between; gap: 1em; padding: 0.25em 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
 .qc-breakdown-label { flex: 1; }
 .qc-breakdown-value { font-weight: 600; white-space: nowrap; }
 
 .qc-cta-btn {
    display: inline-block;
    margin-top: 1.2em;
    cursor: pointer;
    padding: 10px 24px;
    font-size: 1em;
    font-weight: 600;
}
 
 /* Modal */
 .qc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1em; box-sizing: border-box; }
 .qc-modal { background: #fff; border-radius: 8px; padding: 2em; max-width: 460px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.25); box-sizing: border-box; color: #1d2327; font-family: inherit; }
 .qc-modal-close { position: absolute; top: 0.75em; right: 0.75em; background: none; border: none; font-size: 1.4em; cursor: pointer; color: #888; line-height: 1; padding: 0.2em 0.4em; }
 .qc-modal-close:hover { color: #333; }
 .qc-modal-header { margin-bottom: 1.2em; }
 .qc-modal-header h3 { margin: 0 0 0.3em; font-size: 1.2em; }
 .qc-modal-sub { margin: 0; font-size: 0.875em; opacity: 0.7; }
 .qc-modal-form { display: flex; flex-direction: column; gap: 0.9em; }
 .qc-modal-field { display: flex; flex-direction: column; gap: 0.3em; }
 .qc-privacy-note { font-size: 0.78em; opacity: 0.55; margin: 0.2em 0 0; line-height: 1.4; }
 .qc-modal-error  { color: #c00; font-size: 0.875em; margin: 0; padding: 0.4em 0.6em; background: #fff0f0; border-radius: 4px; border-left: 3px solid #c00; }
 .qc-submit-btn   { cursor: pointer; width: 100%; margin-top: 0.4em; }
 
 .qc-modal-success { text-align: center; padding: 1em 0; }
 .qc-success-icon  { width: 56px; height: 56px; background: #d4edda; color: #155724; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6em; font-weight: 700; margin: 0 auto 0.8em; }
 .qc-modal-success h3 { margin: 0 0 0.4em; }
 .qc-modal-success p  { margin: 0.3em 0; font-size: 0.9em; }
 .qc-error { color: #c00; font-size: 0.875em; }
 
 @media (max-width: 480px) {
   .qc-modal { padding: 1.5em; }
   .qc-qty-input { width: 80px !important; }
 }
 
 /* Email gate — blur total until email submitted */
 .qc-total-blurred .qc-total {
     filter: blur(5px);
     user-select: none;
     pointer-events: none;
     position: relative;
 }
 .qc-total-blurred::after {
     content: 'Submit your details to see your quote';
     display: block;
     text-align: center;
     font-size: 0.8em;
     opacity: 0.6;
     margin-top: 0.3em;
 }
.qc-email-gate-hint { font-size: 0.875em; opacity: 0.65; margin: 1em 0; font-style: italic; }

/* Phone field dial select */
.qc-dial-select { width: auto !important; flex-shrink: 0; min-width: 140px; }
.qc-phone-num-input { flex: 1; }