.v4-rfq-page,
.v4-rfq-page *,
.v4-rfq-page *::before,
.v4-rfq-page *::after {
    box-sizing: border-box;
}

.v4-rfq-main {
    padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
    background: #f5f6f8;
    color: #181b20;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.v4-rfq-main > .v4-container {
    max-width: 1180px;
}

.v4-rfq-intro {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.v4-rfq-intro h1 {
    margin: .25rem 0 .75rem;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.v4-rfq-intro > p:last-child {
    color: #5b616b;
    font-size: 1.08rem;
    line-height: 1.65;
}

.v4-rfq-gate {
    margin: 0 0 1.5rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid #c78919;
    border-left: 5px solid #a96600;
    border-radius: 10px;
    background: #fff8e7;
}

.v4-rfq-gate h2,
.v4-rfq-gate p { margin: 0; }
.v4-rfq-gate h2 { font-size: 1.1rem; }
.v4-rfq-gate p + p,
.v4-rfq-gate h2 + p { margin-top: .45rem; }

.v4-rfq-mode {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
    padding: 4px;
    border: 1px solid #cfd2d5;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 1.5rem;
}

.v4-rfq-mode button {
    min-height: 44px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #313438;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.v4-rfq-mode button[aria-pressed="true"] {
    background: #191919;
    color: #fff;
}

.v4-rfq-form,
.v4-rfq-result {
    display: grid;
    gap: 1.25rem;
}

.v4-rfq-step,
.v4-rfq-result {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #e0e3e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 25, 30, .055);
}

.v4-rfq-step__heading {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
    margin-bottom: 1.6rem;
}

.v4-rfq-step__heading > span {
    display: inline-flex;
    width: max-content;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #f0c8cf;
    border-radius: 999px;
    color: #9f0c24;
    background: #fff4f6;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}

.v4-rfq-step__heading h2,
.v4-rfq-step__heading p { margin: 0; }
.v4-rfq-step__heading h2 {
    color: #17191d;
    font-size: clamp(1.45rem, 2.1vw, 1.7rem);
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.v4-rfq-step__heading p {
    margin-top: .38rem;
    color: #626974;
    font-size: .95rem;
    line-height: 1.5;
}

.v4-rfq-parts { display: grid; gap: 1rem; }
.v4-rfq-part {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid #dce0e5;
    border-radius: 12px;
    background: #fcfcfd;
}
.v4-rfq-part legend {
    padding: 0 .45rem;
    color: #252930;
    background: #fff;
    font-size: .95rem;
    font-weight: 760;
    letter-spacing: -.01em;
}
.v4-rfq-part__grid {
    display: grid;
    grid-template-columns: minmax(165px, 1.35fr) minmax(105px, .6fr) minmax(130px, 1fr) minmax(115px, .9fr) minmax(170px, 1.15fr) minmax(190px, 1.25fr) 60px;
    align-items: start;
    gap: .85rem;
    min-width: 0;
}

.v4-field { min-width: 0; }
.v4-field label {
    display: block;
    margin-bottom: .48rem;
    color: #292d34;
    font-size: .84rem;
    font-weight: 720;
    letter-spacing: .005em;
    line-height: 1.35;
}
.v4-field label span {
    color: #777e88;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}
.v4-rfq-part__grid .v4-field > label {
    display: flex;
    min-height: 39px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1px;
}
.v4-rfq-part__grid .v4-field > label span {
    display: block;
}
.v4-field input,
.v4-field select,
.v4-field textarea,
.v4-rfq-upload input[type="file"] {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: .72rem .82rem;
    border: 1px solid #bcc2ca;
    border-radius: 8px;
    background: #fff;
    color: #1d2025;
    font: inherit;
    font-size: .94rem;
    line-height: 1.35;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.v4-field input::placeholder,
.v4-field textarea::placeholder { color: #8b929c; }
.v4-field input:hover,
.v4-field select:hover,
.v4-field textarea:hover { border-color: #929aa5; }
.v4-field input:focus,
.v4-field select:focus,
.v4-field textarea:focus {
    border-color: #9f0c24;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .11);
}
.v4-field textarea { min-height: 125px; resize: vertical; }
.v4-field input[aria-invalid="true"],
.v4-field select[aria-invalid="true"],
.v4-field textarea[aria-invalid="true"],
.v4-rfq-upload input[aria-invalid="true"] { border-color: #a31221; box-shadow: 0 0 0 2px rgba(163, 18, 33, .12); }
.v4-field-hint,
.v4-field-error {
    margin: .38rem 0 0;
    font-size: .76rem;
    line-height: 1.35;
}
.v4-field-hint { color: #707782; }
.v4-field-error { color: #9e1421; font-weight: 650; }

.v4-rfq-price { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: .4rem; }
.v4-rfq-remove,
.v4-text-button {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #9e1421;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.v4-rfq-remove {
    align-self: end;
    padding: .65rem .25rem;
    font-size: .86rem;
    text-underline-offset: 3px;
}
.v4-rfq-parts-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
}

.v4-rfq-upload { display: grid; gap: .9rem; }
.v4-rfq-dropzone {
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 1.5rem;
    border: 2px dashed #9ca2a8;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
}
.v4-rfq-dropzone strong { font-size: 1.15rem; }
.v4-rfq-dropzone span { max-width: 620px; color: #62666a; }
.v4-rfq-file-status,
.v4-rfq-upload-gate {
    margin: 0;
    padding: .8rem 1rem;
    border-radius: 7px;
    background: #f0f2f4;
}
.v4-rfq-upload-gate { border-left: 4px solid #a96600; background: #fff8e7; }

.v4-rfq-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.4rem;
}
.v4-field--wide { grid-column: 1 / -1; }

.v4-rfq-collection-notice {
    margin-bottom: .85rem;
    border: 1px solid #d8dbde;
    border-radius: 8px;
    background: #f7f8f9;
}
.v4-rfq-collection-notice summary {
    padding: .9rem 1rem;
    font-weight: 800;
    cursor: pointer;
}
.v4-rfq-collection-notice div {
    padding: 0 1rem 1rem;
    color: #4f555a;
    font-size: .94rem;
    line-height: 1.55;
}
.v4-rfq-collection-notice p { margin: .7rem 0 0; }

.v4-rfq-consent {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid #d8dbde;
    border-radius: 8px;
    line-height: 1.55;
}
.v4-rfq-consent input { width: 20px; height: 20px; margin: .15rem 0 0; }
.v4-rfq-captcha {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: end;
    gap: .8rem;
    margin-top: 1rem;
}
.v4-rfq-captcha img { width: 150px; height: 48px; object-fit: contain; border: 1px solid #cfd2d5; border-radius: 6px; }
.v4-rfq-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
}
.v4-rfq-submit-row p { margin: 0; color: #555b60; }

.v4-rfq-error-summary {
    padding: 1rem 1.2rem;
    border: 2px solid #a31221;
    border-radius: 10px;
    background: #fff5f5;
}
.v4-rfq-error-summary h2,
.v4-rfq-error-summary p { margin: 0; }
.v4-rfq-error-summary ul { margin: .65rem 0 0; padding-left: 1.25rem; }
.v4-rfq-error-summary a { color: #85101d; font-weight: 700; }

.v4-rfq-result { margin-top: 1.25rem; }
.v4-rfq-result h2 { margin: .2rem 0 .5rem; font-size: 1.8rem; }
.v4-rfq-result p { max-width: 720px; }

.v4-rfq-mode button:focus-visible,
.v4-rfq-form :focus-visible,
.v4-rfq-result :focus-visible {
    outline: 3px solid #1e64aa;
    outline-offset: 2px;
}

[hidden] { display: none !important; }

@media (max-width: 1199px) {
    .v4-rfq-part__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .v4-rfq-remove { align-self: auto; justify-self: start; }
}

@media (max-width: 767px) {
    .v4-rfq-main { padding: 2rem 0 3rem; }
    .v4-rfq-step__heading { grid-template-columns: 1fr; gap: .4rem; }
    .v4-rfq-part__grid,
    .v4-rfq-contact-grid,
    .v4-rfq-captcha { grid-template-columns: minmax(0, 1fr); }
    .v4-rfq-captcha img { width: min(100%, 220px); }
    .v4-rfq-captcha .v4-button { width: 100%; }
    .v4-rfq-parts-actions,
    .v4-rfq-submit-row { align-items: stretch; flex-direction: column; }
    .v4-rfq-parts-actions .v4-button,
    .v4-rfq-submit-row .v4-button { width: 100%; }
    .v4-rfq-submit-row p { text-align: center; }
}

@media (max-width: 430px) {
    .v4-rfq-mode { grid-template-columns: 1fr; }
    .v4-rfq-step,
    .v4-rfq-result { padding: 1rem; border-radius: 10px; }
    .v4-rfq-price { grid-template-columns: minmax(0, 1fr); }
    .v4-rfq-dropzone { min-height: 145px; padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .v4-rfq-page * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
