:root {
  color-scheme: light;
  --page-bg: #f4f1ea;
  --card-bg: #ffffff;
  --text: #191919;
  --muted: #746f66;
  --border: #d9d5cc;
  --button: #191919;
  --button-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.contact-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.contact-card {
  width: min(760px, 100%);
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}

.contact-brand {
  display: inline-block;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.contact-step {
  margin: 28px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.contact-subtitle {
  max-width: 600px;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.field-label {
  display: inline;
}

.phone-field .field-label {
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  padding: 12px 13px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(25, 25, 25, 0.16);
  outline-offset: 2px;
  border-color: #9f9a91;
}

button {
  width: fit-content;
  min-width: 150px;
  border: 0;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 20px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.contact-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-message[data-state="error"] {
  color: #8a1f1f;
}

.contact-message[data-state="success"] {
  color: #216e39;
}

.contact-home {
  margin: 28px 0 0;
  font-size: 14px;
}

.contact-home a {
  color: var(--text);
}

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

@media (max-width: 640px) {
  .contact-shell {
    padding: 0;
  }

  .contact-card {
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    padding: 28px 20px 36px;
    box-shadow: none;
  }

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

  button {
    width: 100%;
  }
}
