/*
 Theme Name: Health Insurance Portal Child
 Template: astra
 Description: Lead generation child theme for health-insurance-portal.com. Built for Astra Pro + Spectra Pro. Clone-ready template.
 Version: 4.0.0
 Author: Health Insurance Portal
*/

/* ══════ CSS VARIABLES ══════ */
:root {
  --hip-navy: #0B2E4E;
  --hip-blue: #1565C0;
  --hip-sky: #E3F2FD;
  --hip-accent: #FF8F00;
  --hip-accent-hover: #F57C00;
  --hip-white: #FFFFFF;
  --hip-off-white: #F7FAFE;
  --hip-light-gray: #EEF2F6;
  --hip-text: #1A2B3C;
  --hip-text-light: #5A6B7C;
  --hip-gold: #FFB300;
  --hip-green: #2E7D32;
  --hip-radius: 8px;
  --hip-shadow: 0 2px 16px rgba(11,46,78,0.10);
  --hip-shadow-lg: 0 8px 32px rgba(11,46,78,0.14);
}

/* ══════ GLOBAL ══════ */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--hip-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--hip-navy);
  font-weight: 800;
}

/* ══════ ASTRA HEADER OVERRIDES (Inner Pages) ══════ */
.ast-primary-header {
  background: linear-gradient(135deg, var(--hip-navy) 0%, #14477A 50%, var(--hip-blue) 100%) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.ast-primary-header .site-title a,
.ast-primary-header .site-description {
  color: var(--hip-white) !important;
}

/* Inner page nav menu colors */
.ast-builder-menu-1 .menu-item > .menu-link {
  color: #FFFFFF !important;
}
.ast-builder-menu-1 .menu-item:hover > .menu-link {
  color: #FFB300 !important;
}
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .current-menu-ancestor > .menu-link {
  color: #FFB300 !important;
}

/* Phone box in header */
.hip-phone-box {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--hip-radius);
  padding: 10px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}
.hip-phone-box:hover { background: rgba(255,255,255,0.18); }
.hip-phone-box .label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.6);
}
.hip-phone-box .number {
  font-size: 22px; font-weight: 700; color: var(--hip-white);
  font-family: 'Playfair Display', serif;
  text-decoration: none;
}
.hip-phone-box .number:hover { color: var(--hip-gold); }

/* ══════ NAVIGATION ══════ */
.ast-primary-header .main-header-menu a {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ══════ QUOTE FORM STYLING ══════ */
.hip-quote-box {
  background: var(--hip-white);
  border: 2px solid var(--hip-blue);
  border-radius: 12px;
  box-shadow: var(--hip-shadow-lg);
  overflow: hidden;
}
.hip-quote-header {
  background: linear-gradient(135deg, var(--hip-blue), var(--hip-navy));
  padding: 20px 24px;
  text-align: center;
}
.hip-quote-header h3 {
  color: var(--hip-white) !important;
  font-size: 22px; margin: 0;
}
.hip-quote-header p {
  color: rgba(255,255,255,0.8);
  font-size: 13px; margin: 4px 0 0;
}

/* Fluent Forms within quote box */
.hip-quote-box .fluentform { padding: 24px; }
.hip-quote-box .ff-el-input--label label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.hip-quote-box .ff-el-form-control {
  border: 2px solid var(--hip-light-gray) !important;
  border-radius: var(--hip-radius) !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  background: var(--hip-off-white) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.hip-quote-box .ff-el-form-control:focus {
  border-color: var(--hip-blue) !important;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12) !important;
  background: var(--hip-white) !important;
}
.hip-quote-box .ff-btn-submit {
  width: 100% !important;
  padding: 16px !important;
  background: linear-gradient(135deg, var(--hip-accent), var(--hip-accent-hover)) !important;
  border: none !important;
  border-radius: var(--hip-radius) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(255,143,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.hip-quote-box .ff-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,143,0,0.4) !important;
}

/* ══════ INNER PAGE CONTENT STYLES ══════ */
.hip-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}
.hip-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #0B2E4E;
  font-weight: 800;
  margin-bottom: 16px;
}
.hip-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #0B2E4E;
  font-weight: 800;
  margin: 32px 0 12px;
}
.hip-inner p {
  color: #5A6B7C;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.hip-inner .lead {
  font-size: 18px;
  color: #1A2B3C;
}

/* Service cards grid */
.hip-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.hip-service-card {
  background: #F7FAFE;
  border: 1px solid #EEF2F6;
  border-radius: 12px;
  padding: 24px;
}
.hip-service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #0B2E4E;
  margin-bottom: 8px;
}
.hip-service-card p {
  font-size: 14px;
  margin-bottom: 0;
}

/* CTA banner */
.hip-cta-banner {
  background: linear-gradient(135deg, #0B2E4E, #1565C0);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.hip-cta-banner h2 {
  color: #fff !important;
  margin: 0 0 8px;
}
.hip-cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.hip-cta-banner a {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #FF8F00, #F57C00);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}
.hip-cta-banner a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,143,0,0.4);
}

/* ══════ CONTENT BOXES ══════ */
.hip-content-box {
  background: var(--hip-off-white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--hip-light-gray);
}
.hip-sidebar-box {
  background: linear-gradient(160deg, var(--hip-sky) 0%, var(--hip-white) 100%);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(21,101,192,0.15);
}

/* ══════ 50 STATES SECTION ══════ */
.hip-states-section {
  background: var(--hip-navy);
  padding: 48px 0;
}
.hip-states-section h3 {
  color: var(--hip-white) !important;
  text-align: center;
  margin-bottom: 28px;
}
.fifty-states-grid a {
  color: rgba(255,255,255,0.7) !important;
  background: var(--hip-navy);
  transition: color 0.2s;
}
.fifty-states-grid a:hover {
  color: var(--hip-gold) !important;
}


/* ══════ TRUST BADGES ══════ */
.hip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hip-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ══════ BUTTONS ══════ */
.hip-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--hip-accent), var(--hip-accent-hover));
  color: var(--hip-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--hip-radius);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,143,0,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hip-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,143,0,0.4);
  color: var(--hip-white);
}

/* ══════ GROUP PLAN FORM ══════ */
.hip-employee-row {
  background: var(--hip-off-white);
  border: 1px solid var(--hip-light-gray);
  border-radius: var(--hip-radius);
  padding: 16px;
  margin-bottom: 12px;
}
.hip-add-employee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--hip-sky);
  border: 2px dashed var(--hip-blue);
  border-radius: var(--hip-radius);
  color: var(--hip-blue);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.hip-add-employee:hover { background: #BBDEFB; }

/* ══════ THANK YOU PAGE ══════ */
.hip-thankyou {
  text-align: center;
  padding: 80px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.hip-thankyou .check {
  width: 80px; height: 80px;
  background: var(--hip-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px; color: var(--hip-white);
}
.hip-thankyou h2 { font-size: 32px; margin-bottom: 16px; }
.hip-thankyou p { font-size: 18px; color: var(--hip-text-light); line-height: 1.7; }
.hip-savings { font-size: 28px; font-weight: 800; color: var(--hip-green); }

/* ══════ MOBILE RESPONSIVE ══════ */
@media (max-width: 768px) {
  .hip-quote-box { order: -1; }
  .hip-phone-box .number { font-size: 18px; }
  .fifty-states-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .hip-service-grid { grid-template-columns: 1fr; }
}

/* ══════ HEADER ALIGNMENT FIX ══════ */
/* Constrains header inner + nav bar to same max-width so "Home" lines up with page content */
.hip-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.hip-nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
  background: rgba(0,0,0,0.25);
}
.hip-nav-bar > a,
.hip-nav-dd > a {
  display: inline-block;
  padding: 10px 14px;
  color: rgba(255,255,255,0.85) !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.hip-nav-bar > a:hover,
.hip-nav-dd > a:hover { color: var(--hip-gold) !important; }
.hip-nav-dd { position: relative; }
.hip-nav-sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--hip-navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 8px 8px;
  min-width: 180px;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hip-nav-dd:hover .hip-nav-sub { display: block; }
.hip-nav-sub a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.8) !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hip-nav-sub a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--hip-gold) !important;
}

/* Mobile nav */
.hip-mobile-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: var(--hip-white);
  font-size: 20px;
  padding: 4px 10px;
  cursor: pointer;
  margin-left: auto;
}

/* ══════ FIFTY STATES GRID CENTERING FIX ══════ */
/* Wraps the shortcode output so it's centered and not left-hugging */
.fifty-states-grid {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ══════ MOBILE HEADER ══════ */
@media (max-width: 768px) {
  .hip-mobile-toggle { display: inline-block; }
  .hip-nav-bar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px;
    gap: 0;
  }
  .hip-nav-bar.hip-nav-open { display: flex; }
  .hip-nav-bar > a, .hip-nav-dd > a { padding: 10px 8px; }
  .hip-nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-left: 12px;
  }
}
