/* ══════════════════════════════════════════════════════════
   Contact Section
   ══════════════════════════════════════════════════════════ */
.contact {
  padding: 80px 80px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.contact__card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 16px 60px rgba(8, 120, 201, 0.10);
  display: flex;
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
}

/* ── Left info panel ── */
.contact__left {
  flex: 0 0 38%;
  padding: 48px 40px;
  background: var(--white);
  border-right: 1px solid #f0f4f8;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__heading {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #0d1b2e;
  font-family: Georgia, serif;
  line-height: 1.2;
  margin-bottom: 4px;
}

.contact__sub {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.contact__sub span {
  color: var(--blue);
  font-weight: 600;
}

/* Info items */
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact__info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(8, 120, 201, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__info-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 5px;
}

.contact__info-item p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.contact__note {
  font-size: 0.78rem !important;
  color: var(--blue) !important;
  margin-top: 6px !important;
}

.contact__info-item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.contact__info-item a:hover { text-decoration: underline; }

/* ── Right form panel ── */
.contact__right {
  flex: 1;
  padding: 48px 44px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Two-column row */
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Field wrapper */
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.02em;
}

/* Inputs, selects, textarea */
.contact__field input,
.contact__field select,
.contact__field textarea {
  background: #f4f6f9;
  border: 1.5px solid #e8ecf2;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.85rem;
  color: #333;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #b0b8c8;
}

.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 201, 0.10);
  background: var(--white);
}

.contact__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.contact__field textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button */
.contact__submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  margin-top: 4px;
}

.contact__submit:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   Contact Page — Hero Banner
   ══════════════════════════════════════════════════════════ */
.cu-hero {
  position: relative;
  background: linear-gradient(135deg, #0d1b2e 0%, #0878c9 100%);
  padding: 215px 80px 80px;
  overflow: hidden;
  margin-top: 0; /* clear absolute header */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cu-hero__overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cu-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cu-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.cu-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cu-hero__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 520px;
}

/* ══════════════════════════════════════════════════════════
   Contact Page — Info Cards
   ══════════════════════════════════════════════════════════ */
.cu-info {
  background: #f5f9ff;
  padding: 72px 80px;
}

.cu-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.cu-info__card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px 28px;
  box-shadow: 0 6px 28px rgba(8,120,201,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cu-info__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(8,120,201,0.14);
}

.cu-info__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(8,120,201,0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: background 0.3s, color 0.3s;
}

.cu-info__card:hover .cu-info__icon {
  background: var(--blue);
  color: #fff;
}

.cu-info__card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b2e;
  margin-bottom: 10px;
}

.cu-info__card p {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   Contact Page — Map Section
   ══════════════════════════════════════════════════════════ */
.cu-map {
  background: #fff;
  padding: 72px 80px 80px;
}

.cu-map__header {
  text-align: center;
  margin-bottom: 40px;
}

.cu-map__tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cu-map__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #0d1b2e;
  margin-bottom: 10px;
}

.cu-map__sub {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.7;
}

.cu-map__frame {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(8,120,201,0.12);
  max-width: 1100px;
  margin: 0 auto;
}

.cu-map__frame iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}


/* ==============================
   RESPONSIVE DESIGN (MOBILE)
================================ */
@media (max-width: 768px) {
  .contact {
    padding: 40px 15px !important;
  }

  .contact__card {
    flex-direction: column !important;
    border-radius: 16px;
  }

  .contact__left {
    flex: none !important;
    width: 100% !important;
    padding: 30px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid #f0f4f8 !important;
  }

  .contact__right {
    padding: 30px 20px !important;
  }

  .contact__row {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .contact__field {
    margin-bottom: 0 !important;
  }

  /* Contact Us page Hero Banner specific overrides */
  .cu-hero {
    height: 250px !important;
  }
  .cu-hero__content h1 {
    font-size: 2.2rem !important;
  }

  /* Contact Us page Info Cards Section */
  .cu-info {
    padding: 40px 15px !important;
  }
  .cu-info__grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Contact Us Map Section */
  .cu-map {
    padding: 40px 15px !important;
  }
  
  .cu-map__frame {
    height: 280px !important;
  }
}

@media (max-width: 991px) {
  .cu-info {
    padding: 50px 30px !important;
  }
  .cu-info__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* ══════════════════════════════════════════════════════════
   Auto-Popup Contact Form (Modal)
   ══════════════════════════════════════════════════════════ */
.popup-overlay {
  display: none; /* Hidden by default to prevent flashing/immediate load */
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 46, 0.55); /* dark/dim transparent backdrop */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.active,
.popup-overlay.show {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  padding: 40px;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.popup-overlay.active .popup-box,
.popup-overlay.show .popup-box {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 26px;
  font-weight: 300;
  color: #888;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  z-index: 10;
}

.popup-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.popup-header {
  margin-bottom: 24px;
  padding-right: 30px; /* clear close button space */
}

.popup-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d1b2e;
  font-family: Georgia, serif;
  line-height: 1.2;
  margin-bottom: 6px;
}

.popup-subtitle {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
}

/* Scrollbar styling for the popup container */
.popup-box::-webkit-scrollbar {
  width: 6px;
}
.popup-box::-webkit-scrollbar-track {
  background: transparent;
}
.popup-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.popup-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile responsive styles for the popup modal */
@media (max-width: 576px) {
  .popup-box {
    padding: 30px 20px;
    border-radius: 16px;
  }
  .popup-title {
    font-size: 1.4rem;
  }
  .popup-close {
    top: 15px;
    right: 15px;
  }
}

