/* =========================================================
   CONTACT & REACH GNIPST — STYLESHEET
   Department of Life Sciences, GNIPST
   ========================================================= */

:root {
  --ct-navy: #0f2a4a;
  --ct-forest: #0d4a2b;
  --ct-leaf: #1e7e34;
  --ct-amber: #f59e0b;
  --ct-surface: #f8fafc;
  --ct-line: #e2e8f0;
}

/* ---- Contact Info Grid ---- */
.ct-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.ct-info-card {
  background: #ffffff;
  border: 1px solid var(--ct-line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ct-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 42, 74, 0.08);
  border-color: var(--ct-leaf);
}
.ct-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eef8ee;
  color: var(--ct-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.ct-info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0 0 6px;
}
.ct-info-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px;
  flex-grow: 1;
}
.ct-info-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ct-navy);
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.ct-info-val a {
  color: var(--ct-leaf);
  text-decoration: none;
  transition: color 0.18s ease;
}
.ct-info-val a:hover {
  color: var(--ct-forest);
  text-decoration: underline;
}
.ct-info-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ---- Contact Section Split (Form + Map/Sidebar) ---- */
.ct-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.ct-form-card {
  background: #ffffff;
  border: 1px solid var(--ct-line);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.ct-form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ct-navy);
  margin: 0 0 8px;
}
.ct-form-lede {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 28px;
}

/* Form Fields */
.ct-form-row {
  margin-bottom: 20px;
}
.ct-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ct-form-input,
.ct-form-select,
.ct-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ct-form-input:focus,
.ct-form-select:focus,
.ct-form-textarea:focus {
  background: #ffffff;
  border-color: var(--ct-leaf);
  box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.14);
}
.ct-form-textarea {
  resize: vertical;
  min-height: 120px;
}
.ct-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--ct-leaf);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.ct-form-btn:hover {
  background: var(--ct-forest);
  transform: translateY(-1px);
}

/* Map & Details Container */
.ct-map-card {
  background: #ffffff;
  border: 1px solid var(--ct-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}
.ct-map-frame {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}
.ct-map-body {
  padding: 24px 28px;
  background: #ffffff;
}
.ct-map-addr h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0 0 6px;
}
.ct-map-addr p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 16px;
}

/* Transit Directions Cards (Reach GNIPST) */
.ct-transit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.ct-transit-card {
  background: #ffffff;
  border: 1px solid var(--ct-line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ct-transit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 42, 74, 0.08);
}
.ct-transit-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ct-transit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f8f3;
  color: var(--ct-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-transit-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ct-navy);
  margin: 0;
}
.ct-transit-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* Form Alert Messages */
.ct-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.ct-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 900px) {
  .ct-split-grid {
    grid-template-columns: 1fr;
  }
}
