:root {
  --page-bg: linear-gradient(180deg, #f7f1e6 0%, #efe3ca 100%);
  --card-bg: rgba(255, 252, 246, 0.96);
  --card-border: rgba(123, 88, 46, 0.16);
  --text-main: #2c2118;
  --text-muted: #6a5745;
  --accent: #b34b31;
  --accent-strong: #8f351f;
  --field-border: #ccb79c;
  --field-focus: #ce6d3f;
  --error: #a02f2f;
  --disabled: #d8c9b5;
  --shadow: 0 22px 48px rgba(74, 48, 21, 0.12);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
}

body {
  min-height: 100vh;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  width: min(100%, 560px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 24px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.description {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.field-group,
.checkbox-group {
  display: grid;
  gap: 8px;
}

.field-label,
.checkbox-label {
  font-weight: 600;
  line-height: 1.4;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--text-main);
  background: #fffdfa;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px rgba(206, 109, 63, 0.16);
}

.field-input.is-invalid {
  border-color: var(--error);
}

.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-label input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.field-error {
  min-height: 1.1em;
  margin: 0;
  color: var(--error);
  font-size: 0.92rem;
}

.submit-button {
  border: 0;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font: inherit;
  font-weight: 700;
  color: #fff7ef;
  background: var(--accent);
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.submit-button:hover:not(:disabled),
.submit-button:focus-visible:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.submit-button:disabled {
  background: var(--disabled);
  color: rgba(44, 33, 24, 0.55);
  cursor: not-allowed;
}

.form-status {
  min-height: 1.1em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
    align-items: stretch;
  }

  .form-card {
    padding: 24px 18px;
  }
}
