/* Variation Style 14 (resources/views/landing/layouts/form9.blade.php). Every rule is under .form9. */
.form9 {
    --f9-ink: #172033; --f9-muted: #697586; --f9-line: #e7eaf0; --f9-orange: #f06423; --f9-orange-dark: #d94f12;
    --f9-orange-pale: #fff0e5; --f9-green: #087443; --f9-green-pale: #e4f8ed;
    max-width: 980px; margin: 0 auto; padding: 0 16px; color: var(--f9-ink);
    font-family: Arial, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
}
.form9 *, .form9 *::before, .form9 *::after { box-sizing: border-box; }
.form9 .f9-card { background: #fff; border: 1px solid var(--f9-line); border-top: 5px solid var(--f9-orange); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 34px rgba(28, 42, 67, .08); }
.form9 .f9-top { padding: 22px 26px; background: linear-gradient(110deg, #ffe3ce 0%, #fff4ec 42%, #e6f1ff 100%); border-bottom: 1px solid var(--f9-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form9 .f9-h1 { font-size: 24px; margin: 0 0 4px; font-weight: 800; line-height: 1.3; color: var(--f9-ink); }
.form9 .f9-top p { margin: 0; color: var(--f9-muted); font-size: 13px; }
.form9 .f9-safe { background: var(--f9-green-pale); color: var(--f9-green); padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.form9 .f9-content { display: grid; grid-template-columns: 1.05fr .95fr; }
.form9 .f9-customer { padding: 24px 26px; }
.form9 .f9-order { padding: 24px; background: linear-gradient(180deg, #f2f7ff 0%, #fff8f1 100%); border-left: 1px solid var(--f9-line); }
.form9 .f9-heading { font-size: 17px; font-weight: 800; margin: 0 0 15px; display: flex; align-items: center; gap: 9px; color: var(--f9-ink); }
.form9 .f9-heading-gap { margin-top: 24px; }
.form9 .f9-bubble { width: 27px; height: 27px; border-radius: 9px; background: linear-gradient(145deg, #ffdfc8, #fff0e5); color: var(--f9-orange); display: grid; place-items: center; font-size: 14px; flex: none; }

/* product list: full width above the two columns; 2 per row (1 on phones) */
.form9 .f9-products { padding: 22px 26px; border-bottom: 1px solid var(--f9-line); background: #fff; }
.form9 .f9-list { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.form9 .f9-item { border: 1.5px solid var(--f9-line); border-radius: 13px; padding: 11px 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; outline: none; }
.form9 .f9-item:hover { border-color: #f2b18d; }
.form9 .f9-item:focus-visible { box-shadow: 0 0 0 3px rgba(240, 100, 35, .2); }
.form9 .f9-item.active { border-color: var(--f9-orange); background: linear-gradient(110deg, #fff 0%, #fffaf5 100%); box-shadow: 0 4px 14px rgba(240, 100, 35, .12); }
.form9 .f9-item.is-loading { opacity: .6; }
.form9 .f9-item-row { display: flex; align-items: center; gap: 11px; }
.form9 .f9-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #c9cfd8; display: grid; place-items: center; }
.form9 .f9-item.active .f9-radio { border-color: var(--f9-orange); }
.form9 .f9-item.active .f9-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--f9-orange); }
.form9 .f9-item-img { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; background: #f4f7fb; }
.form9 .f9-item-info { flex: 1; min-width: 0; }
.form9 .f9-item-name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.form9 .f9-item-label { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--f9-orange-pale); color: var(--f9-orange-dark); font-size: 11px; font-weight: 700; }
.form9 .f9-item-price { text-align: right; white-space: nowrap; }
.form9 .f9-item-price strong { display: block; font-size: 15px; font-weight: 800; }
.form9 .f9-item-price del { font-size: 12px; color: #9aa4b2; }
.form9 .f9-attr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.form9 .f9-attr-name { font-size: 12px; color: var(--f9-muted); font-weight: 700; }
.form9 .f9-chip { position: relative; padding: 4px 11px; border: 1.5px solid var(--f9-line); border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.form9 .f9-chip input { position: absolute; opacity: 0; pointer-events: none; }
.form9 .f9-chip.active { border-color: var(--f9-orange); background: var(--f9-orange-pale); color: var(--f9-orange-dark); }

/* customer fields (form-inputs.blade.php markup) */
.form9 .f9-fields .mb-4 { margin-bottom: 11px; }
.form9 .f9-fields label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--f9-ink); }
.form9 .f9-fields input:not([type="hidden"]):not([type="radio"]), .form9 .f9-fields textarea, .form9 .f9-fields select {
    width: 100%; border: 1.5px solid #f2b18d; border-radius: 12px; padding: 12px 13px; font: inherit; font-size: 14px; color: var(--f9-ink); background-color: #fff; outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.form9 .f9-fields input:focus, .form9 .f9-fields textarea:focus, .form9 .f9-fields select:focus { border-color: var(--f9-orange) !important; box-shadow: 0 0 0 3px rgba(240, 100, 35, .14); }
.form9 .f9-fields input::placeholder, .form9 .f9-fields textarea::placeholder { color: #9aa4b2; }

/* product badges (Settings > Delivery type landing): discount top left (red), free delivery top right
   (green), own Badge text top right (orange). Soft glow pulse + a light shine sweep; still for reduced motion. */
.form9 .f9-item { position: relative; }
.form9 .f9-item.has-badge { margin-top: 12px; padding-top: 18px; }
.form9 .f9-badge {
    position: absolute; top: -12px; z-index: 2; max-width: calc(50% - 14px); overflow: hidden;
    padding: 3px 11px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .75);
    font-size: 12px; font-weight: 800; line-height: 1.4; color: #fff; white-space: nowrap; text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
.form9 .f9-badge[hidden] { display: none; }
.form9 .f9-badge::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: f9-shine 3.2s ease-in-out infinite; pointer-events: none;
}
.form9 .f9-badge-off {
    left: 14px; background: linear-gradient(135deg, #ff4d4d 0%, #e11d48 55%, #be123c 100%);
    --f9-glow: 225, 29, 72; animation: f9-glow 2.2s ease-in-out infinite;
}
.form9 .f9-badge-free {
    right: 14px; background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #087443 100%);
    --f9-glow: 22, 163, 74; animation: f9-glow 2.2s ease-in-out infinite 1.1s;
}
.form9 .f9-badge-free.is-custom { background: linear-gradient(135deg, #ffb020 0%, #f06423 60%, #d94f12 100%); --f9-glow: 240, 100, 35; }
.form9 .f9-badge-free::after { animation-delay: 1.6s; }
/* the selected card's badges glow a little stronger */
.form9 .f9-item.active .f9-badge { animation-duration: 1.6s; }
@keyframes f9-glow {
    0%, 100% { box-shadow: 0 2px 6px rgba(var(--f9-glow), .25), 0 0 0 0 rgba(var(--f9-glow), .45); }
    50% { box-shadow: 0 2px 10px rgba(var(--f9-glow), .45), 0 0 0 5px rgba(var(--f9-glow), 0); }
}
@keyframes f9-shine {
    0%, 55% { left: -60%; }
    85%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
    .form9 .f9-badge, .form9 .f9-badge::after { animation: none; }
    .form9 .f9-badge { box-shadow: 0 2px 8px rgba(var(--f9-glow), .35); }
}

/* special offers (Landing edit > Special Offer): strip + one card per product, "add" button.
   .so-* classes are read by public/landing/form_style/special_offer.js (adds it to the order + total). */
.form9 .f9-offers { padding: 22px 26px 24px; background: #fff; border-top: 1px solid var(--f9-line); }
.form9 .f9-offer-strip { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px;
    background: linear-gradient(100deg, #fff4d6 0%, #ffe8cc 100%); border: 1px dashed #f5b14c; color: #8a4b00; font-size: 14px; font-weight: 700; }
.form9 .f9-offer-strip span { font-size: 18px; }
.form9 .f9-offer-list { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.form9 .f9-offer { border: 1.5px dashed #f2b18d; border-radius: 13px; padding: 11px 12px; background: #fffaf5; transition: border-color .15s, background .15s, box-shadow .15s; }
.form9 .f9-offer.is-added { border-style: solid; border-color: var(--f9-green); background: #f0fbf4; box-shadow: 0 4px 14px rgba(8, 116, 67, .12); }
.form9 .f9-offer-row { display: flex; align-items: center; gap: 11px; }
.form9 .f9-offer-img { width: 54px; height: 54px; flex: none; border-radius: 10px; object-fit: cover; background: #f4f7fb; }
.form9 .f9-offer-info { flex: 1; min-width: 0; }
.form9 .f9-offer-name { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.form9 .f9-offer-price { margin-top: 3px; display: flex; align-items: baseline; gap: 7px; }
.form9 .f9-offer-price strong { font-size: 15px; font-weight: 800; color: var(--f9-orange-dark); }
.form9 .f9-offer-price del { font-size: 12px; color: #9aa4b2; }
.form9 .f9-offer-price del[hidden] { display: none; }
.form9 .f9-offer-btn { flex: none; border: 0; border-radius: 10px; padding: 9px 13px; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
    background: linear-gradient(100deg, #f04f16 0%, #ff7a24 100%); color: #fff; box-shadow: 0 3px 0 var(--f9-orange-dark); transition: transform .1s, filter .15s; }
.form9 .f9-offer-btn:hover { filter: brightness(1.05); }
.form9 .f9-offer-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--f9-orange-dark); }
.form9 .f9-offer.is-added .f9-offer-btn { background: var(--f9-green); box-shadow: 0 3px 0 #05592f; }
.form9 .f9-offer.is-added .f9-offer-btn::before { content: "✓ "; }
/* variation chips of an offer (special/templates/_variations) */
.form9 .f9-offer .so-variations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.form9 .f9-offer .so-variations[hidden] { display: none; }
.form9 .f9-offer .so-variation-option { position: relative; padding: 4px 11px; border: 1.5px solid var(--f9-line); border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.form9 .f9-offer .so-variation-option input { position: absolute; opacity: 0; pointer-events: none; }
.form9 .f9-offer .so-variation-option.is-active { border-color: var(--f9-orange); background: var(--f9-orange-pale); color: var(--f9-orange-dark); }
/* offer lines special_offer.js adds to the order summary */
.form9 .so-summary { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #f0fbf4; border: 1px solid #c9eed8; }
.form9 .so-summary-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--f9-green); margin-bottom: 6px; }
.form9 .so-summary-item { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px dashed #c9eed8; font-size: 12px; }
.form9 .so-summary-item:first-of-type { border-top: 0; }
.form9 .so-summary-item img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; }
.form9 .so-summary-info { flex: 1; min-width: 0; }
.form9 .so-summary-title { font-weight: 700; color: var(--f9-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form9 .so-summary-variant { color: var(--f9-muted); }
.form9 .so-summary-price { font-weight: 800; white-space: nowrap; }
.form9 .so-summary-remove { width: 24px; height: 24px; flex: none; border: 0; border-radius: 50%; background: #fff; color: #b42318; font-size: 16px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* customer fields (shared form-inputs.blade.php): no labels, icon box on the left, one colour per field */
.form9 .f9-fields .mb-4:has(> .shipping_name) > label,
.form9 .f9-fields .mb-4:has(> .shipping_mobile_number) > label,
.form9 .f9-fields .mb-4:has(> .shipping_address) > label,
.form9 .f9-fields .mb-4:has(> .shipping_email) > label,
.form9 .f9-fields .mb-4:has(> .shipping_note) > label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.form9 .f9-fields .mb-4 { position: relative; }
.form9 #form-inputs.f9-fields input.shipping_name, .form9 #form-inputs.f9-fields input.shipping_mobile_number, .form9 #form-inputs.f9-fields input.shipping_address,
.form9 #form-inputs.f9-fields input.shipping_email, .form9 #form-inputs.f9-fields textarea.shipping_note {
    min-height: 54px; padding: 12px 14px 12px 56px; border-radius: 12px; background-repeat: no-repeat; background-size: 34px 34px; background-position: 10px center; background-color: #fff;
}
.form9 #form-inputs.f9-fields textarea.shipping_note { background-position: 10px 10px; }
.form9 #form-inputs.f9-fields input.shipping_name { border-color: #f2b18d; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><rect width='34' height='34' rx='10' fill='%23fff0e5'/><g transform='translate(7.4 7.4) scale(.8)' fill='none' stroke='%23e85b1b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.5'/><path d='M5 20c.5-4 3-6 7-6s6.5 2 7 6'/></g></svg>"); }
.form9 #form-inputs.f9-fields input.shipping_mobile_number { border-color: #9ac9f5; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><rect width='34' height='34' rx='10' fill='%23eaf4ff'/><g transform='translate(7.4 7.4) scale(.8)' fill='none' stroke='%23287bc3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3H4a1 1 0 0 0-1 1c0 9.4 7.6 17 17 17a1 1 0 0 0 1-1v-3l-5-2-2 2c-3.2-1.4-5.6-3.8-7-7l2-2-2-5Z'/></g></svg>"); }
.form9 #form-inputs.f9-fields input.shipping_address { border-color: #9bd9b6; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><rect width='34' height='34' rx='10' fill='%23e8f8ef'/><g transform='translate(7.4 7.4) scale(.8)' fill='none' stroke='%2316834f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z'/><circle cx='12' cy='9' r='2.3'/></g></svg>"); }
.form9 #form-inputs.f9-fields input.shipping_email { border-color: #cdb8f3; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><rect width='34' height='34' rx='10' fill='%23f3edff'/><g transform='translate(7.4 7.4) scale(.8)' fill='none' stroke='%236d3fd1' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></g></svg>"); }
.form9 #form-inputs.f9-fields textarea.shipping_note { border-color: #cfd6e0; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'><rect width='34' height='34' rx='10' fill='%23f1f4f8'/><g transform='translate(7.4 7.4) scale(.8)' fill='none' stroke='%23536071' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h14v16H5z'/><path d='M8 9h8M8 13h8M8 17h5'/></g></svg>"); }
.form9 #form-inputs.f9-fields input.shipping_mobile_number:focus { border-color: #3989d8 !important; box-shadow: 0 0 0 3px rgba(57, 137, 216, .14); }
.form9 #form-inputs.f9-fields input.shipping_address:focus { border-color: #15945b !important; box-shadow: 0 0 0 3px rgba(21, 148, 91, .14); }
.form9 #form-inputs.f9-fields input.shipping_email:focus { border-color: #6d3fd1 !important; box-shadow: 0 0 0 3px rgba(109, 63, 209, .14); }
.form9 #form-inputs.f9-fields textarea.shipping_note:focus { border-color: #536071 !important; box-shadow: 0 0 0 3px rgba(83, 96, 113, .14); }
.form9 .f9-fields input[type=number]::-webkit-outer-spin-button, .form9 .f9-fields input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form9 .f9-fields input[type=number] { -moz-appearance: textfield; }
.form9 .f9-hint { font-size: 11px; color: var(--f9-muted); padding-left: 4px; margin: -2px 0 12px; }

/* delivery area */
.form9 .f9-areas { display: grid; gap: 8px; margin-top: 6px; }
.form9 .f9-areas-title { font-size: 13px; font-weight: 700; }
.form9 .f9-area { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--f9-line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.form9 .f9-area span { flex: 1; }
.form9 .f9-area input { accent-color: var(--f9-orange); width: 17px; height: 17px; }
.form9 .f9-area:has(input:checked) { border-color: var(--f9-orange); background: var(--f9-orange-pale); }

/* order summary */
.form9 .f9-product { display: flex; align-items: center; gap: 11px; background: linear-gradient(110deg, #fff 0%, #fffaf5 100%); border: 1px solid #f2d9c9; border-radius: 13px; padding: 12px; }
.form9 .f9-thumb { width: 60px; height: 60px; flex: none; border-radius: 11px; object-fit: cover; background: linear-gradient(145deg, #ffd5b5 0%, #ffe8a8 48%, #c9f0d9 100%); }
.form9 .f9-pinfo { flex: 1; min-width: 0; }
.form9 .f9-pname { font-size: 14px; font-weight: 800; line-height: 1.4; }
.form9 .f9-pmeta { font-size: 11px; color: var(--f9-muted); margin-top: 4px; }
.form9 .f9-pmeta:empty { display: none; }
.form9 .f9-pprice { font-weight: 800; font-size: 14px; white-space: nowrap; }
.form9 .f9-qty { display: flex; align-items: center; margin-top: 8px; border: 1px solid #f2c7ad; border-radius: 8px; overflow: hidden; width: max-content; }
.form9 .f9-qty button { width: 29px; height: 27px; border: 0; background: linear-gradient(135deg, #ffe2cf, #fff0e5); color: var(--f9-orange); font-weight: 900; font-size: 17px; cursor: pointer; line-height: 1; }
.form9 .f9-qty button:disabled { opacity: .45; cursor: default; }
.form9 .f9-qty-value { width: 30px; text-align: center; font-size: 13px; font-weight: 800; }
.form9 .f9-rows { padding-top: 12px; margin-top: 13px; border-top: 1px solid var(--f9-line); }
.form9 .f9-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; color: #596579; }
.form9 .f9-row strong { color: var(--f9-ink); }
.form9 .f9-row .f9-delivery.is-free { color: var(--f9-green); }
.form9 .f9-total { border-top: 1px solid var(--f9-line); margin-top: 6px; padding-top: 13px; font-size: 17px; font-weight: 900; color: var(--f9-ink); }
.form9 .f9-total strong { font-size: 21px; }
.form9 .f9-note-delivery { margin-top: 12px; padding: 9px 11px; background: linear-gradient(100deg, #d9f7e7, #eaf8ff); color: var(--f9-green); border-radius: 10px; font-size: 12px; font-weight: 800; }
.form9 .f9-pay { margin: 13px 0; background: #f1f4f8; border-radius: 10px; padding: 10px 11px; font-size: 12px; color: #536071; }
.form9 .f9-submit { display: block; width: 100%; border: 0; border-radius: 12px; padding: 15px 12px; background: linear-gradient(100deg, #f04f16 0%, #ff7a24 52%, #ff9a43 100%); color: #fff; font-size: 17px; font-weight: 900; box-shadow: 0 4px 0 var(--f9-orange-dark), 0 8px 18px rgba(240, 100, 35, .22); cursor: pointer; transition: transform .1s, filter .15s; }
.form9 .f9-submit:hover { filter: brightness(1.04); }
.form9 .f9-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--f9-orange-dark), 0 6px 14px rgba(240, 100, 35, .2); }
.form9 .f9-submit:disabled { opacity: .6; cursor: not-allowed; }
.form9 .f9-foot { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; color: var(--f9-muted); }
#builder_order_form:not(:has(#builder_order_form)) {
    border: none !important;
    padding: 0 !important;
}
@media (max-width: 680px) {
    .form9 { padding: 0 8px; }
    .form9 .f9-card { border-radius: 15px; }
    .form9 .f9-top { padding: 17px; }
    .form9 .f9-content { grid-template-columns: 1fr; }
    .form9 .f9-products { padding: 19px 16px; }
    .form9 .f9-offers { padding: 19px 16px 20px; }
    .form9 .f9-offer-list { grid-template-columns: 1fr; }
    .form9 .f9-offer-btn { padding: 8px 10px; font-size: 12px; }
    .form9 .f9-list { grid-template-columns: 1fr; }
    .form9 .f9-customer { padding: 19px 16px; }
    .form9 .f9-order { padding: 19px 16px; border-left: 0; border-top: 1px solid var(--f9-line); }
    .form9 .f9-h1 { font-size: 21px; }
    .form9 .f9-safe { font-size: 10px; padding: 7px 8px; }
    .form9 .f9-attr { margin-left: 0; }
    .form9 .f9-item-img { width: 46px; height: 46px; }
}
