:root {
  color-scheme: light;
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-alt: #f8f6f1;
  --border: #ddd6c9;
  --text: #1f1a14;
  --muted: #6c6257;
  --accent: #9c6b3f;
  --accent-dark: #7e532d;
  --shadow: 0 20px 45px rgba(31, 26, 20, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-section {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(221, 214, 201, 0.8);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.land-success-panel {
  opacity: 0;
  transform: translateY(16px);
}

.land-success-panel.is-visible {
  animation: successFadeIn 0.5s ease forwards;
}

.land-success-panel__inner {
  max-width: 720px;
}

.land-success-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  color: var(--text);
}

.section-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

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

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

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 16px 18px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.field input:focus,
.field textarea:focus,
.file-upload:focus-within {
  outline: none;
  border-color: rgba(156, 107, 63, 0.85);
  box-shadow: 0 0 0 4px rgba(156, 107, 63, 0.12);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field small {
  margin-top: -2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

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

.file-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 14px 16px;
  background: var(--surface-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload__name {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.checkbox-group {
  display: grid;
  gap: 14px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.checkbox input {
  margin: 2px 0 0;
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--accent);
}

.submit-button {
  justify-self: start;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #c7935f 100%);
  color: #fff;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(156, 107, 63, 0.24);
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(156, 107, 63, 0.28);
}

.submit-button:active {
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .contact-form-section {
    padding: 24px;
    border-radius: 24px;
  }

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

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

  .file-upload {
    flex-direction: column;
    align-items: stretch;
  }

  .file-upload__button {
    width: 100%;
  }

  .submit-button {
    width: 100%;
    justify-self: stretch;
  }
}
