/*
 * Request for Quotation form ([[Quotation-Form-Placeholder]]). The theme sets 1rem = 10px, so sizes here are in px.
 * Colours follow the theme: --main-color (red) for actions, --black-color (navy) for headings.
 */
.qf {
    --qf-red: var(--main-color, #ab1a2d);
    --qf-navy: var(--black-color, #061f5c);
    --qf-ink: #06205C; /* the logo navy */
    --qf-muted: #667085;
    --qf-line: #d0d5dd;
    --qf-error: #ab1a2d;
    max-width: 920px;
    margin: 0 auto;
    text-align: start;
    color: var(--qf-ink);
}

.qf-form,
.qf-done {
    background: #fff;
    border: 1px solid #EEF0F3;
    border-radius: 24px;
    box-shadow: 0 30px 60px -34px rgba(6, 32, 92, .35), 0 2px 8px rgba(6, 32, 92, .04);
    padding: 40px 44px;
}

.qf-head { margin-bottom: 8px; }
.qf-title { color: var(--qf-navy); font-size: 26px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.qf-intro { font-size: 16px; margin: 0 0 4px; }
.qf-note { color: var(--qf-muted); font-size: 14px; margin: 0; }
.qf-req { color: var(--qf-red); font-weight: 700; }

.qf-alert {
    background: #fef3f2;
    border: 1px solid #edbfc7;
    border-radius: 8px;
    color: var(--qf-error);
    font-size: 15px;
    margin: 16px 0 0;
    padding: 12px 16px;
}

.qf-group { border: 0; margin: 28px 0 0; min-width: 0; padding: 0; }
.qf-group legend {
    border-bottom: 1px solid #eaecf0;
    color: var(--qf-navy);
    float: none;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    padding: 0 0 8px;
    width: 100%;
}

.qf-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qf-wide { grid-column: 1 / -1; }
.qf-field[hidden] { display: none; }

.qf-field label,
.qf-label { color: var(--qf-ink); display: block; font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }

/* The website's one field design (form-preview.css): 52px, a 12px corner, a soft border, a red focus ring. */
.qf .qf-input {
    background: #fff;
    border: 1px solid #D5DAE1;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(6, 32, 92, .04);
    color: var(--qf-ink);
    display: block;
    font: inherit;
    font-size: 15px;
    height: 52px;
    line-height: 1.6;
    padding: 13px 16px;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.qf .qf-input:hover:not(:focus) { border-color: #AEB6C2; }
.qf select.qf-input {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 7.75 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    cursor: pointer;
    padding-inline-end: 46px;
}
.qf[dir="rtl"] select.qf-input { background-position: left 16px center; }
.qf select.qf-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23AB1A2D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 7.75 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
}
.qf textarea.qf-input { height: auto; min-height: 140px; resize: vertical; }
.qf .qf-input::placeholder { color: #9CA3AF; }
.qf .qf-input:focus {
    border-color: var(--qf-red);
    box-shadow: 0 0 0 4px rgba(171, 26, 45, .12);
    outline: none;
}
.qf [dir="ltr"]::placeholder { text-align: start; }

.qf-hint { color: var(--qf-muted); display: block; font-size: 13px; margin-top: 4px; }
.qf-error { color: var(--qf-error); display: block; font-size: 13px; font-weight: 500; margin-top: 6px; }
.qf-error[hidden] { display: none; }
.qf-invalid .qf-input { border-color: var(--qf-error); }
.qf-invalid .qf-input:focus { box-shadow: 0 0 0 4px rgba(171, 26, 45, .12); }

.qf-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.qf .qf-choice {
    align-items: center;
    border: 1px solid var(--qf-line);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 500;
    gap: 10px;
    margin: 0;
    min-height: 48px;
    min-width: 120px;
    padding: 10px 16px;
}
.qf .qf-choice input { accent-color: var(--qf-red); height: 18px; margin: 0; width: 18px; }
.qf .qf-choice:has(input:checked) { border-color: var(--qf-navy); box-shadow: inset 0 0 0 1px var(--qf-navy); }
.qf .qf-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.2); }
.qf-invalid .qf-choice { border-color: var(--qf-error); }

.qf-trap { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }

.qf-actions { margin-top: 32px; text-align: center; }
.qf .qf-submit { min-width: 260px; }
.qf .qf-submit:disabled { cursor: progress; opacity: 0.7; }

.qf-done { text-align: center; }
.qf-done:focus { outline: none; }
.qf-done-icon {
    align-items: center;
    background: #ecfdf3;
    border-radius: 50%;
    color: #067647;
    display: inline-flex;
    font-size: 30px;
    height: 64px;
    justify-content: center;
    margin-bottom: 16px;
    width: 64px;
}
.qf-done p { font-size: 16px; margin: 0 0 20px; }
.qf-again {
    background: none;
    border: 0;
    color: var(--qf-navy);
    font-weight: 600;
    padding: 6px 4px;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .qf-form,
    .qf-done { padding: 28px 20px; }
    .qf-grid { grid-template-columns: minmax(0, 1fr); }
    .qf .qf-submit { width: 100%; min-width: 0; }
}
