/* ===========================================
   CONTACT — built on shared.css + premium.css
   =========================================== */

.contact-section { padding: 96px 0 104px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

/* ---------- Form card ---------- */
.contact-form-card {
  position: relative;
  background: #FFFEFB;
  border: 1px solid rgba(26, 26, 24, 0.07);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 24px 60px rgba(26, 26, 24, 0.07);
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #FDBA74 60%, transparent 100%);
}
.cf-head { margin-bottom: 26px; }
.cf-head h3 { font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.cf-head p { font-size: 14px; color: var(--ink-muted); }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.cf-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cf-field label span { color: var(--brand-ink); }
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  font: 500 15px/1.5 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(26, 26, 24, 0.12);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B6760' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--ink-faint); }
.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover { border-color: rgba(26, 26, 24, 0.22); }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}
.cf-error { display: none; font-size: 12.5px; color: #B42318; }
.cf-field.is-invalid input,
.cf-field.is-invalid select,
.cf-field.is-invalid textarea { border-color: #D92D20; background: #FFF8F7; }
.cf-field.is-invalid .cf-error { display: block; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.cf-alert {
  font-size: 14px;
  color: #912018;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.cf-alert a { color: inherit; font-weight: 600; text-decoration: underline; }

.cf-submit { width: 100%; padding: 16px 22px; font-size: 13px; border-radius: 10px; }
.cf-submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.cf-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }

.cf-success { text-align: center; padding: 48px 12px; }
.cf-success:not([hidden]) { animation: cfIn 0.5s var(--ease-out) both; }
.cf-success .ico-badge { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; }
.cf-success h3 { font-size: 28px; color: var(--ink); margin-bottom: 10px; }
.cf-success p { max-width: 380px; margin: 0 auto; color: var(--ink-muted); }
.cf-success a { color: var(--brand-ink); font-weight: 600; }
@keyframes cfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Direct contact ---------- */
.contact-direct {
  background: #16171A;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 34px 28px;
  box-shadow: 0 24px 60px rgba(26, 26, 24, 0.14);
}
.contact-direct h3 { color: #FAF8F3; font-size: 22px; margin-bottom: 18px; }
.direct-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}
.direct-row .ico-badge {
  margin: 0;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--hero-ink);
}
.ico-badge--wa svg { width: 20px; height: 20px; }
.direct-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.direct-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.direct-value { font-size: 16px; font-weight: 600; color: #FAF8F3; overflow-wrap: anywhere; }
.direct-arrow { color: rgba(255,255,255,0.35); transition: transform 0.25s var(--ease-out), color 0.25s ease; }
.direct-row:hover .direct-arrow { transform: translateX(4px); color: var(--hero-ink); }
.direct-row:hover .direct-value { color: #fff; }
.direct-hours {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  line-height: 1.6;
}
.direct-hours .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--hero-ink); }
.direct-hours strong { color: #FAF8F3; font-weight: 600; }

/* ---------- Plants ---------- */
#locations { padding: 96px 0; scroll-margin-top: 80px; }
.plant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.plant-card {
  background: var(--bg);
  border: 1px solid rgba(26, 26, 24, 0.07);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.plant-card__tag {
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}
.plant-card h3 { font-size: 34px; color: var(--ink); margin-bottom: 10px; }
.plant-card p { color: var(--ink-muted); margin-bottom: 16px; max-width: 46ch; }
.plant-card__meta { font: 500 12.5px/1 var(--font-mono); color: var(--ink-faint); margin-bottom: 22px; }

/* ---------- Stats ---------- */
.contact-stats { background: #111214; padding: 44px 0; }
.contact-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.contact-stats__grid > div { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255,255,255,0.08); }
.contact-stats__grid > div:first-child { border-left: 0; }
.contact-stats__num { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; color: var(--hero-ink); line-height: 1; }
.contact-stats__label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-section, #locations { padding: 64px 0; }
  .contact-form-card { padding: 28px 20px; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .plant-grid { grid-template-columns: 1fr; }
  .plant-card { padding: 26px 22px; }
  .contact-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .contact-stats__grid > div:nth-child(3) { border-left: 0; }
}

/* Calculator hand-off note */
.cf-estimate-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-ink);
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 22px;
}

/* Plant map */
.plant-map {
  margin-top: 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 24, 0.08);
  box-shadow: 0 18px 44px rgba(26, 26, 24, 0.07);
  line-height: 0;
  background: var(--bg-panel);
}
.plant-map iframe { display: block; filter: grayscale(0.25) contrast(1.02); }
.plant-grid { margin-top: 20px; }
.plant-map__note {
  line-height: 1.6;
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid rgba(26, 26, 24, 0.07);
}
.plant-map__note a { color: var(--brand-ink); font-weight: 600; }
