/* =========================================================
   ENGINEERING QUOTATION PAGE
========================================================= */

.engineering-quotation-page {
    color: #171717;
    background: #ffffff;
}

.engineering-quotation-page *,
.engineering-quotation-page *::before,
.engineering-quotation-page *::after {
    box-sizing: border-box;
}

.eq-container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}


/* HERO */

.eq-hero {
    padding: 76px 0 82px;
    background: #171717;
    color: #ffffff;
}

.eq-back-link {
    display: inline-block;
    margin-bottom: 42px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
}

.eq-back-link:hover {
    color: #e30613;
}

.eq-eyebrow,
.eq-label {
    display: block;
    margin-bottom: 16px;
    color: #e30613;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.eq-hero h1 {
    max-width: 900px;
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.05;
}

.eq-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.8;
}


/* FORM LAYOUT */

.eq-section {
    padding: 90px 0 110px;
}

.eq-form-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.eq-intro {
    padding-top: 14px;
}

.eq-intro h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.12;
}

.eq-intro > p,
.eq-note p {
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.eq-note {
    margin-top: 35px;
    padding: 22px;
    border-left: 3px solid #e30613;
    background: #f6f6f4;
}

.eq-note p {
    margin: 8px 0 0;
}


/* FORM CARD */

.eq-form-card {
    padding: 34px;
    border: 1px solid #e1e1de;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
}

.eq-field {
    margin-bottom: 20px;
}

.eq-field label {
    display: block;
    margin-bottom: 9px;
    color: #252525;
    font-size: 13px;
    font-weight: 700;
}

.eq-field label span,
.eq-required-note span {
    color: #e30613;
}

.eq-field input,
.eq-field select,
.eq-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid #d8d8d4;
    border-radius: 0;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
}

.eq-field textarea {
    min-height: 145px;
    resize: vertical;
    line-height: 1.6;
}

.eq-field input:focus,
.eq-field select:focus,
.eq-field textarea:focus {
    outline: 2px solid rgba(227, 6, 19, 0.25);
    border-color: #e30613;
}

.eq-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.eq-required-note {
    margin: 0 0 18px;
    color: #777777;
    font-size: 12px;
}


/* SUBMIT BUTTON */

.eq-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    border: 0;
    background: #e30613;
    color: #ffffff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    transition: background-color 0.25s ease;
}

.eq-submit:hover {
    background: #b9000a;
}

.eq-submit span {
    font-size: 20px;
}


/* VALIDATION MESSAGES */

.eq-errors {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid #e6b8b8;
    background: #fff6f6;
    color: #8e1010;
    font-size: 13px;
    line-height: 1.6;
}

.eq-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.eq-success {
    padding: 18px 0;
}

.eq-success h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.eq-success p {
    color: #555555;
    line-height: 1.7;
}

.eq-success a {
    display: inline-block;
    margin-top: 12px;
    color: #e30613;
    font-weight: 700;
}


/* TABLET */

@media (max-width: 850px) {
    .eq-form-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .eq-section {
        padding: 65px 0 80px;
    }

    .eq-form-card {
        padding: 26px;
    }
}


/* MOBILE */

@media (max-width: 520px) {
    .eq-container {
        width: calc(100% - 32px);
    }

    .eq-hero {
        padding: 48px 0 58px;
    }

    .eq-back-link {
        margin-bottom: 30px;
    }

    .eq-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .eq-form-card {
        padding: 21px 17px;
    }
}



/* =========================================================
   FULL RFQ FORM
========================================================= */

.eq-form-heading {
    margin: 34px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddddda;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

.eq-form-heading:first-child {
    margin-top: 0;
}

.eq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.eq-full {
    grid-column: 1 / -1;
}

.eq-help {
    margin: 12px 0 22px;
    color: #666666;
    font-size: 13px;
    line-height: 1.7;
}

.eq-field small {
    display: block;
    margin-top: 8px;
    color: #777777;
    font-size: 12px;
    line-height: 1.6;
}

.eq-type-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 30px;
}

.eq-type-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 65px;
    padding: 15px;
    border: 1px solid #ddddda;
    background: #fafaf8;
    color: #333333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.eq-type-option:has(input:checked) {
    border-color: #e30613;
    background: #fff5f5;
}

.eq-type-option input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #e30613;
}

.eq-conditional {
    margin: 30px 0;
    padding: 26px;
    border: 1px solid #e2e2df;
    background: #ffffff;
}

.eq-conditional[hidden] {
    display: none !important;
}

.eq-field input[type="file"] {
    min-height: auto;
    padding: 12px;
    background: #fafaf8;
    font-size: 12px;
}

.eq-submit {
    margin-top: 15px;
}

@media (max-width: 700px) {
    .eq-grid {
        grid-template-columns: 1fr;
    }

    .eq-full {
        grid-column: auto;
    }

    .eq-type-options {
        grid-template-columns: 1fr;
    }

    .eq-conditional {
        padding: 20px 15px;
    }

    .eq-form-heading {
        font-size: 24px;
    }
}
