
/* =========================================
   DRIED DELECTABLES
   BACKORDER SUBMISSION
   Forest Green | Warm Cream | Gold | White
========================================= */

/* PAGE */

.backorder-page {
    min-height: 100vh;
    width: 100%;
    padding: 55px 24px 80px;
    background: #f8f4e9;
    color: #343b35;
    box-sizing: border-box;
    overflow-x: hidden;
}

.backorder-page *,
.backorder-page *::before,
.backorder-page *::after {
    box-sizing: border-box;
}

.backorder-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    min-width: 0;
}

/* HEADER */

.backorder-header {
    margin-bottom: 35px;
    text-align: center;
}

.backorder-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: #c9a34a;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.backorder-header h1 {
    margin: 0 0 12px;
    color: #315c43;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1px;
}

.backorder-header p {
    max-width: 550px;
    margin: 0 auto;
    color: #747c74;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* GENERAL CARDS */

.backorder-product-card,
.backorder-form-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e8e6dc;
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(49, 92, 67, 0.045);
}

/* PRODUCT CARD */

.backorder-product-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 27px 30px;
    border-top: 3px solid #c9a34a;
}

.backorder-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
}

.backorder-product-card > .backorder-card-heading {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.backorder-step {
    display: block;
    margin-bottom: 6px;
    color: #a38a4c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.backorder-card-heading h2 {
    margin: 0;
    color: #315c43;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.backorder-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #ead9a7;
    border-radius: 30px;
    background: #fbf6e8;
    color: #856a2d;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.backorder-stock-status::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #c9a34a;
    content: "";
}

/* PRODUCT DETAILS */

.backorder-product-details {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.backorder-product-icon {
    display: flex;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4eadf;
    border-radius: 13px;
    background: #edf2eb;
}

.backorder-product-icon span {
    color: #315c43;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.backorder-product-info {
    flex: 1 1 0;
    min-width: 0;
}

.backorder-product-info h3 {
    margin: 0 0 9px;
    color: #315c43;
    font-size: 1.12rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.backorder-product-info p {
    margin: 4px 0;
    color: #747c74;
    font-size: 0.87rem;
    overflow-wrap: anywhere;
}

.backorder-product-info p strong {
    color: #343b35;
    font-weight: 650;
}

.backorder-product-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
    text-align: right;
    min-width: 0;
}

.backorder-product-price span {
    color: #747c74;
    font-size: 0.78rem;
}

.backorder-product-price strong {
    color: #315c43;
    font-size: 1.15rem;
    font-weight: 750;
    white-space: nowrap;
}

.backorder-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 23px;
    padding: 17px 19px;
    border: 1px solid #eee5cf;
    border-radius: 10px;
    background: #fbf8ef;
    min-width: 0;
}

.backorder-total-row span {
    color: #747c74;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.backorder-total-row strong {
    color: #315c43;
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
}

/* FORM CARD GRID */

.backorder-customer-form {
    width: 100%;
    min-width: 0;
}

.backorder-form-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    min-width: 0;
    align-items: start;
}

.backorder-form-card {
    width: 100%;
    min-width: 0;
    padding: 27px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.backorder-form-card:hover {
    box-shadow: 0 8px 28px rgba(49, 92, 67, 0.075);
}

.backorder-form-card > .backorder-card-heading {
    margin-bottom: 25px;
}

.backorder-heading-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5eadf;
    border-radius: 12px;
    background: #edf2eb;
}

.backorder-heading-icon span {
    color: #315c43;
    font-size: 0.82rem;
    font-weight: 800;
}

.backorder-card-heading > div:last-child {
    min-width: 0;
}

.backorder-card-heading p {
    margin: 6px 0 0;
    color: #858b83;
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* FORM INPUTS */

.backorder-form-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 19px;
}

.backorder-form-group:last-child {
    margin-bottom: 0;
}

.backorder-form-group label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #343b35;
    font-size: 0.87rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.backorder-optional {
    color: #92988e;
    font-size: 0.73rem;
    font-weight: 500;
}

.backorder-form-group input,
.backorder-form-group select,
.backorder-form-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e0e3da;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: #343b35;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.backorder-form-group textarea {
    min-height: 115px;
    resize: vertical;
}

.backorder-form-group input::placeholder,
.backorder-form-group textarea::placeholder {
    color: #a6aaa2;
}

.backorder-form-group input:hover,
.backorder-form-group select:hover,
.backorder-form-group textarea:hover {
    border-color: #c9a34a;
}

.backorder-form-group input:focus,
.backorder-form-group select:focus,
.backorder-form-group textarea:focus {
    border-color: #315c43;
    box-shadow: 0 0 0 3px rgba(49, 92, 67, 0.10);
}

/* DELIVERY FIELDS */

.backorder-form-group[hidden] {
    display: none !important;
}

/* NOTES CARD */

.backorder-notes-card .backorder-form-group {
    margin-bottom: 0;
}

/* CONFIRMATION CARD */

.backorder-confirmation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.backorder-agreement {
    margin-bottom: 23px;
    padding: 17px;
    border: 1px solid #eadfbe;
    border-radius: 10px;
    background: #fbf8ef;
    min-width: 0;
}

.backorder-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #555e54;
    font-size: 0.85rem;
    line-height: 1.65;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.backorder-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: #315c43;
    cursor: pointer;
}

/* SUBMIT BUTTON */

.backorder-submit-button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid #315c43;
    border-radius: 9px;
    background: #315c43;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

.backorder-submit-button span {
    color: #ead9a7;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.backorder-submit-button:hover {
    transform: translateY(-2px);
    border-color: #244632;
    background: #244632;
    box-shadow: 0 6px 15px rgba(49, 92, 67, 0.18);
}

.backorder-submit-button:hover span {
    transform: translateX(4px);
}

.backorder-submit-button:focus-visible {
    outline: 3px solid #c9a34a;
    outline-offset: 3px;
}

/* CANCEL LINK */

.backorder-cancel-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 17px auto 0;
    color: #747c74;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.backorder-cancel-link:hover {
    color: #315c43;
    text-decoration: underline;
}

/* TABLET */

@media (max-width: 800px) {
    .backorder-page {
        padding: 42px 20px 60px;
    }

    .backorder-form-layout {
        gap: 17px;
    }

    .backorder-form-card {
        padding: 22px;
    }

    .backorder-product-card {
        padding: 24px;
    }
}

/* MOBILE */

@media (max-width: 620px) {

    .backorder-page {
        padding: 30px 14px 45px;
    }

    .backorder-container {
        max-width: 100%;
    }

    /* Header */

    .backorder-header {
        margin-bottom: 22px;
    }

    .backorder-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 1.8px;
    }

    .backorder-header h1 {
        font-size: 1.45rem;
        line-height: 1.3;
        letter-spacing: -0.4px;
        overflow-wrap: anywhere;
    }

    .backorder-header p {
        font-size: 0.76rem;
        line-height: 1.5;
    }

    /* Product card */

    .backorder-product-card {
        padding: 17px;
        margin-bottom: 13px;
    }

    .backorder-product-card > .backorder-card-heading {
        flex-wrap: wrap;
        align-items: center;
        gap: 9px;
        margin-bottom: 14px;
    }

    .backorder-step {
        font-size: 0.58rem;
        letter-spacing: 1.1px;
    }

    .backorder-card-heading h2 {
        font-size: 0.94rem;
        line-height: 1.35;
    }

    .backorder-stock-status {
        padding: 6px 9px;
        font-size: 0.62rem;
        white-space: normal;
    }

    .backorder-product-details {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

    .backorder-product-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .backorder-product-icon span {
        font-size: 0.95rem;
    }

    .backorder-product-info {
        min-width: 0;
    }

    .backorder-product-info h3 {
        margin-bottom: 5px;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .backorder-product-info p {
        margin: 3px 0;
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .backorder-product-price {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .backorder-product-price span {
        font-size: 0.68rem;
    }

    .backorder-product-price strong {
        font-size: 0.88rem;
    }

    .backorder-total-row {
        gap: 10px;
        margin-top: 12px;
        padding: 10px 12px;
    }

    .backorder-total-row span {
        font-size: 0.74rem;
    }

    .backorder-total-row strong {
        font-size: 0.95rem;
    }

    /* Form cards: full available width */

    .backorder-form-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .backorder-form-card {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .backorder-form-card > .backorder-card-heading {
        gap: 10px;
        margin-bottom: 13px;
    }

    .backorder-heading-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        border-radius: 10px;
    }

    .backorder-heading-icon span {
        font-size: 0.72rem;
    }

    .backorder-card-heading p {
        margin-top: 4px;
        font-size: 0.69rem;
        line-height: 1.4;
    }

    /* Form fields */

    .backorder-form-group {
        margin-bottom: 11px;
    }

    .backorder-form-group label {
        gap: 5px;
        margin-bottom: 5px;
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .backorder-optional {
        font-size: 0.64rem;
    }

    .backorder-form-group input,
    .backorder-form-group select,
    .backorder-form-group textarea {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .backorder-form-group textarea {
        min-height: 75px;
    }

    /* Confirmation */

    .backorder-agreement {
        margin-bottom: 13px;
        padding: 11px;
    }

    .backorder-agreement label {
        gap: 9px;
        font-size: 0.72rem;
        line-height: 1.5;
    }

    .backorder-agreement input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .backorder-submit-button {
        min-height: 42px;
        padding: 9px 12px;
        gap: 8px;
        font-size: 0.82rem;
    }

    .backorder-submit-button span {
        font-size: 1.05rem;
    }

    .backorder-cancel-link {
        margin-top: 10px;
        font-size: 0.73rem;
    }
}

/* SMALL PHONES */

@media (max-width: 380px) {

    .backorder-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .backorder-header h1 {
        font-size: 1.35rem;
    }

    .backorder-header p {
        font-size: 0.72rem;
    }

    .backorder-product-card {
        padding: 14px;
    }

    .backorder-form-card {
        padding: 14px;
    }

    .backorder-product-details {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 9px;
    }

    .backorder-product-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .backorder-product-info h3 {
        font-size: 0.8rem;
    }

    .backorder-product-info p {
        font-size: 0.69rem;
    }

    .backorder-card-heading h2 {
        font-size: 0.88rem;
    }

    .backorder-stock-status {
        font-size: 0.59rem;
    }

    .backorder-form-group label {
        font-size: 0.73rem;
    }
}
