/* ============================================================
   CHECKOUT LAYOUT
============================================================ */

.checkout-shell {
    padding-top: 28px;
    padding-bottom: 48px;
}

.checkout-heading {
    background: #fff;
    border-radius: 14px;
    padding: 25px 30px;
    margin-bottom: 22px;
    border-left: 6px solid #ffc000;
}

.checkout-heading h1 {
    margin: 0;
    color: #006b1e;
    font-size: 36px;
}

.checkout-heading p {
    margin: 5px 0;
}

.eyebrow {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #68746a;
}

/* ============================================================
   CHECKOUT GRID
============================================================ */

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
    gap: 22px;
    align-items: start;
}

/* ============================================================
   CHECKOUT CARDS
============================================================ */

.checkout-card {
    background: white;
    border: 1px solid #e2e6e2;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px #0000000b;
}

.checkout-card h2 {
    font-size: 23px;
    margin: 0 0 20px;
    color: #006b1e;
}

/* ============================================================
   SELECTED MATERIALS
============================================================ */

.review-item {
    border: 1px solid #e3e8e3;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 60% 15% 20%;
    gap: 15px;
    align-items: center;
}

.review-item strong {
    font-size: 20px;
}

.review-item small {
    display: block;
    color: #66736b;
    font-size: 15px;
    margin-top: 5px;
}

.review-item input {
    width: 100%;
    border: 1px solid #b9c7bd;
    border-radius: 6px;
    padding: 9px;
}

/* ============================================================
   REMOVE MATERIAL BUTTON
============================================================ */

.remove-material {    
    background: #a02929;
    color: #fff;
    border: 1px solid #dfbcbc;
    border-radius: 7px;
    padding: 9px 12px;
    cursor: pointer;
    font-weight: bolder;
}

/* ============================================================
   CART SUMMARY
============================================================ */

.cart-review-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* ============================================================
   NAVIGATION LINKS
============================================================ */

.back-link {
    color: #ffc000;
    text-decoration: none;
    font-weight: 800;
}

.back-link.dark {
    color: #006b1e;
}

/* ============================================================
   CONTACT FORM
============================================================ */

#rfqForm label {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

#rfqForm input,
#rfqForm textarea {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 5px;
    border: 1px solid #c6d1c8;
    border-radius: 7px;
    font: inherit;
    font-weight: 400;
}

/* ============================================================
   FORM FOCUS
============================================================ */

#rfqForm input:focus,
#rfqForm textarea:focus {
    outline: 2px solid #ffc000;
}

/* ============================================================
   CUSTOMER NOTICE
============================================================ */

.fine-print {
    font-size: 15px;
    color: #57665b;
}

/* ============================================================
   HONEYPOT
============================================================ */

.hp {
    position: absolute;
    left: -9999px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   STATUS MESSAGES
============================================================ */

#submitStatus,
#cartStatus {
    font-size: 17px;
}

#submitStatus.error,
#cartStatus.error {
    color: #b02b2b;
}

#submitStatus.success {
    color: #006b1e;
    font-weight: 800;
}

/* ============================================================
   RESPONSIVE - TABLETS
============================================================ */

@media (max-width: 900px) {

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-heading h1 {
        font-size: 28px;
    }

}

/* ============================================================
   RESPONSIVE - MOBILE
============================================================ */

@media (max-width: 580px) {

    .review-item {
        grid-template-columns: 1fr auto;
    }

    .review-item > div:nth-child(2) {
        grid-column: 1;
    }

    .checkout-card {
        padding: 15px;
    }

}

/* ============================================================
   REAL-TIME FORM VALIDATION
============================================================ */


#rfqForm input.field-valid {
border-color: #00781f;
background-color: #f5fff7;
}

#rfqForm input.field-invalid {
border-color: #c62828;
background-color: #fff8f8;
}

#rfqForm input.field-valid:focus {
outline: 2px solid #00781f;
}

#rfqForm input.field-invalid:focus {
outline: 2px solid #c62828;
}

.field-validation-message {
display: block;
margin-top: 5px;
font-size: 13px;
font-weight: 600;
min-height: 16px;
}

.field-validation-message.valid {
color: #00781f;
}

.field-validation-message.invalid {
color: #c62828;
}