/* /order — cash on delivery order form. Shared look in ../pages.css. */

/* Hero: text + the card the parent will receive */
.order-hero { display: grid; gap: 8px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 4px 14px; border-radius: 30px; background: var(--paper); font-size: 13px; font-weight: 800; box-shadow: 0 6px 14px rgba(60,40,0,0.10); }
.chips b { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); font-size: 11px; margin-top: -2px; }
.hero-card { position: relative; max-width: 330px; width: 86%; margin: 14px auto 0; }
.hero-card img { position: relative; display: block; width: 100%; height: auto; border-radius: 3.3% / 5.5%; transform: rotate(-4deg); box-shadow: 0 22px 40px rgba(23,76,118,0.30); transition: opacity 0.25s; }
.hero-glow { position: absolute; inset: -14% -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,0.9), rgba(255,240,190,0.5) 50%, rgba(255,232,143,0) 100%); }
.hero-card .gs { z-index: 2; }

/* How it works */
.how { max-width: 640px; margin: 18px auto 0; padding: 0 16px; }
.how-title { font: 800 22px/1.3 var(--title-font); text-align: center; margin-bottom: 10px; }
.how-steps { list-style: none; display: grid; gap: 8px; }
.how-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 10px 14px; border-radius: 18px; background: rgba(255,253,247,0.85); border: 1.5px solid rgba(42,111,176,0.10); }
.how-steps .n { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #FFFFFF; font: 800 19px/1 var(--title-font); padding-top: 3px; box-shadow: 0 3px 0 var(--blue-700); }
.how-steps b { font-size: 15.5px; color: var(--ink); }
.how-steps span:last-child { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.how-steps bdi { font-weight: 800; color: var(--blue-700); }

/* Form */
.order-main { max-width: 640px; padding-top: 20px; }
fieldset { border: 0; min-width: 0; }
legend.label { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); margin-bottom: 8px; padding: 0; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.sec-title + .field { margin-top: 0; }
.sec-title .n { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #FFE88F, #F9C53A 55%, #E0A81E); font: 800 17px/1 var(--title-font); padding-top: 3px; box-shadow: 0 3px 0 rgba(219,162,26,0.6); }
.sec-title h2 { font: 800 21px/1.3 var(--title-font); color: var(--ink); }
.field + .sec-title { margin-top: 26px; padding-top: 22px; border-top: 2px dashed rgba(31,58,95,0.10); }

/* Plan cards */
.plans .box { gap: 12px; }
.plans .txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.plans .txt b { font: 800 17px/1.3 var(--title-font); color: var(--ink); }
.plans .txt small { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.plans .price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 1px; }
.plans .price s { font-size: 13px; font-weight: 700; color: rgba(31,58,95,0.45); }
.plans .price b { font: 800 23px/1.15 var(--title-font); color: var(--blue); white-space: nowrap; }
.plans .price b small { font: 800 13px 'Almarai', sans-serif; color: var(--ink-2); }

/* Delivery choice */
.choice-row.two .txt { display: flex; flex-direction: column; line-height: 1.35; }
.choice-row.two .txt b { font-size: 15.5px; color: var(--ink); }
.choice-row.two .txt small { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.choice .ico-disc { width: 42px; height: 42px; }

/* Delivery office list: NOEST's names and addresses (Latin letters) */
.offices .box { min-height: 0; padding: 10px 14px; }
.offices .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.offices .txt b, .offices .txt small { text-align: right; overflow-wrap: anywhere; }
.offices .txt b { font-size: 15px; color: var(--ink); }
.offices .txt small { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
#f-office .hint { margin: 0 0 8px; }
#f-office .err { margin: -2px 0 8px; }
#f-office .hint:empty { display: none; }
#placesError { margin: 0 0 14px; }
.places-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.places-actions .btn { min-height: 46px; font-size: 15px; flex: 1 1 140px; }
.msg a.btn { color: #FFFFFF; }   /* buttons inside a red message keep their white text */

/* Summary + button */
.summary { margin: 22px 0 18px; padding: 16px; border-radius: 20px; background: var(--yellow-soft); border: 2px solid rgba(219,162,26,0.35); }
.summary-title { font: 800 18px/1.3 var(--title-font); margin-bottom: 8px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1.5px dashed rgba(31,58,95,0.12); font-size: 14.5px; }
.summary .row span { color: var(--ink-2); font-weight: 700; }
.summary .row b { color: var(--ink); text-align: left; }
.summary .row.total { border-bottom: 0; padding-top: 8px; font-size: 16px; }
.summary .row.total span { color: var(--ink); font-weight: 800; }
.summary .row.total b { color: var(--blue-700); font-size: 18px; }
.btn-order { min-height: 62px; font-size: 19px; }
.btn-order svg { width: 28px; height: 28px; }
.after-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 700; }

/* Confirmation screen */
.sent { text-align: center; overflow: hidden; padding-top: 30px; }
.sent-badge {
    width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--blue-grad); color: #FFFFFF; box-shadow: 0 0 0 8px rgba(249,197,58,0.45), 0 14px 28px rgba(31,90,149,0.3);
    animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sent-badge svg { width: 46px; height: 46px; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sent-title { font: 800 32px/1.25 var(--title-font); color: var(--ink); margin-bottom: 8px; outline: none; }
.sent-call { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.7; margin-bottom: 8px; }
.sent-call bdi, .sent-id bdi { color: var(--blue-700); }
.sent-id { font-size: 14.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.sent-list { text-align: right; margin: 14px 0 16px; padding: 12px 16px; border-radius: 18px; background: var(--yellow-soft); }
.sent-list div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1.5px dashed rgba(31,58,95,0.12); font-size: 14px; }
.sent-list div:last-child { border-bottom: 0; }
.sent-list dt { color: var(--ink-2); font-weight: 700; flex: none; }
.sent-list dd { color: var(--ink); font-weight: 800; text-align: left; }
.sent-next { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 16px; }
#sendError { margin-top: 12px; }
#sendError .btn { margin-top: 10px; min-height: 48px; font-size: 15px; }
.field select:disabled { background-color: #F6F2E8; color: rgba(31,58,95,0.45); cursor: not-allowed; }
.btn-order svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .sent-badge { animation: none; } }

@media (min-width: 760px) {
    .how-steps { grid-template-columns: repeat(3, 1fr); }
    .how-steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 4px; padding: 16px 12px; }
    .how-steps .n { grid-row: auto; }
    .choice-row.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .order-hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 30px; text-align: right; padding-top: 30px; }
    .order-hero .lead { margin: 0; }
    .order-hero .chips { justify-content: flex-start; }
    .hero-card { width: 100%; max-width: 400px; margin: 0 auto; }
}
@media (min-width: 760px) { .how { max-width: 820px; } }
.field > label .opt { font-weight: 700; font-size: 13px; color: var(--muted); }
