/* ==========================================================================
   H-Focus Medical Laboratory - Check Result Modern Portal Styles 2026
   Palette: Emerald (#057837), Deep Navy (#0b132b), Mint (#10b981), Slate (#334155)
   Strictly NO Gold. Clinical modern medical aesthetic.
   ========================================================================== */

/* Page Background & Layout */
.hf-result-page {
  background: radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 60%, rgba(5, 120, 55, 0.06) 0%, transparent 50%),
              #f8fafc;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  padding: 50px 0 80px 0;
}

/* Background Pattern */
.hf-result-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(5, 120, 55, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hf-result-container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

/* Hero Header */
.hf-portal-header {
  text-align: center;
  margin-bottom: 40px;
}

.hf-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 120, 55, 0.2);
  color: var(--hf-primary, #057837);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(5, 120, 55, 0.08);
  margin-bottom: 18px;
}

.hf-portal-title {
  font-family: var(--hf-font-heading, 'Outfit', sans-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--hf-navy, #0b132b);
  line-height: 1.2;
  margin-bottom: 14px;
}

.hf-portal-title .hf-text-gradient {
  background: linear-gradient(135deg, var(--hf-primary, #057837) 0%, var(--hf-accent, #10b981) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hf-portal-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main Lookup Glassmorphic Card */
.hf-lookup-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(5, 120, 55, 0.12);
  box-shadow: 0 20px 50px rgba(11, 19, 43, 0.06), 0 4px 16px rgba(5, 120, 55, 0.04);
  padding: 40px;
  margin-bottom: 35px;
  position: relative;
  transition: all 0.3s ease;
}

/* Segment Pill Switcher (Individual vs Corporate) */
.hf-segment-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.hf-segment-pill {
  display: inline-flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 40px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hf-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hf-segment-btn:hover {
  color: var(--hf-navy, #0b132b);
}

.hf-segment-btn:focus,
.hf-segment-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hf-segment-btn.active {
  background: #ffffff !important;
  color: var(--hf-primary, #057837) !important;
  box-shadow: 0 4px 12px rgba(5, 120, 55, 0.12) !important;
}

.hf-segment-btn.active i {
  color: var(--hf-primary, #057837) !important;
}

/* Form Input Area */
.hf-input-label {
  font-weight: 700;
  color: var(--hf-navy, #0b132b);
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-input-sample-tag {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.hf-lookup-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.hf-input-icon-lead {
  position: absolute;
  left: 18px;
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 3;
}

.hf-lookup-input {
  width: 100%;
  height: 58px;
  padding: 12px 18px 12px 52px;
  font-size: 17px;
  font-weight: 600;
  color: var(--hf-navy, #0b132b);
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  outline: none;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.hf-lookup-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.hf-lookup-input:focus {
  border-color: var(--hf-primary, #057837);
  box-shadow: 0 0 0 4px rgba(5, 120, 55, 0.12);
}

.hf-lookup-input:focus + .hf-input-icon-lead,
.hf-lookup-input-group:focus-within .hf-input-icon-lead {
  color: var(--hf-primary, #057837);
}

.hf-lookup-help {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

/* Submit Button */
.hf-btn-lookup {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #057837 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5, 120, 55, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hf-btn-lookup:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(5, 120, 55, 0.35);
}

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

.hf-btn-lookup .spinner-border {
  width: 20px;
  height: 20px;
  border-width: 2.5px;
}

/* Security Trust Badges Strip */
.hf-security-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid #f1f5f9;
}

.hf-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hf-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(5, 120, 55, 0.08);
  color: var(--hf-primary, #057837);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.hf-trust-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hf-navy, #0b132b);
  line-height: 1.2;
}

.hf-trust-desc {
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   Result Output Displays
   ========================================================================== */
#resultStatus {
  margin-top: 30px;
  animation: hfFadeSlideUp 0.4s ease forwards;
}

@keyframes hfFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status Alert Banners */
.hf-status-alert {
  border-radius: 18px;
  padding: 22px 28px;
  margin-bottom: 24px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hf-status-alert.alert-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
  color: #166534;
}

.hf-status-alert.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #92400e;
}

.hf-status-alert.alert-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
  color: #991b1b;
}

.hf-status-alert.alert-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-color: #bae6fd;
  color: #0369a1;
}

.hf-status-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.alert-success .hf-status-icon-box {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.alert-warning .hf-status-icon-box {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.alert-danger .hf-status-icon-box {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.alert-info .hf-status-icon-box {
  background: #0ea5e9;
  color: #ffffff;
}

.hf-status-text h5 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hf-status-text p {
  margin: 0;
  font-size: 13.5px;
  opacity: 0.9;
}

/* Patient Card Container */
.hf-patient-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(5, 120, 55, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 25px;
}

.hf-patient-card-header {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: #ffffff;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hf-patient-card-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hf-badge-status-ready {
  background: #10b981;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hf-badge-status-processing {
  background: #f59e0b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hf-patient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 26px;
}

.hf-info-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
}

.hf-info-box:hover {
  background: #ffffff;
  border-color: rgba(5, 120, 55, 0.25);
  box-shadow: 0 4px 14px rgba(5, 120, 55, 0.06);
}

.hf-info-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hf-primary, #057837);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hf-info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--hf-navy, #0b132b);
  word-break: break-word;
}

/* Download Action Area */
.hf-download-container {
  text-align: center;
  padding: 10px 0 20px 0;
}

.hf-btn-download-result {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #057837 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 16.5px;
  padding: 16px 42px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 30px rgba(5, 120, 55, 0.3);
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hf-btn-download-result:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(5, 120, 55, 0.4);
}

.hf-download-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 12px;
}

/* Corporate Table View */
.hf-corporate-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.hf-corporate-table-wrap {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.hf-corporate-table {
  width: 100%;
  margin: 0;
  font-size: 14px;
}

.hf-corporate-table th {
  background: #f8fafc;
  color: var(--hf-navy, #0b132b);
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
  padding: 14px 16px;
  white-space: nowrap;
}

.hf-corporate-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.hf-corporate-table tr:hover td {
  background: #f8fafc;
}

.hf-table-btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--hf-primary, #057837);
  color: #ffffff !important;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Guidance Section: Where is my ID? */
.hf-id-guide-section {
  margin-top: 50px;
}

.hf-guide-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hf-navy, #0b132b);
  margin-bottom: 25px;
}

.hf-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hf-guide-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: all 0.25s ease;
}

.hf-guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 120, 55, 0.3);
  box-shadow: 0 10px 24px rgba(5, 120, 55, 0.08);
}

.hf-guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #057837 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
}

.hf-guide-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hf-navy, #0b132b);
  margin-bottom: 8px;
}

.hf-guide-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Quick Support Banner */
.hf-support-banner {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  border-radius: 20px;
  padding: 30px 40px;
  color: #ffffff;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 14px 34px rgba(11, 19, 43, 0.18);
}

.hf-support-info h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.hf-support-info p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.hf-support-actions {
  display: flex;
  gap: 12px;
}

.hf-support-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.hf-support-btn-wa:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

.hf-support-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.hf-support-btn-phone:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .hf-portal-title {
    font-size: 2.3rem;
  }
  .hf-security-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hf-patient-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hf-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hf-result-page {
    padding: 30px 0 60px 0;
  }
  .hf-lookup-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .hf-portal-title {
    font-size: 1.85rem;
  }
  .hf-portal-subtitle {
    font-size: 14px;
  }
  .hf-segment-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .hf-lookup-input {
    height: 52px;
    font-size: 15px;
    padding-left: 46px;
  }
  .hf-btn-lookup {
    height: 50px;
    font-size: 15px;
  }
  .hf-security-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hf-patient-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .hf-corporate-summary {
    grid-template-columns: 1fr;
  }
  .hf-support-banner {
    padding: 22px;
    flex-direction: column;
    text-align: center;
  }
  .hf-support-actions {
    width: 100%;
    flex-direction: column;
  }
  .hf-support-btn-wa, .hf-support-btn-phone {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   Unified Footer Strict Protection (Prevents legacy .wrapper footer overrides)
   ========================================================================== */
footer.hf-footer,
.wrapper footer.hf-footer {
  background: #0b132b !important;
  color: #94a3b8 !important;
  padding: 70px 0 20px 0 !important;
  margin-top: 0 !important;
  position: relative !important;
}

footer.hf-footer .curve,
.wrapper footer.hf-footer .curve {
  display: none !important;
}

footer.hf-footer ul,
.wrapper footer.hf-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.hf-footer ul li,
.wrapper footer.hf-footer ul li {
  padding: 0 !important;
  margin-bottom: 12px !important;
}

footer.hf-footer ul li:before,
.wrapper footer.hf-footer ul li:before {
  display: none !important;
  content: "" !important;
}

footer.hf-footer ul li a,
.wrapper footer.hf-footer ul li a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

footer.hf-footer ul li a:hover,
.wrapper footer.hf-footer ul li a:hover {
  color: #34d399 !important;
  padding-left: 5px !important;
}

footer.hf-footer h5,
.wrapper footer.hf-footer h5 {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}

footer.hf-footer .hf-footer-bottom,
.wrapper footer.hf-footer .hf-footer-bottom {
  margin-top: 50px !important;
  padding-top: 25px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center !important;
  font-size: 13.5px !important;
}

footer.hf-footer .hf-footer-social a,
.wrapper footer.hf-footer .hf-footer-social a {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  transition: all 0.25s ease !important;
}

footer.hf-footer .hf-footer-social a:hover,
.wrapper footer.hf-footer .hf-footer-social a:hover {
  background: #057837 !important;
  transform: translateY(-3px) !important;
}

/* Corporate Table Filter & Progress Bar */
.hf-corp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.hf-corp-search-box {
  position: relative;
  min-width: 260px;
}

.hf-corp-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.hf-corp-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  outline: none;
}

.hf-corp-search-input:focus {
  border-color: #057837;
  box-shadow: 0 0 0 3px rgba(5, 120, 55, 0.1);
}

.hf-progress-wrap {
  background: #e2e8f0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.hf-progress-bar {
  background: linear-gradient(90deg, #057837, #10b981);
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}
