/* ==========================================================================
   Kazi Nazrul Academy - Dedicated Stylesheet for Contact (contact.html)
   Scope: Page-specific styles only (Base/header/footer loaded via style.css)
   ========================================================================== */

/* Page Wrapper */
.contact-page-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Hero Header Banner */
.contact-hero-header {
  text-align: center;
  margin: 10px 0 24px;
}

.contact-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.contact-hero-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.contact-hero-header p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 0.96rem;
  color: #64748b;
  line-height: 1.6;
}

/* Two-Column Responsive Layout */
.contact-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

/* Left Column: Directory & Campus Info */
.contact-directory-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* Primary Registered Campus Office Card */
.office-primary-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-left: 6px solid var(--brand, #0284c7);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.04);
}

.office-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.office-primary-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.office-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
}

.office-address i {
  color: #0284c7;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Dedicated Calling Helplines Section inside Campus Card */
.office-calling-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.calling-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 10px;
}

.calling-section-label i {
  color: #0284c7;
}

.calling-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.calling-chip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 48px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
}

.calling-chip-btn i {
  font-size: 0.85rem;
  color: #0284c7;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calling-chip-text {
  display: flex;
  flex-direction: column;
}

.calling-chip-desc {
  font-size: 0.7rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.2;
}

.calling-chip-num {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0369a1;
  line-height: 1.3;
}

.calling-chip-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.calling-chip-btn:hover i {
  background: #ffffff;
  color: #0284c7;
}

.calling-chip-btn:hover .calling-chip-desc,
.calling-chip-btn:hover .calling-chip-num {
  color: #ffffff;
}

/* Quick Action Links */
.office-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #15803d;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn-wa:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.action-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn-email:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.action-btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #475569;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn-map:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Department Helplines Section */
.dept-helplines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dept-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.2s ease;
}

.dept-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.05);
}

.dept-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dept-icon.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.dept-icon.icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.dept-icon.icon-purple {
  background: #f1f5f9;
  color: #475569;
}

.dept-info {
  min-width: 0;
}

.dept-info h6,
.dept-info h3 {
  margin: 0 0 2px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-info a {
  display: inline-block;
  font-size: 0.84rem;
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dept-info a:hover {
  text-decoration: underline;
}

.dept-info span.sub {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Office Hours Box */
.office-hours-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.03);
}

.hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.hours-header h5,
.hours-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-header h5 i {
  color: #0284c7;
}

.status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.hours-table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.guardian-interaction-strip {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guardian-interaction-strip i {
  color: #16a34a;
}

/* Right Column: WhatsApp Instant Enquiry Card */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.06);
  position: relative;
  min-width: 0;
}

.form-header {
  margin-bottom: 20px;
}

.wa-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.form-header h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-header h3 i {
  color: #25D366;
}

.form-header p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group label span.req {
  color: #ef4444;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-control {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

/* WhatsApp Submit Button */
.btn-whatsapp-submit {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 4px;
}

.btn-whatsapp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-submit:active {
  transform: translateY(0);
}

.btn-whatsapp-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-whatsapp-footer-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.form-whatsapp-footer-note i {
  color: #16a34a;
}

/* Redirection Feedback Banner */
.form-redirect-banner {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 14px 16px;
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  animation: fadeIn 0.3s ease;
  margin-top: 10px;
}

.form-redirect-banner strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.form-redirect-banner a.wa-fallback-link {
  display: inline-block;
  margin-top: 6px;
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Transit & Directions Guide Box */
.transit-guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 10px;
}

.transit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.transit-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.transit-item:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
}

.transit-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transit-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.transit-item-head h5,
.transit-item-head h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}

.transit-item p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .transit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-hero-header h1 {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .dept-helplines-grid {
    grid-template-columns: 1fr;
  }
  .calling-chips-grid {
    grid-template-columns: 1fr;
  }
  .office-primary-card {
    padding: 18px 16px;
  }
  .contact-form-card {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .contact-hero-header {
    margin: 6px 0 16px;
  }
  .contact-form-card {
    padding: 16px 14px;
  }
  .office-primary-card {
    padding: 16px 14px;
  }
  .transit-guide-box {
    padding: 16px 14px;
  }
  .btn-whatsapp-submit {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.94rem;
  }
}
