/* Smart enquiry form (two steps + call-back time). Component styles are identical on all three
   property sites; only the brand tokens in the first rule differ. Markup: scripts/tns_smart_enquiry.py.
   Trade Nest Stays tokens: blue-base rgb(0 58 92), on-surface rgb(25 28 30), surface rgb(247 249 251),
   Plus Jakarta Sans + Inter (styles.css). */
.se {
  --se-ink: #191c1e; --se-ink-60: rgba(25,28,30,.7); --se-ink-40: rgba(25,28,30,.5);
  --se-accent: #005082; --se-accent-ink: #003a5c; --se-btn: #003a5c; --se-btn-ink: #fff;
  --se-field: #f7f9fb; --se-card: #fff; --se-line: #dfe3e8; --se-radius: 14px;
  --se-display: "Plus Jakarta Sans", system-ui, sans-serif; --se-body: "Inter", system-ui, sans-serif;
}

.se {
  background: var(--se-card); color: var(--se-ink); border-radius: var(--se-radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 24px 60px -32px rgba(0,43,69,.3);
  border: 1px solid var(--se-line); display: flex; flex-direction: column; gap: 1.1rem;
  font-family: var(--se-body); text-align: left; position: relative;
}
.se *, .se *::before, .se *::after { box-sizing: border-box; }
.se-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.se-head { display: flex; flex-direction: column; gap: .5rem; }
.se-title { margin: 0; font-family: var(--se-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--se-ink); }
.se-status { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--se-ink-60); }
.se-track { height: 4px; border-radius: 99px; background: var(--se-field); overflow: hidden; }
.se-track span { display: block; height: 100%; width: 50%; background: var(--se-accent); border-radius: 99px; transition: width .35s ease; }

.se-step { display: flex; flex-direction: column; gap: 1rem; }
.se-step + .se-step { padding-top: 1.1rem; border-top: 1px solid var(--se-line); }
.se--js .se-step + .se-step { padding-top: 0; border-top: 0; }
.se--js .se-step:not(.is-active) { display: none; }
.se-js-only { display: none !important; }
.se--js .se-js-only { display: revert !important; }
.se--js .se-track.se-js-only { display: block !important; }

.se-routes { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.se-routes legend { width: 100%; padding: 0; margin-bottom: .6rem; font-family: var(--se-display); font-weight: 500; font-size: .85rem; color: var(--se-ink-60); }
.se-pill { position: relative; display: inline-flex; }
.se-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.se-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border-radius: 99px;
  border: 1.5px solid var(--se-line); background: var(--se-card); color: var(--se-ink);
  font-family: var(--se-display); font-weight: 500; font-size: .9rem; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.se-pill:hover span { border-color: var(--se-accent); }
.se-pill input:checked + span { background: var(--se-btn); border-color: var(--se-btn); color: var(--se-btn-ink); }
.se-pill input:focus-visible + span { outline: 2px solid var(--se-accent); outline-offset: 3px; }

.se-when { margin: 0; padding: .8rem 1rem; border-radius: .8rem; background: var(--se-field); font-size: .86rem; line-height: 1.5; color: var(--se-ink-60); }
.se--js .se-when { display: none; }
.se--js .se-when.is-on { display: block; }

.se-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.se label { display: flex; flex-direction: column; gap: .4rem; font-family: var(--se-display); font-weight: 500; font-size: .8rem; color: var(--se-ink-60); }
.se input[type="text"], .se input[type="email"], .se input[type="tel"], .se select, .se textarea {
  width: 100%; min-height: 46px; background: var(--se-field); border: 1px solid transparent; border-radius: .8rem;
  padding: .75rem .95rem; color: var(--se-ink); font-family: var(--se-body); font-size: 1rem; line-height: 1.3;
  transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.se select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23526079' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; padding-right: 2.4rem;
}
.se textarea { min-height: 88px; resize: vertical; }
.se input::placeholder, .se textarea::placeholder { color: var(--se-ink-40); }
.se input:focus, .se select:focus, .se textarea:focus { outline: none; border-color: var(--se-accent); background: var(--se-card); }
.se input:user-invalid, .se select:user-invalid { border-color: #c2410c; }

.se-check { flex-direction: row !important; align-items: flex-start; gap: .65rem !important; font-family: var(--se-body) !important; font-weight: 400 !important; font-size: .85rem !important; line-height: 1.45; cursor: pointer; }
.se-check input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--se-btn); }

.se-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.se-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .85rem 1.5rem; border: 0; border-radius: 99px; background: var(--se-btn); color: var(--se-btn-ink);
  font-family: var(--se-display); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.se-step > .se-btn { align-self: flex-start; }
.se-btn:hover { transform: translateY(-1px); }
.se-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.se-back { min-height: 44px; padding: .5rem .2rem; border: 0; background: none; color: var(--se-accent-ink); font-family: var(--se-display); font-weight: 500; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.se-privacy { margin: 0; font-size: .76rem; line-height: 1.5; color: var(--se-ink-60); }
.se-privacy a { color: var(--se-accent-ink); }

@media (max-width: 640px) {
  .se-grid { grid-template-columns: 1fr; }
  .se-actions { flex-direction: column-reverse; align-items: stretch; }
  .se-actions .se-btn, .se-step > .se-btn { width: 100%; }
  .se-back { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .se-track span, .se-btn, .se-pill span { transition: none; }
}

/* Band layout for the TNS generators (styles.css is compiled Tailwind, so new layout lives here). */
.se-band-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .se-band-grid { grid-template-columns: 1fr 1.05fr; } }
.se-band-narrow { max-width: 44rem; margin: 0 auto; }
