/* ==========================================================================
   CONTACT & INQUIRY PAGE (quote_cart.html), canvas "Inquiry" artboard.
   Aileron has only Thin and Regular (both 400): no weight above 400, no synthesis.
   ========================================================================== */
.iq {
    isolation: isolate; /* keeps the fixed effect layers (z-index: -1) inside this page */
    --iq-field: rgba(236, 231, 223, 0.32);
    --iq-error: #ff8a7a;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(72px, 9vw, 120px);
    color: var(--text-primary);
    font-family: 'AileronReg', sans-serif;
    font-weight: 400;
    font-synthesis: none;
}

body.light-mode .iq {
    --iq-field: rgba(23, 22, 26, 0.36);
    --iq-error: #a8321f;
}

.iq * {
    font-weight: 400;
}

/* Fixed full-page effect layers (js/inquiryPage.js). The veil keeps the list readable:
   80% behind the text column on the left, fading to 10% on the right where the globe shows;
   a flat 70% on narrow screens, where text covers the whole width. */
.iq-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.iq-fx-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.iq-fx-layer.is-ready {
    opacity: 1;
}

.iq-fx-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c-bg) 80%, transparent) 0%, color-mix(in srgb, var(--c-bg) 80%, transparent) 45%, color-mix(in srgb, var(--c-bg) 10%, transparent) 75%);
}

@media (max-width: 900px) {
    .iq-fx-veil {
        background: color-mix(in srgb, var(--c-bg) 70%, transparent);
    }
}

/* The isolated .iq paints after the footer; lift the footer above the fixed layers. */
.site-footer {
    position: relative;
    z-index: 1;
}

.iq [hidden] {
    display: none !important;
}

.iq a {
    color: var(--text-primary);
}

.iq a:hover {
    color: var(--c-accent);
}

.iq h1,
.iq h2,
.iq p {
    margin: 0;
}

/* Header */
.iq-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.iq-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 680px;
}

.iq-title {
    font-family: 'AileronThin', 'AileronReg', sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.05;
}

.iq-title:focus {
    outline: none;
}

.iq-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-muted);
}

.iq-h2 {
    font-size: 22px;
}

/* Phone: list, form, contact details. From 900px: list and contact on the left, form on the right. */
.iq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}

@media (min-width: 900px) {
    .iq-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
        grid-template-rows: auto 1fr;
        grid-template-areas: "list form" "contact form";
        align-items: start;
        column-gap: clamp(32px, 4vw, 56px);
    }

    .iq-left {
        grid-area: list;
    }

    .iq-form {
        grid-area: form;
    }

    .iq-contact {
        grid-area: contact;
    }
}

.iq-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Inquiry lines */
.iq-lines {
    border-top: 1px solid var(--c-line);
}

.iq-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-line);
}

.iq-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--c-ph);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--c-muted);
}

.iq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iq-info {
    flex: 1 1 140px;
    align-items: flex-start;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iq-code {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.iq-meta {
    font-size: 13px;
    color: var(--c-muted);
}

.iq-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
}

.iq-qty button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.iq-qty button:hover {
    background: var(--c-ph);
}

.iq-qty input {
    width: 72px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 15px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

.iq-qty input::-webkit-outer-spin-button,
.iq-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.iq-unit {
    padding-right: 4px;
    font-size: 13px;
    color: var(--c-muted);
}

.iq-remove {
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-muted);
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.iq-remove:hover {
    color: var(--text-primary);
}

.iq-empty {
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
}

.iq-note,
.iq-small {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-muted);
}

.iq-small {
    font-size: 13px;
}

/* Contact details (formerly contact_us.html) */
.iq-contact {
    padding-top: 32px;
    border-top: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 110px;
}

.iq-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 24px 40px;
}

.iq-contact-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.iq-contact address {
    margin: 0;
    font-style: normal;
}

.iq-contact a {
    text-decoration: none;
}

.iq-label {
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--c-accent);
}

/* Form */
.iq-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 20px;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
}

.iq-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.iq-row .iq-field {
    flex: 1 1 160px;
}

.iq-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iq-field label {
    font-size: 14px;
}

.iq-optional {
    color: var(--c-muted);
}

.iq-field input,
.iq-field select,
.iq-field textarea {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--iq-field);
    background: var(--c-bg);
    color: var(--text-primary);
    font: inherit;
    font-size: 16px;
}

.iq-field textarea {
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

.iq-field textarea::placeholder {
    color: var(--c-muted);
}

.iq-field input:focus-visible,
.iq-field select:focus-visible,
.iq-field textarea:focus-visible {
    border-color: var(--c-accent);
}

.iq-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-muted);
    cursor: pointer;
}

.iq-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--c-accent);
}

.iq-error {
    font-size: 14px;
    line-height: 1.5;
    color: var(--iq-error);
}

.iq-submit {
    min-height: 52px;
    border: 1px solid var(--cta-gold);
    border-radius: 999px;
    background: var(--cta-gold);
    color: var(--cta-fg);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.iq-submit:hover:not(:disabled) {
    background: var(--cta-gold-hover);
    border-color: var(--cta-gold-hover);
}

/* While sending: clearly inactive so it is not pressed twice. */
.iq-submit:disabled {
    background: transparent;
    border-color: var(--c-line);
    color: var(--c-muted);
    cursor: progress;
}

.iq-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    text-decoration: none;
}

.iq a.iq-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Sent */
.iq-sent {
    max-width: 720px;
    padding: clamp(48px, 10vw, 120px) 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.iq-sent-mark {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid var(--c-accent);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .iq-submit {
        transition: none;
    }
}
