/* forms.css — shared form controls (used by apply / find-university / chat) */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field__hint { font-size: var(--fs-xs); font-weight: 400; color: var(--color-text-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); font-size: 16px; /* 16px stops iOS zoom-on-focus */ transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30,58,138,.14); }
.field-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }

/* ================= NUMBER BOXES (NEET score, PCB %, age) =================
   js/main.js keeps digits only and the range in data-range="min-max". The note under the box shows
   only when the number is outside the range. */
.field__note { margin-top: -.1rem; font-size: var(--fs-xs); font-weight: 600; color: var(--color-status-ink); }
.field__note:empty { display: none; }
.field input.is-out { border-color: var(--color-status); box-shadow: 0 0 0 3px var(--color-status-wash); }

/* ================= INDIAN MOBILE NUMBER (every phone box on the site) =================
   Markup:  <div class="phone-field">
              <span class="phone-cc" aria-hidden="true"><i class="phone-cc__flag"></i>+91</span>
              <input type="tel" data-phone ...>
              <svg class="icon phone-field__ok" aria-hidden="true"><use href="#i-check"></use></svg>
            </div>
   Add  phone-field--ondark  on navy backgrounds. js/main.js keeps it to 10 digits starting 6-9 and adds
   .is-valid (teal tick) once the number is complete. The +91 chip (.phone-cc) can also sit inside other boxes. */
.phone-cc { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; height: 30px; padding: 0 .55rem 0 .45rem; border-radius: 8px; background: var(--color-wash); font-size: .95rem; font-weight: 800; letter-spacing: .01em; color: var(--color-primary); font-variant-numeric: tabular-nums; user-select: none; }
.phone-cc__flag { position: relative; width: 18px; height: 12px; flex-shrink: 0; border-radius: 2.5px; background: linear-gradient(var(--flag-saffron) 0 33.4%, var(--flag-white) 33.4% 66.6%, var(--flag-green) 66.6%); box-shadow: 0 0 0 1px rgba(11,31,77,.12); overflow: hidden; }
.phone-cc__flag::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3.6px; height: 3.6px; margin: -1.8px 0 0 -1.8px; border-radius: 50%; border: .8px solid var(--flag-chakra); }

.phone-field { position: relative; display: flex; align-items: center; gap: .55rem; width: 100%; min-width: 0; min-height: 48px; padding: 0 .5rem 0 .45rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background-color var(--speed) var(--ease); }
.phone-field:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30,58,138,.14); }
.phone-field input[data-phone][type] { flex: 1; width: auto; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 16px; font-weight: 700; letter-spacing: .04em; color: var(--color-text); font-variant-numeric: tabular-nums; }
.phone-field input[data-phone][type]:focus { outline: none; border: 0; background: none; box-shadow: none; }
.phone-field input::placeholder { font-weight: 500; letter-spacing: .02em; color: var(--color-text-muted); opacity: .7; }
.phone-field__ok { flex-shrink: 0; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--color-status); color: var(--color-text-inverse); stroke-width: 3.2; opacity: 0; transform: scale(.4); transition: opacity var(--speed) var(--ease), transform .3s cubic-bezier(.3,1.6,.5,1); }
.phone-field.is-valid .phone-field__ok { opacity: 1; transform: scale(1); }
.phone-field.is-valid { border-color: var(--color-status); }
.phone-field--sm { min-height: 42px; }
.phone-field--sm input[data-phone][type] { min-height: 38px; }
.phone-field--sm .phone-cc { height: 26px; font-size: .85rem; }
/* on navy (call-back bands, university fee-sheet card) */
.phone-field--ondark { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.phone-field--ondark:focus-within { border-color: var(--color-text-inverse); background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.phone-field--ondark .phone-cc { background: rgba(255,255,255,.14); color: var(--color-text-inverse); }
.phone-field--ondark input[data-phone][type] { color: var(--color-text-inverse); }
.phone-field--ondark input::placeholder { color: var(--color-text-inverse-muted); opacity: .8; }
.phone-field--ondark.is-valid { border-color: var(--color-active); }
.phone-field--ondark .phone-field__ok { background: var(--color-active); color: var(--color-primary-ink); }
