/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */

.con-page {
  background: #eef6e3;
  padding: 140px 80px 96px;
  min-height: 100vh;
}

.con-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Back pill ────────────────────────────────────────────────── */
.con-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid #b8ccb0;
  border-radius: 50px;
  background: transparent;
  color: #1a1a1a;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  margin-bottom: 40px;
  white-space: nowrap;
  transition: background 0.28s, border-color 0.28s;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(20px);
}
.con-back:hover {
  background: rgba(46,125,50,0.07);
  border-color: #2e7d32;
}
.con-back svg { flex-shrink: 0; }

/* ── Main grid: desktop 2-col, mobile flex-col ────────────────── */
.con-main {
  display: grid;
  /* Desktop: left col = text+details spanning 2 rows | right = form spanning 2 rows */
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: auto auto;
  column-gap: 56px;
  row-gap: 40px;
  align-items: start;
  opacity: 0;
  transform: translateY(28px);
}

/* ══════════════════════════════════════════════════════════════
   LEFT TEXT — col 1 row 1
   ══════════════════════════════════════════════════════════════ */
.con-text {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Heading */
.con-heading {
  font-family: 'Gilroy', 'Inter', sans-serif !important;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 800;
  color: #0c2d18;
  line-height: 1.08;
  letter-spacing: -0.3px;
  margin: 0;
}

.con-heading .con-hl {
  background: linear-gradient(105deg, #5cb82a 0%, #9ed01e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.con-desc {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  line-height: 1.72;
  color: #2a4a2a;
  font-weight: 400;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT DETAILS — col 1 row 2
   ══════════════════════════════════════════════════════════════ */
.con-details {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
}

.con-detail-label {
  display: block;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #1a3a14;
  margin: 0 0 8px;
}

.con-detail-text {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: #2a4a2a;
  line-height: 1.65;
  margin: 0;
}
.con-detail-text a {
  color: #2a4a2a;
  text-decoration: none;
  transition: color 0.2s;
}
.con-detail-text a:hover { color: #4a8c1c; }

/* Social icons */
.con-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.con-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10,40,22,0.09);
  color: #1a3a14;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s;
}
.con-social-btn:hover {
  background: rgba(46,125,50,0.18);
  transform: translateY(-2px);
}
.con-social-btn svg { display: block; }

/* ══════════════════════════════════════════════════════════════
   FORM CARD — col 2, rows 1+2
   ══════════════════════════════════════════════════════════════ */
.con-card {
  grid-column: 2;
  grid-row: 1 / 3;
  background: radial-gradient(ellipse at 85% 88%, #1a4a28 0%, #0b2416 58%);
  border-radius: 24px;
  padding: 44px 44px 48px;
  color: #fff;
  align-self: start;
}

.con-card-title {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 7px;
}
.con-card-sub {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
  margin: 0 0 36px;
  line-height: 1.55;
}

/* Form fields */
.con-form { display: flex; flex-direction: column; }

.con-field { margin-bottom: 24px; }

.con-field input,
.con-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.90rem;
  font-weight: 400;
  padding: 9px 0;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}
.con-field textarea { resize: none; height: 64px; }
.con-field input::placeholder,
.con-field textarea::placeholder { color: rgba(255,255,255,0.40); }
.con-field input:focus,
.con-field textarea:focus { border-bottom-color: #9ed01e; }

/* Submit */
.con-submit {
  display: block;
  width: 100%;
  background: #CEFD3E;
  color: #1a1a1a;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 0.02em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.con-submit:hover {
  background: #d8ff55;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(180,240,40,0.28);
}

/* Success / error notice */
.con-notice {
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.con-notice--ok  { background: rgba(158,208,30,0.18); color: #c8ff60; }
.con-notice--err { background: rgba(220,60,60,0.18);  color: #ff9a9a; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .con-page { padding: 110px 36px 80px; }

  /* Switch to flex column — control order explicitly */
  .con-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  /* Mobile order: text → form → details */
  .con-text    { order: 1; }
  .con-card    { order: 2; }
  .con-details { order: 3; grid-template-columns: 1fr; gap: 28px; }

  .con-heading { font-size: clamp(1.9rem, 6.5vw, 2.8rem); }
}

@media (max-width: 480px) {
  .con-page { padding: 96px 20px 72px; }
  .con-card { padding: 32px 24px 40px; border-radius: 20px; }
  .con-back { margin-bottom: 28px; }
  .con-heading { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
}
