.contact-page {
  background: var(--kitaki-background);
}

.contact-page .container {
  width: min(calc(100% - 48px), var(--kitaki-wide));
  margin-inline: auto;
}

.contact-page-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  padding: 132px 0 92px;
  background: #f7f6f0;
}

.contact-page-hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 33%, rgba(168, 196, 154, 0.34), transparent 25%),
    radial-gradient(circle at 71% 46%, rgba(190, 220, 219, 0.27), transparent 30%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.82) 0 51%, rgba(247, 246, 240, 0.28) 75%);
  pointer-events: none;
}

.contact-page-hero-wash::after {
  position: absolute;
  right: -7%;
  bottom: -28%;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(85, 122, 90, 0.16);
  border-radius: 48% 52% 57% 43%;
  content: "";
  transform: rotate(-13deg);
}

.contact-breadcrumb,
.contact-page-hero-copy {
  position: relative;
  z-index: 1;
}

.contact-breadcrumb ol {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 10px;
  color: var(--kitaki-muted-foreground);
  font-size: 12px;
  list-style: none;
}

.contact-breadcrumb a:hover {
  color: var(--kitaki-primary);
}

.contact-page-hero-copy {
  max-width: 690px;
  margin-top: 95px;
}

.contact-page-hero-copy .section-kicker,
.contact-section-heading .section-kicker,
.contact-form-guide .section-kicker,
.contact-phone-card .section-kicker {
  margin: 0 0 22px;
  color: var(--kitaki-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-page-hero-copy h1 {
  margin: 0;
  font-family: var(--kitaki-serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.contact-page-hero-copy h1 span {
  display: block;
}

.contact-page-hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: #4e5d54;
  line-height: 2;
}

.contact-audience-section {
  padding: 94px 0 104px;
}

.contact-section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  align-items: end;
  margin-bottom: 44px;
  column-gap: 80px;
}

.contact-section-heading .section-kicker {
  grid-column: 1 / -1;
}

.contact-section-heading h2,
.contact-form-guide h2,
.contact-phone-card h2 {
  margin: 0;
  font-family: var(--kitaki-serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.contact-section-heading > p:last-child {
  margin: 0;
  color: var(--kitaki-muted-foreground);
  line-height: 2;
}

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

.contact-audience-card {
  position: relative;
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--kitaki-border);
  border-radius: 6px;
  background: #fff;
  padding: 26px 24px;
}

.contact-audience-card:hover,
.contact-audience-card.is-selected {
  border-color: var(--kitaki-primary);
  background: var(--kitaki-secondary);
  transform: translateY(-3px);
}

.contact-audience-card .kitaki-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.contact-audience-label {
  padding-right: 26px;
  font-family: var(--kitaki-serif);
  font-size: 22px;
  font-weight: 600;
}

.contact-audience-note {
  max-width: 88%;
  color: var(--kitaki-muted-foreground);
  font-size: 12px;
  line-height: 1.7;
}

.contact-topic-note {
  width: fit-content;
  margin: 24px 0 0;
  border-radius: 100px;
  background: var(--kitaki-secondary);
  padding: 8px 15px;
  color: #47634e;
  font-size: 13px;
}

.contact-form-section {
  scroll-margin-top: 24px;
  background: var(--kitaki-secondary);
  padding: 110px 0;
}

.contact-form-note a {
  color: var(--kitaki-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 74px;
}

.contact-form-guide {
  position: sticky;
  top: 40px;
}

.contact-form-guide > p:not(.section-kicker, .contact-warning) {
  margin: 28px 0 0;
  color: var(--kitaki-muted-foreground);
  line-height: 2;
}

.contact-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 30px 0 0;
  border: 1px solid #e8caca;
  border-radius: 5px;
  background: #fff8f7;
  color: #713e3c;
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
}

.contact-warning .kitaki-warning {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-warning a,
.contact-phone-card a {
  color: var(--kitaki-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-phone-card .contact-phone-number {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--kitaki-primary-dark);
  font-family: var(--kitaki-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--kitaki-primary-dark);
  font-size: 14px;
  font-weight: 600;
}

.contact-text-link:hover .kitaki-arrow {
  transform: translateX(4px);
}

.contact-form-card {
  border: 1px solid var(--kitaki-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37, 49, 43, 0.08);
  padding: clamp(28px, 4.5vw, 58px);
}

.contact-form-heading > span {
  color: var(--kitaki-primary);
  font-size: 13px;
  font-weight: 700;
}

.contact-form-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3vw, 38px);
}

.contact-form-heading p {
  margin: 12px 0 0;
  color: var(--kitaki-muted-foreground);
  font-size: 13px;
}

.contact-preview-note,
.contact-error-summary {
  margin: 28px 0 0;
  border-radius: 4px;
  padding: 15px 17px;
  font-size: 13px;
  line-height: 1.75;
}

.contact-preview-note {
  border: 1px solid #d6e2d3;
  background: #f4f8f2;
  color: #426047;
}

.contact-error-summary {
  border: 1px solid #e4b9b6;
  background: #fff4f3;
  color: #7a3834;
}

.contact-error-summary p,
.contact-error-summary ul {
  margin: 0;
}

.contact-error-summary ul {
  padding: 7px 0 0 1.2em;
}

.contact-fields {
  display: grid;
  margin: 38px 0 0;
  padding: 0;
  border: 0;
  gap: 26px;
}

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

.contact-fields label {
  display: grid;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.contact-fields label > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-fields em,
.contact-fields small {
  border-radius: 2px;
  padding: 1px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.contact-fields em {
  background: #7b4a46;
  color: #fff;
}

.contact-fields small {
  background: var(--kitaki-muted);
  color: var(--kitaki-muted-foreground);
}

.contact-fields input,
.contact-fields select,
.contact-fields textarea {
  width: 100%;
  border: 1px solid #d9dfda;
  border-radius: 4px;
  background: #fff;
  color: var(--kitaki-foreground);
  font-size: 16px;
}

.contact-fields input,
.contact-fields select {
  min-height: 52px;
  padding: 0 14px;
}

.contact-fields textarea {
  min-height: 188px;
  padding: 13px 14px;
  line-height: 1.8;
  resize: vertical;
}

.contact-fields input:focus,
.contact-fields select:focus,
.contact-fields textarea:focus {
  border-color: var(--kitaki-primary);
  box-shadow: 0 0 0 3px rgba(85, 122, 90, 0.13);
  outline: none;
}

.contact-fields [aria-invalid="true"] {
  border-color: #a6534d;
}

.field-error {
  color: #8a3f39;
  font-size: 12px;
  font-weight: 500;
}

.contact-character-count {
  justify-self: end;
  color: var(--kitaki-muted-foreground);
  font-size: 11px;
  font-weight: 400;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form-note {
  margin: 0;
  color: var(--kitaki-muted-foreground);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.contact-submit,
.contact-success .button {
  display: inline-flex;
  width: fit-content;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 4px;
  background: var(--kitaki-primary);
  color: #fff;
  padding: 0 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.contact-submit:hover:not(:disabled),
.contact-success .button:hover {
  background: var(--kitaki-primary-dark);
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.contact-sending-status {
  display: block;
  min-height: 1.7em;
  margin-top: 12px;
  color: var(--kitaki-muted-foreground);
  font-size: 12px;
}

.contact-success {
  text-align: center;
}

.contact-success-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--kitaki-secondary);
  color: var(--kitaki-primary-dark);
}

.contact-success-icon .kitaki-check {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-success h2 {
  margin-top: 22px;
}

.contact-success p {
  color: var(--kitaki-muted-foreground);
}

.contact-receipt {
  border-radius: 4px;
  background: var(--kitaki-muted);
  padding: 12px;
  overflow-wrap: anywhere;
}

.contact-success .button {
  margin-top: 18px;
}

.contact-before-selection,
.contact-unavailable {
  padding-top: 0;
  padding-bottom: 98px;
  text-align: center;
}

.contact-before-selection .contact-warning {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: left;
}

.contact-phone-section {
  padding: 96px 0 112px;
}

.contact-phone-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  gap: 72px;
  border-top: 1px solid var(--kitaki-border);
  padding-top: 54px;
}

.contact-phone-card > div:last-child {
  color: var(--kitaki-muted-foreground);
}

.contact-phone-card > div:last-child p {
  margin: 0;
}

.contact-phone-card > div:last-child p + p {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .contact-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-form-guide {
    position: static;
  }
}

@media (max-width: 700px) {
  .contact-page .container {
    width: min(calc(100% - 32px), var(--kitaki-wide));
  }

  .contact-page-hero {
    min-height: 500px;
    padding: 116px 0 70px;
  }

  .contact-page-hero-copy {
    margin-top: 74px;
  }

  .contact-page-hero-copy h1 {
    font-size: clamp(26px, 8.7vw, 42px);
    letter-spacing: 0.02em;
  }

  .contact-page-hero-copy h1 span {
    white-space: nowrap;
  }

  .contact-audience-section,
  .contact-form-section,
  .contact-phone-section {
    padding-block: 72px;
  }

  .contact-section-heading,
  .contact-phone-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-audience-grid,
  .contact-field-row {
    grid-template-columns: 1fr;
  }

  .contact-audience-card {
    min-height: 135px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-audience-card,
  .contact-text-link .kitaki-arrow {
    transition: none;
  }
}
