/* ---------------------------------------------------------------------------
   Quote request form.
   Shares the dark palette and 7px/14px radii of products.css so the form does
   not read as a different site once someone clicks through from a model card.
   --------------------------------------------------------------------------- */

.quote-page {
    padding-top: 24px;
    padding-bottom: 80px;
}

.quote-intro {
    margin-bottom: 40px;
}

    .quote-intro h1 {
        font-size: clamp(30px, 4vw, 44px);
        font-weight: 700;
        letter-spacing: -0.025em;
        margin-bottom: 16px;
    }

    .quote-intro .lead {
        font-size: 16px;
        line-height: 1.75;
        color: #b6bac1;
    }

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.quote-fieldset {
    border: 1px solid #2a2f38;
    border-radius: 14px;
    background: #14171c;
    padding: 24px 26px 28px;
    margin: 0;
}

    .quote-fieldset legend {
        float: none;
        width: auto;
        padding: 0 10px;
        margin-left: -10px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #1497E5;
    }

.quote-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .quote-row > .quote-field {
        flex: 1 1 240px;
    }

.quote-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.quote-field-wide {
    flex: 3 1 320px;
}

.quote-field-narrow {
    flex: 1 1 120px;
}

.quote-field label {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #d5d8dd;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333944;
    border-radius: 7px;
    background: #0d1014;
    color: #e8eaed;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.quote-field textarea {
    resize: vertical;
    line-height: 1.7;
    min-height: 130px;
}

    .quote-field input:focus,
    .quote-field select:focus,
    .quote-field textarea:focus {
        outline: none;
        border-color: #1497E5;
        box-shadow: 0 0 0 3px rgba(20, 151, 229, .18);
    }

.quote-field input[type="file"] {
    padding: 8px 10px;
    font-size: 13px;
    color: #b6bac1;
}

.quote-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #8b8f96;
}

.quote-error {
    margin-top: 5px;
    font-size: 12px;
    color: #ff8a95;
}

/* Server-only licensing note, toggled by the model picker. */
.quote-notice {
    margin: 4px 0 0;
    padding: 13px 15px;
    border: 1px solid #3a4a2c;
    border-left: 3px solid #a3e635;
    border-radius: 7px;
    background: #1a2012;
    font-size: 12.5px;
    line-height: 1.7;
    color: #cfe0b4;
}

.quote-validation-summary:not(:empty) {
    padding: 13px 16px;
    border: 1px solid #5c2029;
    border-radius: 7px;
    background: #2a1216;
    color: #ff8a95;
    font-size: 13px;
}

.quote-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.quote-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

    .quote-submit-row .btn-quote {
        flex: 0 0 auto;
        min-width: 200px;
        cursor: pointer;
    }

    .quote-submit-row .quote-hint {
        flex: 1 1 240px;
        margin-top: 0;
    }

/* Honeypot. Removed from the visual and tab order without display:none, which
   some bots check for. */
.quote-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Confirmation state ------------------------------------------------------- */

.quote-sent {
    max-width: 60ch;
    padding: 60px 0 40px;
}

.quote-sent-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 100px;
    background: rgba(52, 211, 153, .14);
    border: 1px solid #34d399;
    color: #34d399;
    font-size: 26px;
}

.quote-sent h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.quote-sent .lead {
    font-size: 16px;
    line-height: 1.75;
    color: #b6bac1;
    margin-bottom: 28px;
}

.quote-sent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 576px) {
    .quote-fieldset {
        padding: 20px 16px 22px;
    }

    .quote-submit-row .btn-quote {
        width: 100%;
    }
}

/* Composed-draft state ----------------------------------------------------- */

/* Wider than .quote-sent on its own: this one holds the whole message for
   copying, not just a line of confirmation. */
.quote-draft {
    max-width: 82ch;
}

.quote-draft .quote-field {
    margin-bottom: 22px;
}

.quote-draft-body {
    font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.6;
}

.quote-draft-fallback {
    margin-top: 0;
    margin-bottom: 26px;
}

/* Amber sibling of .quote-notice, for the message that did not fit. */
.quote-draft-warning {
    margin: 0 0 24px;
    padding: 13px 15px;
    border: 1px solid #5c4520;
    border-left: 3px solid #f0b429;
    border-radius: 7px;
    background: #241a0d;
    font-size: 12.5px;
    line-height: 1.7;
    color: #e8cfa0;
}
