/* Garry & Associates feedback — tokens copied from garryassociates.co.in */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9FAFB;
  --color-bg-dark: #0F172A;
  --color-text-primary: #1F2937;
  --color-text-secondary: #6B7280;
  --color-text-tertiary: #9CA3AF;
  --color-accent: #1E3A8A;
  --color-button: #1D4ED8;
  --color-hover: #2563EB;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-error: #B91C1C;
  --color-star: #F59E0B;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --text-xs: clamp(0.694rem, 0.65rem + 0.22vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.938rem, 0.875rem + 0.3vw, 1rem);
  --text-lg: clamp(1.063rem, 0.975rem + 0.45vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1rem + 1.2vw, 1.5rem);
  --text-hero: clamp(2.25rem, 1.5rem + 4vw, 3.75rem);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-alt);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-button); }
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Banner (matches site hero) ---------- */
.banner {
  position: relative;
  background-color: var(--color-bg-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: clamp(7rem, 12vw, 9rem);
}
.banner::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(30,58,138,0.06) 120px, rgba(30,58,138,0.06) 121px),
    repeating-linear-gradient(-45deg, transparent, transparent 120px, rgba(30,58,138,0.06) 120px, rgba(30,58,138,0.06) 121px),
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(30,58,138,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(29,78,216,0.15) 0%, transparent 70%);
}
.banner-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 80px;
}
.logo, .footer-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.logo-text { font-size: var(--text-xl); font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.logo-ampersand { color: var(--color-hover); }
.logo-sub { font-size: var(--text-xs); font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.banner-link {
  font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.85);
  text-decoration: none; white-space: nowrap;
}
.banner-link:hover { color: #fff; }
.banner-content { text-align: center; max-width: 820px; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.banner-label {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0.5rem 1.25rem; margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
}
.banner-heading {
  margin: 0 0 1.25rem;
  font-size: var(--text-hero); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
}
.banner-accent { font-weight: 300; color: rgba(255,255,255,0.6); }
.banner-text { margin: 0 auto; max-width: 620px; font-size: var(--text-lg); color: rgba(255,255,255,0.62); line-height: 1.7; }

/* ---------- Form layout ---------- */
.main { position: relative; z-index: 1; margin-top: clamp(-6rem, -9vw, -5rem); padding-bottom: 5rem; }
.form-wrap { max-width: 860px; }
.form-wrap.narrow { max-width: 460px; }
.form-wrap.wide { max-width: var(--max-width); }
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
.form-section { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--color-border-light); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.section-label {
  position: relative; display: inline-block;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent); padding-left: 2.5rem; margin-bottom: 1.5rem;
}
.section-label::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 1.75rem; height: 1px; background: var(--color-accent);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field label, legend {
  display: block; padding: 0;
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}
.req { color: var(--color-button); }
.opt { font-weight: 400; color: var(--color-text-tertiary); }
.hint { margin: -0.75rem 0 1.25rem; font-size: var(--text-sm); color: var(--color-text-secondary); }

input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%;
  font: inherit; font-size: var(--text-base); color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { resize: vertical; min-height: 3rem; }
select { appearance: none; 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='%236B7280' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.25rem; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--color-button); box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--color-error); }
.field-error { margin: 0.4rem 0 0; font-size: var(--text-sm); color: var(--color-error); }
.alert {
  background: #FEF2F2; color: var(--color-error); border: 1px solid #FECACA;
  border-radius: var(--radius-lg); padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 500;
}
.alert-info { background: #EFF6FF; color: var(--color-accent); border-color: #BFDBFE; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Service chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; cursor: pointer; margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 0.55rem 1rem;
  border: 1.5px solid var(--color-border); border-radius: 999px;
  font-size: var(--text-sm); color: var(--color-text-secondary);
  transition: all .2s var(--ease);
}
.chip:hover span { border-color: var(--color-accent); color: var(--color-accent); }
.chip input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2); }

/* Star ratings */
.ratings { display: grid; gap: 0.25rem; margin-bottom: 1.75rem; }
.rating-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem;
  margin: 0; padding: 0.65rem 0; border: 0; border-bottom: 1px dashed var(--color-border);
}
.rating-row legend { float: left; margin: 0; font-weight: 500; }
.rating-row .field-error { grid-column: 1 / -1; margin-top: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; padding: 0.15rem; margin: 0; }
.stars svg { width: 30px; height: 30px; fill: var(--color-border); transition: fill .15s var(--ease), transform .15s var(--ease); }
.stars label:hover svg, .stars label:hover ~ label svg,
.stars input:checked ~ label svg { fill: var(--color-star); }
.stars:hover input:checked ~ label svg { fill: var(--color-border); }
.stars:hover label:hover svg, .stars:hover label:hover ~ label svg { fill: var(--color-star); }
.stars label:hover svg { transform: scale(1.12); }
.stars input:focus-visible + label svg { outline: 2px solid var(--color-button); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 560px) {
  .rating-row { grid-template-columns: 1fr; }
  .stars svg { width: 34px; height: 34px; }
}

/* NPS */
.nps-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 0.35rem; }
.nps-scale label { margin: 0 !important; cursor: pointer; }
.nps-scale input { position: absolute; opacity: 0; pointer-events: none; }
.nps-scale span {
  display: flex; align-items: center; justify-content: center;
  height: 2.6rem; border: 1.5px solid var(--color-border); border-radius: var(--radius);
  font-weight: 600; font-size: var(--text-sm); color: var(--color-text-secondary);
  transition: all .2s var(--ease);
}
.nps-scale label:hover span { border-color: var(--color-accent); color: var(--color-accent); }
.nps-scale input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.nps-scale input:focus-visible + span { box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2); }
.nps-ends { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: var(--text-xs); color: var(--color-text-tertiary); }
@media (max-width: 560px) {
  .nps-scale { grid-template-columns: repeat(6, 1fr); }
}

/* Checkboxes */
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.9rem; cursor: pointer; font-size: var(--text-base); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--color-accent); flex: none; }
.privacy { margin: 1.25rem 0 0; font-size: var(--text-sm); color: var(--color-text-secondary); }

/* Buttons */
.form-actions { margin-top: 2rem; display: flex; justify-content: flex-end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem;
  font: inherit; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--radius); border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--color-button); color: #fff; box-shadow: 0 1px 3px rgba(29,78,216,0.3); }
.btn-primary:hover { background: var(--color-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,78,216,0.3); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-outline { background: transparent; color: var(--color-accent); border: 1.5px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent); transform: translateY(-2px); }
@media (max-width: 560px) { .form-actions .btn { width: 100%; } }

/* Thank you */
.thanks { text-align: center; }
.thanks-icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,58,138,0.08); color: var(--color-accent);
}
.thanks-icon svg { width: 30px; height: 30px; }
.thanks h2 { margin: 0 0 0.75rem; font-size: var(--text-2xl); letter-spacing: -0.02em; }
.thanks p { max-width: 520px; margin: 0 auto; color: var(--color-text-secondary); }
.thanks-actions { margin-top: 2rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-bar { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-bar .btn-outline { background: #fff; }
.admin-nav { margin: 0 0 1rem; }
.admin-nav a { display: inline-block; background: #fff; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--color-border); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: 0 10px 40px rgba(15,23,42,0.06); }
.stat-value { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-accent); line-height: 1.1; }
.stat-label { font-size: var(--text-sm); color: var(--color-text-secondary); margin-top: 0.25rem; }
.card-title { margin: 0 0 1.25rem; font-size: var(--text-lg); letter-spacing: -0.01em; }
.bars { display: grid; gap: 0.75rem; }
.bar-row { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr 2.5rem; align-items: center; gap: 1rem; font-size: var(--text-sm); }
.bar-track { height: 10px; background: var(--color-border-light); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--color-accent); border-radius: 999px; }
.bar-value { font-weight: 700; text-align: right; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 2.5rem; } .bar-track { grid-column: 1 / -1; grid-row: 2; } }
.table-card { padding: clamp(1rem, 3vw, 2rem); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th { text-align: left; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-tertiary); font-weight: 600; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); }
td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--color-border-light); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--color-bg-alt); }
.muted { color: var(--color-text-secondary); }
.nowrap { white-space: nowrap; }
.score { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-weight: 700; font-size: var(--text-xs); white-space: nowrap; }
.score.s5, .score.s4 { background: #DCFCE7; color: #166534; }
.score.s3 { background: #FEF3C7; color: #92400E; }
.score.s2, .score.s1 { background: #FEE2E2; color: #991B1B; }
.pager { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 1.25rem; }
.pager a { padding: 0.35rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; font-size: var(--text-sm); }
.pager a.current { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.detail dl { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 0.85rem 1.5rem; margin: 0; }
.detail dt { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-secondary); }
.detail dd { margin: 0; }
.detail .pre { white-space: pre-wrap; }
@media (max-width: 560px) { .detail dl { grid-template-columns: 1fr; gap: 0.2rem; } .detail dd { margin-bottom: 0.75rem; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--color-border); padding: 4rem 0 3rem; background: var(--color-bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand { max-width: 360px; }
.footer-logo { margin-bottom: 1.5rem; }
.footer-logo .logo-text { color: var(--color-text-primary); font-size: var(--text-lg); }
.footer-logo .logo-ampersand { color: var(--color-accent); }
.footer-logo .logo-sub { color: var(--color-text-secondary); }
.footer-desc { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.7; margin: 0; }
.footer-heading { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1.5rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { font-size: var(--text-sm); color: var(--color-text-secondary); text-decoration: none; }
a.footer-link:hover { color: var(--color-accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.footer-small { margin: 0; font-size: var(--text-xs); color: var(--color-text-tertiary); }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* Appointments admin */
.group-row td { background: var(--color-bg-alt, #F9FAFB); padding-top: 0.9rem; }
td.pre { white-space: pre-wrap; max-width: 260px; }
.grid-2 .form-actions { grid-column: 1 / -1; margin-top: 0.5rem; }
.calendar-help { margin: 1rem 0 1.25rem; font-size: 0.92rem; line-height: 1.6; }
.calendar-help p { margin: 0 0 0.6rem; }
