/*3️⃣ PAGE CONTENT*/
/* Content Area */
body.contact-page main.content h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

.content {
  margin-top: 0;
  padding: 0;
}

/* Contact Information Block */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Contact Row (old style — kept for compatibility) */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-medium);
  padding: 10px;
  border-radius: 4px;
  background: var(--white);
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-row:hover {
  box-shadow: var(--shadow-soft);
}

.contact-row+.contact-row {
  margin-top: 10px;
}

/* Map */
.map-container {
  margin-top: 10px;
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
  /* ← ongeza hii */
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: none;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

/* =====================================================
   PAGE HERO
===================================================== */
.page-hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 35px 30px;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 25px;
  border-bottom: none;
  text-align: center;
}

.contact-section-label {
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: center;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

/* =====================================================
   CONTACT GRID (Form + Info side by side)
===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 0 30px 30px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CONTACT FORM CARD
===================================================== */
.contact-form-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  padding: 32px;
}

.cf-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy, #0B2545);
  margin-bottom: 24px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy, #0B2545);
}

.cf-group input,
.cf-group select,
.cf-group textarea {
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a2e;
  resize: vertical;
  background: #ffffff;
}

.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
  outline: none;
  border-color: var(--gold, #C9922A);
}

.cf-full {
  margin-bottom: 14px;
}

.cf-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.cf-submit:hover {
  background: var(--dropdown-accent);
  color: var(--white);
}

/* =====================================================
   CONTACT INFO CARDS
===================================================== */
.ci-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.ci-card:hover {
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.08);
}

.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;

  /* NORMAL STATE */
  background: rgba(29, 143, 203, 0.18);
  color: var(--nav-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition:
    background 0.35s ease,
    transform 0.35s ease;
}

/* HOVER */
.ci-card:hover .ci-icon {
  background: var(--primary);
  transform: scale(1.08);
}

.ci-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold, #C9922A);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ci-val {
  font-size: 14px;
  color: var(--navy, #0B2545);
  font-weight: 500;
  line-height: 1.5;
}

.ci-sub {
  font-size: 12px;
  color: #5a6378;
  margin-top: 2px;
  line-height: 1.5;
}

/* Map heading */
#mapTitle {
  padding: 0 30px;
  margin-top: 40px;
  /* ongeza */
  margin-bottom: 0;
  /* ← 10px → 0 */
  font-size: 1.2rem;
  color: var(--navy, #0B2545);
}

/* =========================================
   MODERN CONTACT LAYOUT
========================================= */
.contact-layout {
  padding: 0px 4.5rem 0 2px;
}

.contact-main-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  padding: 35px 35px 0;
  /* ← ondoa padding chini */
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
  width: 100%;
}

.contact-main-title {
  font-size: 28px;
  font-weight: 700;
  color: #0B2545;
  margin-bottom: 30px;
}

.contact-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;

  /* NORMAL STATE */
  background: rgba(29, 143, 203, 0.18);
  color: var(--nav-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

/* HOVER */
.contact-block:hover .contact-icon {
  transform: scale(1.08);
  background: var(--primary);
}


.contact-label {
  font-size: 18px;
  font-weight: 700;
  color: #0B2545;
  margin-bottom: 8px;
}

.contact-text {
  font-size: 15px;
  line-height: 1.8;
  color: #5a6378;
}

/* MOBILE */

@media (max-width: 600px) {

  .contact-layout {
    padding: 10px 1rem 30px;
  }

  .contact-main-card {
    padding: 24px;
  }

  .contact-main-title {
    font-size: 24px;
  }

  .contact-block {
    gap: 14px;
  }

  .contact-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

body.contact-page footer {
  padding-top: 0;
  /* ← punguza kutoka 16px hadi 0 */
}

/* =====================================================
   TTCL-STYLE SCROLL ANIMATIONS
===================================================== */

/* INITIAL STATE */
.reveal-up {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;

  will-change: transform, opacity;
}

/* ACTIVE */
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* DELAYS */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.25s;
}

.delay-3 {
  transition-delay: 0.4s;
}

.delay-4 {
  transition-delay: 0.55s;
}

.delay-5 {
  transition-delay: 0.7s;
}

/* =====================================================
   HERO TITLE EFFECT
===================================================== */

.page-hero h1 {
  animation: heroSlideDown 1s ease both;
}

.page-hero p {
  animation: heroFade 1.4s ease both;
}

@keyframes heroSlideDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =====================================================
   CONTACT CARD HOVER — TTCL STYLE
===================================================== */

.contact-main-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-main-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 14px 40px rgba(11, 37, 69, 0.12);
}

/* CONTACT BLOCKS */
.contact-block {
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.contact-block:hover {
  transform: translateX(6px);

  background: rgba(11, 37, 69, 0.02);
}

/* ICON ANIMATION */
.contact-icon {
  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

/* =====================================================
   MAP ANIMATION
===================================================== */

.map-container iframe {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.map-container iframe:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.14);
}

/* =====================================================
   CONTACT-SECTION-LABEL INSIDE PAGE-HERO (Contact)
   — Bright Black, wraps text only (inline-block fix)
===================================================== */
.page-hero .contact-section-label {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  margin-bottom: 10px;
}

.contact-text strong {
  color: var(--navy, #0B2545);
  font-weight: 700;
}