/* Inner screens (request form + "Request sent") with the same rich look as the home page. */

/* ---- Layout: form + "How it works" side panel on wide screens ---- */
.form-layout { display: grid; gap: 22px; }
@media (min-width: 1100px) {
  #view-form.view.narrow { max-width: 1160px; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
  .form-side { position: sticky; top: 24px; }
  /* 'clip' (not 'hidden') so the side panel can stay in view while scrolling. */
  .home-main { overflow: clip; }
}

/* ---- Photo banner at the top of the form ---- */
#view-form .form-card { overflow: hidden; }
#view-form .form-head {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 250px; margin: -22px -18px 18px; padding: 26px 20px 22px;
  background: linear-gradient(135deg, #0a0d2d, #20265d 55%, #4a1d3c); color: #fff;
}
#view-form .form-head .form-pic {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 0; box-shadow: none; object-fit: cover; animation: fhZoom 14s ease-out both;
}
#view-form .form-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 13, 45, .96) 0%, rgba(10, 13, 45, .72) 48%, rgba(10, 13, 45, .18) 100%);
}
@media (min-width: 640px) {
  #view-form .form-head { min-height: 270px; margin: -30px -34px 22px; padding: 34px 34px 28px; align-items: center; }
  #view-form .form-head::after {
    background: linear-gradient(90deg, rgba(10, 13, 45, .97) 0%, rgba(14, 18, 58, .86) 42%, rgba(23, 27, 74, .25) 78%, rgba(23, 27, 74, .05) 100%);
  }
  #view-form .fh-text { max-width: 66%; }
}
.fh-text { display: grid; gap: 8px; }
.fh-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin: 0; padding: 5px 12px 5px 9px;
  border: 1px solid rgba(227, 196, 122, .45); border-radius: 999px; background: rgba(10, 13, 45, .45);
  color: var(--sun-400); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.fh-eyebrow .icon { width: 15px; height: 15px; }
#view-form .form-head .view-title { margin: 2px 0 0; color: #fff; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
#view-form .form-head .view-help { margin: 0; color: rgba(255, 255, 255, .86); font-size: 1rem; }
.fh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.fh-chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px);
}
.fh-chips .icon { width: 15px; height: 15px; color: #86efac; }
@media (max-width: 420px) { .fh-chips { gap: 6px; } .fh-chips li { padding: 5px 9px; font-size: .76rem; } }
@keyframes fhZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Progress line now sits just under the banner. */
#view-form .fp { margin: 0 0 18px; }

/* ---- Numbered parts: 1 What you need, 2 A few details, 3 About you ---- */
.fsec { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-900); }
.fsec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.fsec-n {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sun-400), var(--sun-600)); color: var(--brand-950);
  font-family: var(--font); font-size: 1rem; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(184, 145, 58, .8);
}
#req-form > .fsec:first-of-type { margin-top: 0; }
#view-form .you-box {
  margin-top: 8px; padding: 18px 16px 20px; border: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: 22px; background: linear-gradient(180deg, #fbf7ef, #fff 70%);
}
#view-form .you-box > .fsec { margin-top: 0; }
@media (min-width: 640px) { #view-form .you-box { padding: 22px 22px 24px; } }

/* ---- Side panel ---- */
.fs-card { padding: 22px 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.fs-how { background: linear-gradient(160deg, #171b4a, #2b3170 60%, #4a1d3c); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.fs-eyebrow { margin: 0 0 12px; color: var(--sun-400); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fs-steps { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.fs-steps::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--sun-400), rgba(227, 196, 122, .1)); }
.fs-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.fs-ic {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(227, 196, 122, .5); color: var(--sun-400);
}
.fs-steps li:first-child .fs-ic { background: linear-gradient(135deg, var(--sun-400), var(--sun-600)); color: var(--brand-950); border-color: transparent; }
.fs-ic .icon { width: 20px; height: 20px; }
.fs-steps b { display: block; font-size: 1rem; }
.fs-steps small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .74); font-size: .86rem; line-height: 1.45; }
.fs-trust { display: grid; gap: 14px; margin: 16px 0 0; list-style: none; }
.fs-trust li { display: flex; gap: 12px; align-items: flex-start; }
.fs-trust li > .icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: #e9f7ef; color: #15803d; }
.fs-trust span { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.fs-trust b { display: block; color: var(--ink); font-size: .95rem; }

/* ---- "Request sent" screen ---- */
#view-done .form-card { overflow: hidden; }
#view-done .done-hero { overflow: hidden; }
#view-done .done-hero {
  position: relative; isolation: isolate; justify-self: stretch; display: grid; justify-items: center; gap: 10px;
  margin: -22px -18px 6px; padding: 34px 20px 30px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #2b3170 0%, #171b4a 55%, #0a0d2d 100%);
}
#view-done .done-hero::before, #view-done .done-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; }
#view-done .done-hero::before { width: 220px; height: 220px; left: -60px; top: -70px; background: #d4af5a; }
#view-done .done-hero::after { width: 240px; height: 240px; right: -70px; bottom: -110px; background: #9a2f4d; }
@media (min-width: 640px) { #view-done .done-hero { margin: -30px -34px 8px; padding: 42px 34px 36px; } }
#view-done .done-hero .success-check { width: 96px; height: 96px; filter: drop-shadow(0 10px 24px rgba(212, 175, 90, .45)); }
#view-done .done-hero .success-check circle { fill: var(--sun-500); }
#view-done .done-hero .success-check path { stroke: var(--brand-950); }
#view-done .done-hero .view-title { margin: 4px 0 0; color: #fff; font-size: clamp(2rem, 6vw, 2.7rem); }
#view-done .done-hero .success-others { margin: 0; max-width: 34rem; color: var(--sun-400) !important; }
.done-next-line { font-weight: 600; color: var(--ink); }

.done-steps { justify-self: stretch; max-width: 460px; width: 100%; margin: 6px auto 0; padding: 18px 18px 6px; border: 1px solid var(--line); border-radius: 22px; background: #fbf7ef; text-align: left; }
.done-steps .fs-eyebrow { color: var(--brand-600); }
.done-steps ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.done-steps li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; }
.done-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; background: var(--line-2); }
.done-steps .dn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: #fff; border: 1px solid var(--line-2); color: var(--brand-800); }
.done-steps .dn .icon { width: 19px; height: 19px; }
.done-steps li.now .dn { background: linear-gradient(135deg, #22c55e, #15803d); border-color: transparent; color: #fff; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: dnPulse 2s ease-out infinite; }
.done-steps b { display: block; font-size: .98rem; color: var(--ink); }
.done-steps small { display: block; color: var(--ink-2); font-size: .85rem; }
.done-steps li.now small { color: #15803d; font-weight: 700; }
@keyframes dnPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

@media (prefers-reduced-motion: reduce) {
  #view-form .form-head .form-pic, .done-steps li.now .dn { animation: none; }
}

/* "Are you a dealer? Join free" line under the form photo. Small, so buyers can ignore it. */
#view-form .fh-pro {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 11px 14px;
  border: 1px dashed #d9c08a; border-radius: 14px; background: #fbf5e6;
  color: var(--ink); font-size: .9rem; line-height: 1.3; text-decoration: none;
}
#view-form .fh-pro.hidden { display: none; }
#view-form .fh-pro > .icon { flex: none; width: 20px; height: 20px; color: #b8913a; }
#view-form .fh-pro > span { flex: 1; min-width: 0; }
#view-form .fh-pro b { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--brand-900); white-space: nowrap; }
#view-form .fh-pro b .icon { width: 15px; height: 15px; }
#view-form .fh-pro:hover b { text-decoration: underline; }
#view-form .fh-pro:focus-visible { outline: 3px solid #d4af5a; outline-offset: 2px; }

/* Choices with a Kannada name: English on top, Kannada smaller underneath (fertilizer). */
#req-form .pill-opt.pill-kn span { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 52px; padding: 6px 16px; line-height: 1.2; text-align: left; }
#req-form .pill-opt.pill-kn input:checked + span::before { position: absolute; top: 6px; right: 10px; margin: 0; }
#req-form .pill-opt.pill-kn input:checked + span { padding-right: 28px; }
#req-form .pill-opt .kn, #req-form .choice-opt .kn, #req-form label .kn {
  display: block; margin-top: 2px; font-family: "Noto Sans Kannada", "Kannada Sangam MN", "Tunga", sans-serif;
  font-size: .8rem; font-weight: 600; opacity: .78;
}
#req-form .opt-kn { display: block; margin-top: 2px; font-family: "Noto Sans Kannada", "Kannada Sangam MN", "Tunga", sans-serif; font-size: .82rem; font-weight: 600; color: #7b1e3a; }
/* Item choice (e.g. Chemical / Organic fertilizer): Kannada name under the English one. */
#choice-field .pill-opt span:has(> .kn) { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; text-align: left; }
