/* =========================================================
   EcoFeed Solutions – Order page
   Same palette / type / layout language as the other pages
   ========================================================= */

.order-page {
    --green: #4CAF50;
    --green-deep: #2e7d32;
    --gold: #FFD700;
    --cream: #FBF4E4;
    --ink: #111;
    --muted: #4d4d4d;
    --line: #ddd5bf;
    --ease: cubic-bezier(.22, .8, .24, 1);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
}

.order-page *, .order-page *::before, .order-page *::after { box-sizing: border-box; }
.order-page h1, .order-page h2, .order-page p, .order-page ul { margin: 0; padding: 0; }
.order-page ul { list-style: none; }
.order-page .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.order-page :focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Banner ---------- */
.order-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(340px, 52vh, 460px);
    padding: 140px 0 64px;
    color: #fff;
    background: #1d3a21 url('../img/larvae.jpg') center / cover no-repeat;
    border-radius: 0 0 44px 44px;
    overflow: hidden;
}

.order-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 38%),
        linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .15) 100%);
}

.order-header .wrap { position: relative; z-index: 1; width: 100%; }

.order-header h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(42px, 6.6vw, 86px);
    line-height: .98;
    letter-spacing: -.035em;
}

/* ---------- Layout ---------- */
.order-section { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }

.order-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.order-page h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 28px;
}

.alert-error {
    margin-bottom: 28px;
    padding: 16px 22px;
    border-radius: 10px;
    background: #fdecea;
    color: #b71c1c;
    font-weight: 600;
}

/* ---------- Summary ---------- */
.summary { position: sticky; top: 110px; }

.summary-list { border-top: 2px solid var(--ink); }

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.summary-list .k { color: var(--muted); }
.summary-list .v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.summary-list .total .v {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.02em;
}

.summary-note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------- Form ---------- */
.order-form { padding: 44px; border-radius: 14px; background: var(--cream); }
.order-form h2 { margin-bottom: 28px; }

.form-row { display: grid; gap: 20px; margin-bottom: 20px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.product-qty { grid-template-columns: 2fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label { font-weight: 600; font-size: 15px; }

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 0 18px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: 500 16px 'DM Sans', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.order-form input, .order-form select { height: 54px; }
.order-form textarea { padding: 14px 18px; min-height: 110px; resize: vertical; line-height: 1.55; }

.order-form select {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    cursor: pointer;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, .25);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 58px;
    padding: 0 36px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font: 600 17px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

.submit-btn i { font-size: 22px; }
.submit-btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

.form-hint { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .order-grid { grid-template-columns: 1fr; gap: 44px; }
    .summary { position: static; }
}

@media (max-width: 640px) {
    .order-page .wrap { padding: 0 18px; }
    .order-header { min-height: 300px; padding: 110px 0 40px; border-radius: 0 0 28px 28px; }
    .order-form { padding: 28px 20px; }
    .form-row.two, .form-row.product-qty { grid-template-columns: 1fr; }
    .submit-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .order-page * { transition-duration: .01ms !important; }
}