:root {
  --bg: #f4f6f4;
  --ink: #12211c;
  --muted: #5c6b64;
  --line: #d9e0db;
  --card: #ffffff;
  --accent: #1f7a5c;
  --accent-dark: #14543f;
  --accent-soft: #e3f3ec;
  --danger: #c0382b;
  --radius: 16px;
  --font: "Sora", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 122, 92, 0.1), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(31, 122, 92, 0.08), transparent 40%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

.layout {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* Info column */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.info h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.intro {
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 38ch;
  font-size: 1rem;
}

.contact-list {
  list-style: none;
  margin-top: 2.25rem;
  display: grid;
  gap: 1.4rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-list a:hover {
  color: var(--accent);
  border-color: currentColor;
}

.contact-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 122, 92, 0.18);
}

/* Form card */
.form-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: 0 30px 70px -45px rgba(18, 33, 28, 0.5);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.counter {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input,
select,
textarea {
  width: 100%;
  font: 400 0.95rem var(--font);
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: #9aa8a1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 122, 92, 0.14);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select {
  appearance: none;
  cursor: pointer;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: #fdf4f3;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(192, 56, 43, 0.14);
}

.error {
  min-height: 1em;
  font-size: 0.76rem;
  color: var(--danger);
}

.submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem;
  font: 600 0.95rem var(--font);
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 26px -14px rgba(31, 122, 92, 0.9);
}

.submit:hover {
  box-shadow: 0 18px 34px -14px rgba(31, 122, 92, 1);
}

.submit:active {
  transform: scale(0.99);
}

.submit:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.submit[disabled] {
  opacity: 0.8;
  cursor: progress;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: rot 0.7s linear infinite;
}

.submit.loading .spinner {
  display: inline-block;
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

/* Success */
.success {
  text-align: center;
  padding: 1.5rem 0.5rem;
  animation: fade 0.35s ease both;
}

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

.success .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
}

.success h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.success p {
  color: var(--muted);
  margin: 0.4rem 0 1.25rem;
}

.again {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 0.88rem var(--font);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.again:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  z-index: 20;
  max-width: calc(100% - 2rem);
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .info {
    text-align: left;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
