@font-face {
  font-family: "Sadeed Handicrafts";
  src: url("../assets/fonts/handicrafts-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sadeed Handicrafts";
  src: url("../assets/fonts/handicrafts-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sadeed Handicrafts";
  src: url("../assets/fonts/handicrafts-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sadeed Handicrafts";
  src: url("../assets/fonts/handicrafts-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e1413;
  --muted: #5f6b69;
  --teal: #4d918d;
  --teal-dark: #286c68;
  --teal-soft: #e3f1ef;
  --orange: #ef9227;
  --milk: #fffdf9;
  --wash: #edf6f5;
  --line: rgb(39 100 96 / 16%);
  --error: #a9362a;
  --shadow: 0 28px 70px rgb(34 83 80 / 15%);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--wash);
  font-family: "Sadeed Handicrafts", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(239 146 39 / 34%);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(237 246 245 / 25%), var(--wash) 82%),
    url("../assets/img/sky.webp") center top / cover no-repeat;
}

.page-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 255 255 / 76%), transparent 28%),
    linear-gradient(90deg, rgb(237 246 245 / 50%), rgb(255 253 249 / 6%) 55%, rgb(237 246 245 / 72%));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 42px;
  object-fit: contain;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding-inline: 18px 15px;
  color: var(--teal-dark);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  background: rgb(255 255 255 / 53%);
  box-shadow: 0 9px 24px rgb(37 91 88 / 9%), inset 0 1px rgb(255 255 255 / 86%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.home-link:hover {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 76%);
}

.home-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-page {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 160px);
  margin-inline: auto;
  padding-block: 36px 64px;
}

.intro {
  position: relative;
  padding-block: 28px;
}

.eyebrow,
.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgb(239 146 39 / 12%);
}

.intro h1 {
  max-width: 600px;
  margin: 22px 0 18px;
  font-size: clamp(41px, 4.5vw, 68px);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: -.02em;
}

.intro h1 span {
  color: var(--teal-dark);
}

.intro > p {
  max-width: 570px;
  margin: 0;
  color: #43514f;
  font-size: 19px;
  line-height: 1.95;
}

.benefits {
  display: grid;
  gap: 11px;
  margin-top: 32px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  min-width: 250px;
}

.benefit-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--teal-dark);
  border: 1px solid rgb(77 145 141 / 15%);
  border-radius: 50%;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 7px 18px rgb(34 83 80 / 8%);
  font-size: 18px;
  font-weight: 900;
  transform: rotate(-7deg);
}

.benefit > span:last-child {
  display: grid;
}

.benefit b {
  font-size: 16px;
}

.benefit small {
  color: var(--muted);
  font-size: 13px;
}

.reward-note {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 34px;
  padding: 10px 14px 10px 22px;
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 24px;
  background: rgb(255 255 255 / 48%);
  box-shadow: 0 12px 30px rgb(34 83 80 / 8%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reward-note img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transform: rotate(6deg);
}

.reward-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reward-note b {
  color: var(--ink);
  font-size: 15px;
}

.form-card {
  position: relative;
  min-height: 670px;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 34px;
  background: rgb(255 253 249 / 83%);
  box-shadow: var(--shadow), inset 0 1px rgb(255 255 255 / 92%);
  backdrop-filter: blur(26px) saturate(115%);
  -webkit-backdrop-filter: blur(26px) saturate(115%);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), #f3b45e 35%, var(--teal) 72%, var(--teal-dark));
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.form-heading h2 {
  margin: 3px 0 0;
  font-size: 28px;
  font-weight: 900;
}

.autosave-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.autosave-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75aaa6;
}

.autosave-status.is-saving::before {
  animation: pulse 800ms ease infinite alternate;
}

@keyframes pulse {
  to { opacity: .25; }
}

.progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 27px 0 30px;
}

.progress-line {
  position: absolute;
  top: 17px;
  right: 16.66%;
  left: 16.66%;
  height: 2px;
  overflow: hidden;
  background: #d9e5e3;
}

.progress-line span {
  display: block;
  width: 100%;
  height: 100%;
  margin-inline-start: 0;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  color: #899492;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.progress-step:disabled {
  cursor: default;
}

.progress-step > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dce7e5;
  border-radius: 50%;
  background: #f9fbfa;
  font-size: 14px;
  font-weight: 800;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.progress-step small {
  font-size: 12px;
  font-weight: 700;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--teal-dark);
}

.progress-step.is-active > span {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 7px 18px rgb(77 145 141 / 25%);
  transform: scale(1.06);
}

.progress-step.is-complete > span {
  color: var(--teal-dark);
  border-color: rgb(77 145 141 / 32%);
  background: var(--teal-soft);
}

.form-step {
  animation: step-in 340ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-copy {
  margin-bottom: 22px;
}

.step-copy > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.step-copy h3 {
  margin: 4px 0 3px;
  font-size: 24px;
  font-weight: 900;
}

.step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span,
.choice-group legend {
  color: #26302f;
  font-size: 14px;
  font-weight: 700;
}

.field em,
.choice-group em {
  color: var(--orange);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.field > span small {
  color: #87918f;
  font-size: 11px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea,
.phone-field {
  width: 100%;
  min-height: 52px;
  color: var(--ink);
  border: 1px solid #dce6e4;
  border-radius: 15px;
  background: rgb(255 255 255 / 78%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  outline: none;
}

.field select {
  cursor: pointer;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a1aaa8;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.phone-field:focus-within {
  border-color: rgb(77 145 141 / 75%);
  background: white;
  box-shadow: 0 0 0 4px rgb(77 145 141 / 10%);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.phone-field.is-invalid {
  border-color: rgb(169 54 42 / 55%);
  box-shadow: 0 0 0 4px rgb(169 54 42 / 8%);
}

.phone-field {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.phone-field b {
  display: grid;
  align-self: stretch;
  place-items: center;
  padding-inline: 13px;
  color: var(--teal-dark);
  border-right: 1px solid #e2e9e7;
  background: #f3f8f7;
  font-size: 14px;
}

.phone-field input {
  min-width: 0;
  min-height: 50px;
  padding-inline: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  direction: ltr;
  text-align: left;
  letter-spacing: .08em;
}

.phone-field input:focus {
  box-shadow: none;
}

.field > small:not(.field-error) {
  color: #7b8785;
  font-size: 11px;
}

.field-error,
.group-error {
  min-height: 0;
  color: var(--error);
  font-size: 11px;
  font-weight: 600;
}

.field-error:empty,
.group-error:empty {
  display: none;
}

.choice-group {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 7px;
  color: #4b5755;
  border: 1px solid #dce6e4;
  border-radius: 14px;
  background: rgb(255 255 255 / 70%);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice input:checked + span {
  color: var(--teal-dark);
  border-color: rgb(77 145 141 / 48%);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgb(77 145 141 / 10%);
  transform: translateY(-1px);
}

.choice input:focus-visible + span {
  outline: 3px solid rgb(239 146 39 / 34%);
  outline-offset: 3px;
}

.choice-group.is-invalid .choice > span {
  border-color: rgb(169 54 42 / 35%);
}

.reward-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reward-choice > span {
  align-items: flex-start;
  justify-content: center;
  min-height: 66px;
  flex-direction: column;
  padding-inline: 14px;
  text-align: right;
}

.reward-choice b {
  color: var(--ink);
  font-size: 13px;
}

.reward-choice small {
  color: #71807d;
  font-size: 10px;
}

.motivation-field {
  margin-top: 16px;
}

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: #3f4c4a;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-box {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 23px;
  height: 23px;
  color: transparent;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  background: white;
  font-size: 13px;
  font-weight: 900;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.consent input:checked + .consent-box {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.consent input:focus-visible + .consent-box {
  outline: 3px solid rgb(239 146 39 / 34%);
  outline-offset: 3px;
}

.consent.is-invalid .consent-box {
  border-color: var(--error);
}

.consent-error {
  display: block;
  margin: 4px 33px 0 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  flex: 1;
  color: white;
  background: var(--teal-dark);
  box-shadow: 0 13px 27px rgb(40 108 104 / 22%);
}

.button-primary:hover {
  background: #205f5b;
  box-shadow: 0 16px 30px rgb(40 108 104 / 27%);
}

.button-secondary {
  color: var(--teal-dark);
  border: 1px solid rgb(77 145 141 / 20%);
  background: rgb(255 255 255 / 74%);
}

.button span {
  transition: transform 180ms ease;
}

.button:hover span {
  transform: translateX(-3px);
}

.button-secondary:hover span {
  transform: translateX(3px);
}

.submit-note {
  margin: 10px 0 0;
  color: #74807e;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.success-state {
  display: grid;
  justify-items: center;
  padding-block: 35px 12px;
  text-align: center;
  animation: step-in 360ms cubic-bezier(.22, 1, .36, 1) both;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  color: white;
  border: 9px solid var(--teal-soft);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 14px 28px rgb(77 145 141 / 22%);
  font-size: 30px;
  font-weight: 900;
  transform: rotate(-7deg);
}

.success-state h2 {
  margin: 6px 0 9px;
  font-size: 30px;
  font-weight: 900;
}

.success-state > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.application-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 23px 0;
}

.summary-item {
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid #e1e9e7;
  border-radius: 14px;
  background: rgb(255 255 255 / 64%);
  text-align: right;
}

.summary-item small {
  color: #84908d;
  font-size: 10px;
}

.summary-item b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-button {
  width: min(100%, 360px);
}

.edit-request {
  min-height: 44px;
  margin-top: 8px;
  padding-inline: 18px;
  color: var(--teal-dark);
  border: 0;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.success-state > small {
  margin-top: 4px;
  color: #7c8886;
  font-size: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 10px 28px;
  color: #71807d;
  font-size: 11px;
}

@media (max-width: 980px) {
  .partner-page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    gap: 28px;
    padding-top: 14px;
  }

  .intro {
    padding-block: 12px 6px;
    text-align: center;
  }

  .intro h1,
  .intro > p {
    margin-inline: auto;
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
  }

  .benefit {
    display: grid;
    justify-items: center;
    gap: 7px;
    width: auto;
    min-width: 0;
  }

  .benefit > span:last-child {
    text-align: center;
  }

  .reward-note {
    margin: 25px auto 0;
    text-align: right;
  }

  .form-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .page-sky {
    background-image:
      linear-gradient(180deg, rgb(237 246 245 / 25%), var(--wash) 82%),
      url("../assets/img/sky-sm.webp");
  }

  .site-header {
    width: calc(100% - 28px);
    min-height: 72px;
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 38px;
    height: 36px;
  }

  .home-link {
    min-height: 44px;
    padding-inline: 13px 11px;
    font-size: 12px;
  }

  .partner-page {
    width: calc(100% - 24px);
    padding-block: 18px 42px;
  }

  .intro h1 {
    margin-block: 17px 13px;
    font-size: clamp(34px, 10.2vw, 45px);
    line-height: 1.2;
  }

  .intro > p {
    font-size: 15px;
    line-height: 1.8;
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .benefit {
    align-content: start;
  }

  .benefit-check {
    width: 31px;
    height: 31px;
  }

  .benefit b {
    font-size: 11px;
    line-height: 1.3;
  }

  .benefit small {
    display: none;
  }

  .reward-note {
    margin-top: 20px;
  }

  .reward-note img {
    width: 52px;
    height: 52px;
  }

  .form-card {
    padding: 22px 17px 20px;
    border-radius: 27px;
  }

  .form-heading h2 {
    font-size: 23px;
  }

  .autosave-status {
    font-size: 10px;
  }

  .progress {
    margin-block: 23px 25px;
  }

  .progress-step small {
    font-size: 10px;
  }

  .step-copy h3 {
    font-size: 21px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice > span {
    min-height: 50px;
  }

  .form-actions {
    position: sticky;
    bottom: 9px;
    z-index: 2;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 999px;
    background: rgb(255 253 249 / 78%);
    box-shadow: 0 12px 24px rgb(34 83 80 / 12%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .form-actions .button {
    min-height: 48px;
    padding-inline: 18px;
  }

  .form-actions .button-secondary {
    flex: 0 0 auto;
  }

  .application-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  footer {
    display: grid;
    width: calc(100% - 32px);
    text-align: center;
  }
}

@media (max-width: 380px) {
  .home-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .home-link {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .reward-note {
    width: 100%;
  }

  .form-card {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
