/* ============================================================
   ROOVI FARMS — Contact Page Styles
   ============================================================ */

:root {
  --bg: #f5f0e6;
  --panel: #ffffff;
  --brand: #14553d;
  --brand-2: #0f4733;
  --soft: #edf4ea;
  --soft-2: #d6e3d0;
  --text: #1e2a22;
  --muted: #667269;
  --border: #d9cfba;
  --shadow: 0 18px 40px rgba(16, 39, 27, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fbf8f1 0%, #f5f0e6 42%, #efe7d8 100%);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 38px;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, var(--soft-2));
  border: 1px solid rgba(20, 85, 61, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 39, 27, 0.08);
}

.brand-mark img { width: 44px; height: 44px; object-fit: contain; }

.brand-text strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.brand-text span { font-size: 0.82rem; color: var(--muted); }

.back {
  color: var(--brand);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 85, 61, 0.14);
  background: rgba(237, 244, 234, 0.92);
  transition: background 0.18s ease, transform 0.18s ease;
}

.back:hover {
  background: rgba(214, 227, 208, 0.95);
  transform: translateY(-1px);
}

/* ── Hero banner ── */
.hero {
  background: linear-gradient(135deg, rgba(221, 231, 216, 0.8), rgba(255,255,255,0.95));
  border: 1px solid rgba(217, 207, 186, 0.9);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(237, 244, 234, 0.9);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin-bottom: 12px;
  border: 1px solid rgba(20, 85, 61, 0.12);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8b61;
  box-shadow: 0 0 0 5px rgba(47, 139, 97, 0.14);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
  font-size: 1rem;
}

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(217, 207, 186, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(16, 39, 27, 0.10);
  padding: 20px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #18251b;
}

/* ── Form ── */
.form {
  display: grid;
  gap: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #243128;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(20, 85, 61, 0.48);
  box-shadow: 0 0 0 4px rgba(214, 227, 208, 0.65);
}

/* ── Package options ── */
.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.opt {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.opt:hover {
  border-color: rgba(20, 85, 61, 0.3);
  box-shadow: 0 4px 12px rgba(16, 39, 27, 0.08);
}

.opt input { margin-right: 8px; accent-color: var(--brand); }
.opt strong { display: block; margin-bottom: 4px; }
.opt span { color: var(--muted); font-size: 0.86rem; }

/* ── Actions ── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1b6c4b, var(--brand-2));
  box-shadow: 0 14px 26px rgba(15, 71, 51, 0.32);
}

.btn-secondary {
  color: var(--brand);
  background: rgba(237, 244, 234, 0.95);
  border: 1px solid rgba(20, 85, 61, 0.14);
}

/* ── Loading state ── */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 16px;
  top: 50%;
  margin-top: -9px;
}

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

/* ── Download button highlight (after successful submission) ── */
.btn.download-highlight {
  background: linear-gradient(135deg, rgba(47, 139, 97, 0.15), rgba(20, 85, 61, 0.15)) !important;
  border: 2px solid #2f8b61 !important;
  color: #0f4733 !important;
  box-shadow: 0 0 20px rgba(47, 139, 97, 0.25), inset 0 0 0 1px rgba(47, 139, 97, 0.1) !important;
  animation: downloadPulse 2s ease-in-out forwards;
  font-weight: 700;
}

.btn.download-highlight::before {
  content: "✓ ";
  color: #2f8b61;
}

@keyframes downloadPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(47, 139, 97, 0.25), inset 0 0 0 1px rgba(47, 139, 97, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(47, 139, 97, 0.35), inset 0 0 0 1px rgba(47, 139, 97, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(47, 139, 97, 0.25), inset 0 0 0 1px rgba(47, 139, 97, 0.1);
  }
}

/* ── Download button reveal animation ── */
.btn.download-reveal {
  animation: revealDownloadBtn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealDownloadBtn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Summary sidebar ── */
.summary {
  background: linear-gradient(180deg, #edf4ea 0%, #d9e7d2 100%);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(20, 85, 61, 0.12);
}

.summary-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(217, 207, 186, 0.9);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.summary-row span:first-child { color: var(--muted); }
.summary-row strong { color: var(--brand-2); }

.note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Mini cards ── */
.mini {
  background: var(--soft);
  border: 1px solid rgba(20, 85, 61, 0.10);
  border-radius: 16px;
  padding: 14px;
}

.mini strong {
  display: block;
  color: var(--brand-2);
  margin-bottom: 4px;
}

.mini span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Toast notification ── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(16, 39, 27, 0.22);
  backdrop-filter: blur(12px);
  transform: translateX(120%);
  opacity: 0;
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast.removing {
  animation: toastOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast-success {
  background: rgba(237, 244, 234, 0.96);
  border: 1px solid rgba(20, 85, 61, 0.22);
  color: #14553d;
}

.toast-error {
  background: rgba(255, 243, 244, 0.96);
  border: 1px solid rgba(176, 42, 55, 0.22);
  color: #a22a35;
}

.toast-title {
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-body {
  color: inherit;
  opacity: 0.85;
}

@keyframes toastIn {
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}

/* ── Footer ── */
footer {
  padding: 16px 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(217, 207, 186, 0.9);
  padding-top: 14px;
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .back { width: 100%; text-align: center; }
  .toast { min-width: unset; max-width: calc(100vw - 48px); }
}
