:root {
  color-scheme: light;

  /* warm earth palette */
  --cream: #fdf6f0;
  --cream-deep: #f5e6d3;
  --warm-white: #fffbf7;
  --paper: #fff8f0;

  --ink: #4a3f35;
  --ink-soft: #6b5e52;
  --ink-muted: #9a8e82;

  --terracotta: #c1785a;
  --terracotta-light: #d99a7e;
  --terracotta-deep: #a55d40;

  --sage: #8b9d77;
  --sage-light: #a8b899;
  --sage-deep: #6e7f5c;

  --honey: #e8c547;
  --honey-soft: #f0db8a;

  --rose: #d4846a;
  --rose-soft: #e8b5a4;

  --success: #6e9e6b;
  --danger: #c45c4a;

  --shadow-soft: 0 8px 32px rgba(74, 63, 53, 0.08);
  --shadow-warm: 0 16px 48px rgba(193, 120, 90, 0.14);
  --shadow-glow: 0 0 40px rgba(232, 197, 71, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(232, 197, 71, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(193, 120, 90, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(139, 157, 119, 0.05), transparent 50%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-deep) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- decorative elements ---------- */
.deco-leaf {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  color: var(--sage);
}
.deco-leaf.leaf-1 {
  top: -40px;
  right: -30px;
  width: 180px;
  height: 210px;
  transform: rotate(-15deg);
  opacity: 0.6;
}
.deco-leaf.leaf-2 {
  bottom: -60px;
  left: -50px;
  width: 220px;
  height: 260px;
  transform: rotate(110deg);
  opacity: 0.4;
}

.deco-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--terracotta-light) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12;
}

/* ---------- layout ---------- */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 36px;
  padding: 48px 0;
}

/* ---------- brand panel ---------- */
.brand-panel {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(193, 120, 90, 0.1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.brand-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 197, 71, 0.14), transparent 70%);
  pointer-events: none;
}
.brand-panel::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 157, 119, 0.12), transparent 70%);
  pointer-events: none;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  color: var(--terracotta);
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--terracotta-deep);
  letter-spacing: 0;
}
.brand-tagline {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ---------- illustration ---------- */
.brand-illustration {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cozy-scene {
  position: relative;
  width: 260px;
  height: 200px;
}

.scene-window {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-frame {
  width: 180px;
  height: 160px;
  border: 4px solid var(--terracotta-light);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #b8d4e8 0%, #d4e5f0 60%, #e8d5c0 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 4px 12px rgba(0,0,0,0.06),
    0 8px 24px rgba(193, 120, 90, 0.15);
}

.window-pane {
  position: absolute;
  inset: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5d76e 30%, #e8b94a 70%);
  box-shadow: 0 0 20px rgba(245, 215, 110, 0.5);
  animation: sunPulse 4s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cloud {
  position: absolute;
  top: 32px;
  left: 16px;
  width: 48px;
  height: 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  animation: cloudDrift 8s ease-in-out infinite;
}
.cloud::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 8px;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
}
.cloud-2 {
  top: 48px;
  left: 80px;
  width: 36px;
  height: 16px;
  animation-delay: -3s;
  opacity: 0.7;
}
@keyframes cloudDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.window-sill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(180deg, #d4a574 0%, #c49464 100%);
  border-top: 2px solid rgba(255,255,255,0.2);
}

.potted-plant {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
}
.pot {
  width: 28px;
  height: 18px;
  background: linear-gradient(180deg, #b87050, #a06040);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}
.plant-stem {
  width: 3px;
  height: 24px;
  background: var(--sage-deep);
  margin: 0 auto;
  border-radius: 2px;
}
.plant-leaf {
  position: absolute;
  width: 16px;
  height: 10px;
  background: var(--sage);
  border-radius: 50% 50% 50% 0;
}
.leaf-l {
  top: -4px;
  left: -2px;
  transform: rotate(-45deg);
  animation: leafSway 3s ease-in-out infinite;
}
.leaf-r {
  top: -4px;
  right: -2px;
  transform: rotate(135deg) scaleX(-1);
  animation: leafSway 3s ease-in-out infinite 0.5s;
}
.leaf-c {
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  animation: leafSway 3s ease-in-out infinite 1s;
}
@keyframes leafSway {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-40deg) translateY(-2px); }
}

.warm-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 197, 71, 0.2), transparent 70%);
  pointer-events: none;
}

/* ---------- brand copy ---------- */
.brand-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--terracotta-deep);
  letter-spacing: 0;
}

.brand-desc {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- service notes ---------- */
.service-notes {
  display: grid;
  gap: 16px;
  margin: 0;
}

.service-notes > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: rgba(139, 157, 119, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 157, 119, 0.12);
}

.service-notes dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
}

.note-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.service-notes dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 28px;
}

/* ---------- form panel ---------- */
.form-panel {
  position: relative;
}

.form-envelope {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-warm);
  border: 1px solid rgba(193, 120, 90, 0.12);
  position: relative;
}
.form-envelope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--terracotta-light), transparent);
  opacity: 0.4;
}

.envelope-flap {
  position: absolute;
  top: -12px;
  right: 48px;
  width: 56px;
  height: 28px;
  background: linear-gradient(180deg, var(--honey-soft), var(--honey));
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 12px rgba(232, 197, 71, 0.25);
  z-index: 2;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-group.field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 2px solid rgba(193, 120, 90, 0.18);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: all 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(193, 120, 90, 0.12), var(--shadow-soft);
  background: var(--warm-white);
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "\25BC";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--terracotta);
  font-size: 0.75rem;
  pointer-events: none;
}
select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

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

.field-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--font-ui);
}

/* ---------- consent checkbox ---------- */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(139, 157, 119, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 157, 119, 0.1);
  cursor: pointer;
  transition: background 0.2s;
}
.consent-row:hover {
  background: rgba(139, 157, 119, 0.09);
}

.checkbox-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.consent-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  z-index: 2;
}
.check-custom {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--terracotta-light);
  border-radius: 6px;
  background: var(--warm-white);
  transition: all 0.2s ease;
}
.check-custom::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--warm-white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}
.consent-row input[type="checkbox"]:checked + .check-custom {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.consent-row input[type="checkbox"]:checked + .check-custom::after {
  transform: rotate(45deg) scale(1);
}
.consent-row input[type="checkbox"]:focus + .check-custom {
  box-shadow: 0 0 0 3px rgba(193, 120, 90, 0.2);
}

.consent-text {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  font-family: var(--font-body);
}

/* ---------- form actions ---------- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

#formStatus {
  min-height: 24px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
#formStatus.is-error {
  color: var(--danger);
}
#formStatus.is-success {
  color: var(--success);
}

button {
  min-width: 150px;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(193, 120, 90, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(193, 120, 90, 0.45);
}
button:hover::before {
  left: 100%;
}
button:active {
  transform: translateY(0);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.btn-icon {
  font-size: 1.1rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    width: min(100% - 32px, 620px);
    padding: 32px 0;
    gap: 28px;
  }

  .brand-panel {
    padding: 32px 28px;
  }

  .brand-illustration {
    height: 180px;
  }

  .cozy-scene {
    transform: scale(0.85);
  }

  .form-envelope {
    padding: 32px 28px;
  }

  .deco-leaf.leaf-1 {
    width: 120px;
    height: 140px;
    opacity: 0.35;
  }
  .deco-leaf.leaf-2 {
    width: 140px;
    height: 170px;
    opacity: 0.25;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 460px);
    padding: 24px 0;
  }

  .brand-panel,
  .form-envelope {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  button {
    width: 100%;
  }

  .brand-copy h1 {
    font-size: 2.4rem;
  }
}
