:root {
  --ct-bg: #eee8df;
  --ct-bg-soft: #f8f4ee;
  --ct-panel: #f6f0e8;
  --ct-panel-deep: #e4d8c8;
  --ct-text: #151311;
  --ct-muted: #746b62;
  --ct-line: rgba(35, 29, 24, 0.12);
  --ct-line-soft: rgba(35, 29, 24, 0.07);
  --ct-black: #111111;
  --ct-white: #ffffff;
  --ct-radius-lg: 34px;
  --ct-radius-md: 22px;
  --ct-ease: cubic-bezier(.22,.61,.36,1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.contact-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.45), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(194,178,154,.26), transparent 22%),
    linear-gradient(180deg, #eee8df 0%, #f7f2eb 100%);
  color: var(--ct-text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.contact-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 90px;
}

.contact-hero {
  max-width: 780px;
  margin-bottom: 44px;
}

.contact-hero__eyebrow {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ct-muted);
}

.contact-hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--ct-black);
}

.contact-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ct-muted);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.12)),
    var(--ct-panel);
  box-shadow: 0 34px 90px rgba(28, 21, 15, 0.08);
  padding: clamp(24px, 5vw, 54px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.45), transparent 24%),
    radial-gradient(circle at 88% 100%, rgba(196,176,150,.18), transparent 28%);
  pointer-events: none;
}

.contact-form,
.form-status {
  position: relative;
  z-index: 1;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(21, 19, 17, 0.58);
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ct-line);
  background: transparent;
  padding: 13px 0 15px;
  color: var(--ct-black);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .25s var(--ct-ease), background-color .25s var(--ct-ease);
}

input::placeholder,
textarea::placeholder {
  color: rgba(21, 19, 17, 0.38);
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

input:focus,
select:focus,
textarea:focus {
  border-bottom-color: rgba(17, 17, 17, 0.72);
}

button[type="submit"] {
  margin-top: 38px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--ct-black);
  color: #f7f2eb;
  padding: 0 36px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.16);
  transition:
    transform .26s var(--ct-ease),
    opacity .26s var(--ct-ease),
    box-shadow .26s var(--ct-ease);
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(17, 17, 17, 0.20);
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.contact-note {
  max-width: 600px;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(21, 19, 17, .55);
}

.form-status {
  display: none;
}

.form-status.is-visible {
  display: block;
}

.success-card,
.error-card,
.loading-card {
  text-align: center;
  padding: clamp(34px, 6vw, 70px) clamp(22px, 5vw, 56px);
  border: 1px solid var(--ct-line-soft);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,.20)),
    #f8f4ee;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f3eadf, #e2d3c0);
  border: 1px solid rgba(35, 29, 24, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 18px 34px rgba(40, 32, 24, 0.10);
}

.success-icon svg {
  width: 34px;
  height: 34px;
  stroke: #111111;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h2,
.error-card h2,
.loading-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--ct-black);
}

.success-card p,
.error-card p,
.loading-card p {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ct-muted);
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.success-actions a,
.error-card button {
  min-height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}

.success-actions a:first-child {
  background: var(--ct-black);
  color: #f7f2eb;
}

.success-actions a:last-child {
  border: 1px solid var(--ct-line);
  color: var(--ct-black);
}

.error-card button {
  margin-top: 24px;
  border: 1px solid var(--ct-line);
  background: transparent;
  color: var(--ct-black);
  cursor: pointer;
}

@media (max-width: 760px) {
  .contact-shell {
    width: min(100% - 26px, 1180px);
    padding: 120px 0 70px;
  }

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

  .contact-panel {
    border-radius: 26px;
  }

  button[type="submit"] {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions a {
    width: 100%;
  }
}