/* Engineering Design Specifications page + Lead Capture Modal
   Standalone compiled stylesheet used by EngineeringSpecifications.cshtml.
   The canonical SCSS source lives at assets/sass/ricelake/_engineeringSpecs.scss
   and is also imported into rice-lake.scss (so it ships with the main bundle
   on the next SCSS build). This file exists so the page works immediately
   even if the SCSS pipeline hasn't been re-run. */

.eng-specs-hero {
    background: #f4f6f7;
    padding: 60px 0 30px;
}
.eng-specs-hero .container {
    padding-left: 40px;
    padding-right: 40px;
}
.eng-specs-hero h1 {
    color: #363636;
    font-size: 36px;
    margin-bottom: 16px;
}
.eng-specs-hero .eng-specs-intro {
    color: #545559;
    font-size: 17px;
    line-height: 1.55;
    max-width: 820px;
}
.eng-specs-hero .eng-specs-intro p:last-child { margin-bottom: 0; }

.eng-specs-listing { padding: 40px 0 80px; }

/* ----- Clean download list ----- */
.eng-specs-list {
    border: 1px solid #e5e7e9;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
}
/* Override the site's global .page-content ul/li left margins so the list
   aligns flush with the hero box above. */
.page-content ul.eng-specs-list,
.page-content .eng-specs-list__item {
    margin-left: 0;
}

.eng-specs-list__item {
    align-items: center;
    border-bottom: 1px solid #edeff1;
    display: flex;
    gap: 18px;
    padding: 18px 22px;
    transition: background .12s ease;
}
.eng-specs-list__item:last-child { border-bottom: 0; }
.eng-specs-list__item:hover { background: #fafbfc; }

.eng-specs-list__icon {
    align-items: center;
    background: #ad122a;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    letter-spacing: 0.5px;
    width: 44px;
}

.eng-specs-list__info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}
.eng-specs-list__title {
    color: #363636;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.eng-specs-list__download {
    align-items: center;
    background: #ad122a;
    border: 1px solid #a10d24;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    padding: 9px 18px;
    text-decoration: none;
    transition: background .15s ease;
}
.eng-specs-list__download:hover,
.eng-specs-list__download:focus {
    background: #a10d24;
    color: #fff;
}

@media (max-width: 560px) {
    .eng-specs-list__item { flex-wrap: wrap; }
    .eng-specs-list__download { margin-left: 62px; }
}

.eng-specs-empty {
    color: #707070;
    font-style: italic;
    padding: 60px 0;
    text-align: center;
}

/* ----- Modal ----- */
.eng-specs-modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2000;
}
.eng-specs-modal.is-open { display: block; }
.eng-specs-modal__backdrop {
    background: rgba(20, 22, 25, 0.55);
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}
.eng-specs-modal__dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    left: 50%;
    max-height: 90vh;
    max-width: 560px;
    overflow-y: auto;
    padding: 36px 32px 28px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
}
.eng-specs-modal__close {
    background: none;
    border: 0;
    color: #545559;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 4px 10px;
    position: absolute;
    right: 10px;
    top: 10px;
}
.eng-specs-modal__close:hover { color: #ad122a; }
.eng-specs-modal__header {
    background: transparent;
    margin: 0 0 22px;
    padding: 0;
    text-align: left;
}
.eng-specs-modal__eyebrow {
    color: #ad122a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.eng-specs-modal h2 {
    color: #363636;
    font-size: 26px;
    margin-bottom: 8px;
}
.eng-specs-modal__sub {
    color: #545559;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.eng-specs-form__honeypot {
    height: 0;
    left: -9999px;
    opacity: 0;
    position: absolute;
    width: 0;
}
.eng-specs-form__row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .eng-specs-form__row { grid-template-columns: 1fr 1fr; }
}
.eng-specs-form__field { margin-bottom: 14px; }
.eng-specs-form__field label {
    color: #363636;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.eng-specs-form__field label span { color: #ad122a; margin-left: 2px; }
.eng-specs-form__field input[type=text],
.eng-specs-form__field input[type=email],
.eng-specs-form__field select {
    background: #fff;
    border: 1px solid #cfd4d8;
    border-radius: 4px;
    color: #363636;
    font-size: 14px;
    padding: 10px 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}
.eng-specs-form__field input:focus,
.eng-specs-form__field select:focus {
    border-color: #ad122a;
    box-shadow: 0 0 0 3px rgba(173, 18, 42, 0.12);
    outline: none;
}

.eng-specs-form__consent { margin: 8px 0 18px; }
.eng-specs-form__consent label {
    align-items: flex-start;
    color: #545559;
    display: flex;
    font-size: 13px;
    gap: 10px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    position: relative;
}
.eng-specs-form__consent label > span {
    flex: 1 1 auto;
}
/* Override the site's custom checkbox styling so it stays inline and never
   overlaps the label text. */
.eng-specs-form__consent input[type=checkbox] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    flex: 0 0 16px;
    height: 16px;
    margin: 2px 0 0;
    opacity: 1;
    position: static;
    width: 16px;
}
/* Kill the site's custom checkbox glyph (the stray "X" drawn over the box). */
.eng-specs-form__consent input[type=checkbox]::before,
.eng-specs-form__consent input[type=checkbox]::after {
    content: none !important;
    display: none !important;
}

.eng-specs-form__actions {
    align-items: center;
    display: flex;
    gap: 16px;
}
.eng-specs-form__submit {
    background: #ad122a;
    border: 1px solid #a10d24;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    transition: background .15s ease;
}
.eng-specs-form__submit:hover,
.eng-specs-form__submit:focus { background: #a10d24; }

.eng-specs-form .btn-link {
    background: none;
    border: 0;
    color: #545559;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 4px;
    text-decoration: underline;
}
.eng-specs-form .btn-link:hover { color: #ad122a; }

.eng-specs-form__error {
    background: #fdecef;
    border: 1px solid #f5c2cb;
    border-radius: 4px;
    color: #8c1424;
    font-size: 13px;
    margin-top: 14px;
    padding: 10px 12px;
}

body.eng-specs-modal-open { overflow: hidden; }
