:root {
  --color-primary: #d7600d;
  --color-secondary: #2e86c1;
  --color-dark: #282c3f;
  --color-accent: #4499c5;
  --color-bg: #f9fafb;
  --color-text: #4b5563;
  --color-muted: #6b7280;
  --color-card: #ffffff;
  --color-border: #dbe3ea;
  --radius-card: 16px;
  --radius-button: 50px;
  --space-desktop: 80px;
  --space-mobile: 48px;
  --shadow-soft: 0 24px 48px rgba(40, 44, 63, 0.08);
  --shadow-card: 0 12px 24px rgba(40, 44, 63, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 10% 10%, #ffffff 0%, #f1f5f9 45%, #f9fafb 100%);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--color-dark);
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.hero {
  position: relative;
  min-height: 60vh;
  padding: 84px 0 64px;
  background-image: url("../images/sakleshpur-hero-v2.svg"), linear-gradient(120deg, #2e86c1, #282c3f);
  background-size: cover;
  background-position: center 42%;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(20, 24, 40, 0.82), rgba(20, 24, 40, 0.44)),
    radial-gradient(circle at 18% 22%, rgba(215, 96, 13, 0.24), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 34px;
}

.hero__brand {
  position: absolute;
  top: -38px;
  left: -18px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.hero__logo {
  display: block;
  width: clamp(124px, 15vw, 170px);
  height: auto;
}

.section__label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
}

.hero .section__label,
.hero .section__title,
.hero .section__subtitle,
.hero__trust {
  color: #fff;
}

.section__title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.7vw, 2.9rem);
  line-height: 1.2;
}

.section__subtitle {
  margin-top: 16px;
  max-width: 880px;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.hero__trust {
  margin-top: 22px;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.main-content {
  padding: 0 0 var(--space-desktop);
}

.progress-card {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: -34px auto 28px;
  width: min(900px, 100%);
  border-radius: 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.progress-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.progress-card__text,
.progress-card__percent {
  font-size: 0.92rem;
}

.progress-card__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
}

.progress-card__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  transition: width 260ms ease;
}

.status-banner {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #fff;
  font-size: 0.95rem;
}

.status-banner button {
  margin-left: 10px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}

.status-banner--error {
  border-color: #f7c5c9;
  background: #fff4f5;
  color: #991b1b;
}

.status-banner--info {
  border-color: #cce1f1;
  background: #f4f9fe;
  color: #1f4460;
}

.status-banner--warning {
  border-color: #f4d8ac;
  background: #fff8eb;
  color: #8b4b00;
}

.save-indicator {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.form-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.form-section {
  border-bottom: 1px solid var(--color-border);
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section__header {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 18px 24px;
  cursor: pointer;
}

.form-section__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-dark);
}

.form-section__state {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.form-section.is-complete .form-section__state {
  color: #2f7a34;
}

.form-section__body {
  display: none;
  padding: 0 24px 24px;
  animation: slideUp 260ms ease;
}

.form-section.is-open .form-section__body {
  display: block;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-full {
  grid-column: 1 / -1;
}

label,
fieldset {
  font-size: 0.93rem;
  color: var(--color-dark);
  display: grid;
  gap: 8px;
}

fieldset {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
}

legend {
  font-weight: 600;
  color: var(--color-dark);
  padding: 0 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(68, 153, 197, 0.28);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--color-text);
  background: #fff;
}

.chip-group input {
  width: auto;
  margin: 0;
}

.field-help {
  font-size: 0.86rem;
  color: var(--color-muted);
}

.field-help--important {
  color: #8b4b00;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--color-text);
}

.file-list li {
  font-size: 0.88rem;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: #fbfdff;
}

.review-box {
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fbfdff;
  padding: 16px;
}

.review-box ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.section-nav,
.submit-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: var(--radius-button);
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--color-primary), #e08622);
  box-shadow: 0 10px 20px rgba(215, 96, 13, 0.25);
}

.btn--secondary {
  color: var(--color-dark);
  background: #fff;
  border: 1px solid var(--color-border);
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  margin-left: 8px;
  animation: spin 0.9s linear infinite;
  vertical-align: middle;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.btn.is-loading .btn__label {
  opacity: 0.85;
}

.conditional {
  display: none;
}

.conditional.is-visible {
  display: grid;
}

.thankyou-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.thankyou-card {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 34px;
  display: grid;
  gap: 14px;
}

.ref-code {
  font-size: 1rem;
  color: var(--color-dark);
  background: #f3f7fb;
  border: 1px dashed #b8cfde;
  border-radius: 10px;
  padding: 12px;
}

.fade-in {
  animation: fadeIn 280ms ease;
}

.slide-up {
  animation: slideUp 260ms ease;
}

@media (max-width: 820px) {
  .hero {
    min-height: 50vh;
    padding-top: 64px;
    background-position: 58% 44%;
  }

  .hero__content {
    padding-top: 58px;
  }

  .hero__brand {
    padding: 8px 12px;
    border-radius: 16px;
  }

  .hero__logo {
    width: clamp(108px, 34vw, 150px);
  }

  .main-content {
    padding-bottom: var(--space-mobile);
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-section__header,
  .form-section__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .submit-row {
    position: sticky;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
  }

  .btn {
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
