/* =========================
   DESIGN TOKENS
========================= */
:root {
  --bg-start: #f6e9e0;
  --bg-end: #e9d4c4;

  --card-bg: #cbb9ad;

  --text-primary: #2b1a12;
  --text-secondary: #4a3428;

  --input-bg: #f9f4ef;
  --input-text: #2b1a12;

  --accent: #a6452d;
  --accent-hover: #8f3a26;

  --radius-lg: 28px;
  --radius-md: 18px;

  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s ease;
}

/* =========================
   PAGE BACKGROUND (YES THIS IS A REAL GRADIENT)
========================= */
html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  /* VERY CLEAR linear gradient */
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);

  color: var(--text-primary);

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* soft vignette for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(0, 0, 0, 0.06),
    transparent 60%
  );
  pointer-events: none;
}

/* =========================
   FORM CONTAINER
========================= */
.container {
  width: 100%;
  max-width: 640px;
  padding: 24px;
  box-sizing: border-box;
}

.contact-card {
  width: 100%;
  padding: 40px 32px;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-sizing: border-box;

  /* subtle entrance animation */
  animation: fadeUp 0.8s ease forwards;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
========================= */
@media (max-width: 768px) {
  .contact-card {
    padding: 32px 24px;
  }

  h2 {
    font-size: 1.8rem;
    margin: 0 0 24px 0;
  }

  label {
    margin: 34px 0 30px;
    font-size: 0.95rem;
  }

  input,
  textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  h2 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
  }

  label {
    margin: 34px 0 30px;
    font-size: 0.9rem;
  }

  input,
  textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  button {
    padding: 14px 32px;
    font-size: 0.95rem;
    margin: 28px auto 0;
  }
}

/* =========================
   HEADINGS
========================= */
h2 {
  margin: 0 0 28px 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* =========================
   LABELS
========================= */
label {
  display: block;
  margin: 34px 0 30px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* =========================
   INPUTS & TEXTAREA
========================= */
input,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 16px 18px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  box-sizing: border-box;

  background-color: var(--input-bg);
  color: var(--input-text);

  transition:
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: #8b7a70;
}

/* focus animation */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(166, 69, 45, 0.25);
  transform: translateY(-1px);
}

/* =========================
   CHECKBOX GROUP
========================= */
.checkbox-group {
  margin: 16px 0 24px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-weight: 500;
  cursor: pointer;
}

/* checkbox itself */
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* =========================
   TEXTAREA
========================= */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================
   BUTTON
========================= */
button {
  display: block;
  margin: 36px auto 0;
  padding: 16px 44px;

  font-size: 1rem;
  font-weight: 600;

  color: #fff;
  background-color: var(--accent);

  border: none;
  border-radius: 999px;
  cursor: pointer;

  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Spinner inside button */

.spinner {
  display: none; /* hidden by default so it doesn't create empty space */
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  transform: scale(0.8);
}

button.loading .spinner {
  display: inline-block; /* only present when loading */
  opacity: 1;
  transform: scale(1);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-text { vertical-align: middle; }

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-status {
  margin: 16px;
  max-width: 520px; /* 👈 keeps it aligned with form */
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: normal;
  text-align: center;
}

.form-status.success {
  color: #2f7a4f;
}

.form-status.error {
  color: #a13b2b;
}

.status-secondary {
  display: block;
  color: #5b4a42;
  font-size: 0.92rem;
}

.form-status a { color: var(--accent); text-decoration: underline; }

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
/* =========================
   EMBED MODE STYLES
========================= */
body.embed-mode {
  background: #f9f4ef;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body.embed-mode::before {
  display: none;
}

body.embed-mode .container {
  max-width: 640px;
  width: 100%;
}