/* ==========================================================================
   H-Focus Medical Laboratory - Modern Contact Page Stylesheet 2026
   Palette: Primary Emerald Green (#057837), Deep Navy (#0b132b),
   Mint Accent (#10b981), Teal (#06b6d4), Slate (#334155), Clean Background (#f8fafc).
   Strictly NO GOLD. Modern luxury clinical hospital & diagnostic aesthetics.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Global Page & Body Scrolling Fix
   -------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

body,
body.body-loader {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
  position: static !important;
}

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.hf-contact-hero {
  position: relative;
  background: linear-gradient(135deg, #061826 0%, #0b132b 55%, #043819 100%);
  color: #ffffff;
  padding: 68px 0 85px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.hf-contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/herobanners/contact.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.85) contrast(1.1);
}

.hf-contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
              linear-gradient(180deg, rgba(11, 19, 43, 0.82) 0%, rgba(11, 19, 43, 0.96) 100%);
  pointer-events: none;
}

.hf-contact-hero-content {
  position: relative;
  z-index: 2;
}

.hf-contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.hf-contact-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hf-contact-breadcrumb a:hover {
  color: #34d399;
}

.hf-contact-breadcrumb .current {
  color: #6ee7b7;
  font-weight: 600;
}

.hf-contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hf-contact-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #ffffff;
}

.hf-contact-gradient-text {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hf-contact-hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin-bottom: 35px;
}

/* Quick Action Tiles in Hero */
.hf-contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.hf-quick-tile {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hf-quick-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hf-quick-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.hf-quick-tile:hover::before {
  opacity: 1;
}

.hf-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 120, 55, 0.4));
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 1.15rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hf-quick-info {
  position: relative;
  z-index: 1;
  text-align: left;
  overflow: hidden;
}

.hf-quick-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6ee7b7;
  font-weight: 700;
  margin-bottom: 2px;
}

.hf-quick-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   2. Main Interactive Workspace Section
   -------------------------------------------------------------------------- */
.hf-contact-section {
  padding: 65px 0 90px 0;
  background-color: #f8fafc;
  position: relative;
}

/* Contact Form Card */
.hf-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 40px;
  border: 1px solid rgba(5, 120, 55, 0.12);
  box-shadow: 0 16px 45px rgba(11, 19, 43, 0.05), 0 4px 14px rgba(5, 120, 55, 0.03);
  position: relative;
  overflow: hidden;
}

.hf-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #057837 0%, #10b981 50%, #06b6d4 100%);
}

.hf-form-header {
  margin-bottom: 30px;
}

.hf-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 120, 55, 0.08);
  color: #057837;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hf-form-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0b132b;
  margin-bottom: 8px;
}

.hf-form-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Interactive Subject Filter Chips */
.hf-subject-chips-wrap {
  margin-bottom: 24px;
}

.hf-chips-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
  margin-bottom: 10px;
  display: block;
}

.hf-subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  user-select: none;
}

.hf-chip-btn:hover {
  background: #e2e8f0;
  color: #057837;
  border-color: rgba(5, 120, 55, 0.3);
  transform: translateY(-1px);
}

.hf-chip-btn.is-selected {
  background: #057837;
  border-color: #057837;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 120, 55, 0.25);
}

.hf-chip-btn.is-selected i {
  color: #a7f3d0;
}

/* Form Input Enhancements */
.hf-input-group {
  margin-bottom: 22px;
  position: relative;
}

.hf-input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
}

.hf-input-label .required {
  color: #e11d48;
}

.hf-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hf-field-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.hf-contact-input {
  width: 100%;
  height: 52px;
  padding: 12px 18px 12px 46px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
}

.hf-contact-input:focus {
  background: #ffffff;
  border-color: #057837;
  box-shadow: 0 0 0 4px rgba(5, 120, 55, 0.1);
}

.hf-contact-input:focus + .hf-field-icon,
.hf-field-wrap:focus-within .hf-field-icon {
  color: #057837;
}

.hf-contact-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

.hf-contact-textarea {
  height: auto;
  min-height: 130px;
  resize: vertical;
  padding: 14px 18px 14px 46px;
}

.hf-textarea-icon {
  top: 18px;
}

.hf-char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 5px;
}

/* Error Messages */
.error-text,
label.error {
  font-size: 12px;
  font-weight: 600;
  color: #e11d48;
  margin-top: 5px;
  display: block;
}

/* Alert Boxes */
.hf-form-alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: none;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 12px;
}

.hf-form-alert.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.hf-form-alert.alert-danger {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

/* Submit Button */
.hf-btn-submit {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #057837 0%, #0ea750 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(5, 120, 55, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hf-btn-submit:hover {
  background: linear-gradient(135deg, #034b22 0%, #057837 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(5, 120, 55, 0.38);
  color: #ffffff;
}

.hf-btn-submit:active {
  transform: translateY(0);
}

.hf-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hf-btn-submit i {
  transition: transform 0.2s ease;
}

.hf-btn-submit:hover i {
  transform: translateX(3px);
}

/* Security Note */
.hf-security-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
}

.hf-security-guarantee i {
  color: #057837;
}

/* --------------------------------------------------------------------------
   3. Multi-Channel Support Column (Right Side)
   -------------------------------------------------------------------------- */
.hf-support-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Live Status Badge Card */
.hf-status-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 6px 20px rgba(5, 120, 55, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hf-pulse-indicator {
  position: relative;
  width: 14px;
  height: 14px;
}

.hf-pulse-indicator::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.75;
  animation: hfPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hf-pulse-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #057837;
}

@keyframes hfPing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hf-status-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.hf-status-sub {
  font-size: 12px;
  color: #057837;
  font-weight: 600;
  margin: 0;
}

.hf-status-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #057837;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Support Channel Cards */
.hf-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 24px;
  border: 1px solid rgba(5, 120, 55, 0.1);
  box-shadow: 0 10px 30px rgba(11, 19, 43, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hf-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(5, 120, 55, 0.08);
}

.hf-info-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hf-info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
}

.hf-info-card-icon.phone {
  background: linear-gradient(135deg, #057837 0%, #10b981 100%);
}

.hf-info-card-icon.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.hf-info-card-icon.email {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.hf-info-card-icon.location {
  background: linear-gradient(135deg, #0b132b 0%, #1e293b 100%);
}

.hf-info-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b132b;
  margin: 0 0 2px 0;
}

.hf-info-card-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Phone Support Actions */
.hf-phone-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hf-phone-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.hf-phone-btn:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #057837;
  transform: translateX(2px);
}

.hf-phone-btn .tag {
  font-size: 11px;
  font-weight: 600;
  color: #057837;
  background: rgba(5, 120, 55, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

/* WhatsApp Banner Card */
.hf-whatsapp-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hf-whatsapp-text {
  font-size: 13px;
  color: #166534;
  line-height: 1.45;
}

.hf-whatsapp-btn {
  background: #25d366;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.hf-whatsapp-btn:hover {
  background: #1eb956;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Department Email Directory */
.hf-email-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hf-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  font-size: 13px;
  transition: background 0.2s ease;
}

.hf-email-row:hover {
  background: #f1f5f9;
}

.hf-email-dept {
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hf-dept-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.hf-email-dept.lab .hf-dept-dot { background: #e11d48; }
.hf-email-dept.info .hf-dept-dot { background: #0284c7; }
.hf-email-dept.support .hf-dept-dot { background: #057837; }
.hf-email-dept.admin .hf-dept-dot { background: #7c3aed; }
.hf-email-dept.diag .hf-dept-dot { background: #ea580c; }

.hf-email-link {
  color: #057837;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hf-email-link:hover {
  color: #034b22;
  text-decoration: underline;
}

/* Location & Map Card */
.hf-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  height: 200px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.hf-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.hf-location-address {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 14px;
}

.hf-location-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.hf-location-hours strong {
  color: #057837;
}

.hf-location-btns {
  display: flex;
  gap: 10px;
}

.hf-btn-directions {
  flex: 1;
  background: #057837;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.hf-btn-directions:hover {
  background: #034b22;
  transform: translateY(-1px);
}

.hf-btn-location-page {
  background: #f1f5f9;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.hf-btn-location-page:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   4. Emergency Diagnostic Banner
   -------------------------------------------------------------------------- */
.hf-emergency-banner {
  background: linear-gradient(135deg, #0b132b 0%, #061826 100%);
  border-radius: 20px;
  padding: 30px 36px;
  color: #ffffff;
  margin-top: 50px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hf-emergency-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hf-emergency-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hf-emergency-text h4 {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.hf-emergency-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.hf-emergency-btn {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.hf-emergency-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.45);
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hf-contact-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hf-form-card {
    padding: 32px 24px;
  }
  .hf-emergency-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .hf-emergency-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hf-contact-quick-grid {
    grid-template-columns: 1fr;
  }
  .hf-form-card {
    padding: 26px 18px;
  }
  .hf-form-title {
    font-size: 1.5rem;
  }
  .hf-emergency-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Specific iPhone SE / Ultra-compact viewport (<= 380px) */
@media (max-width: 380px) {
  .hf-contact-hero {
    padding: 30px 0 36px 0 !important;
  }
  .hf-contact-hero-title {
    font-size: 1.4rem !important;
  }
  .hf-form-card {
    padding: 20px 14px !important;
  }
  .hf-quick-tile {
    padding: 14px 12px !important;
  }
}
