/* Public Health Diagnostics - Live Portal Styling */
:root {
  --phd-primary: #162144;
  --phd-primary-hover: #0d152e;
  --phd-secondary: #FF5B55;
  --phd-secondary-hover: #e5443e;
  --phd-accent-teal: #00B4D8;
  --phd-accent-soft: #EBF8FA;
  --phd-bg-body: #F8FAFC;
  --phd-bg-card: #FFFFFF;
  --phd-bg-muted: #F1F5F9;
  --phd-text-main: #1E293B;
  --phd-text-muted: #64748B;
  --phd-border: #E2E8F0;
  --phd-font-heading: 'Outfit', sans-serif;
  --phd-font-body: 'Inter', sans-serif;
  --phd-radius-sm: 6px;
  --phd-radius-md: 12px;
  --phd-radius-lg: 20px;
  --phd-radius-full: 9999px;
  --phd-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --phd-shadow-md: 0 8px 24px -4px rgba(22, 33, 68, 0.08);
  --phd-shadow-lg: 0 16px 40px -6px rgba(22, 33, 68, 0.12);
  --phd-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--phd-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--phd-text-main);
  background-color: var(--phd-bg-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phd-font-heading);
  color: var(--phd-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--phd-primary);
  text-decoration: none;
  transition: var(--phd-transition);
}

a:hover {
  color: var(--phd-secondary);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--phd-font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--phd-radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--phd-transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--phd-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--phd-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--phd-shadow-md);
}

.btn-secondary {
  background-color: var(--phd-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--phd-secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--phd-shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--phd-border);
  color: var(--phd-primary);
}

.btn-outline:hover {
  border-color: var(--phd-primary);
  background-color: var(--phd-primary);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1EBE5B;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Topbar */
.phd-topbar {
  background-color: #0d152e;
  color: #CBD5E1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phd-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.phd-topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.phd-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
}

.phd-topbar-item a {
  color: #CBD5E1;
}

.phd-topbar-item a:hover {
  color: var(--phd-secondary);
}

/* Header */
.phd-header {
  background: #ffffff;
  box-shadow: var(--phd-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--phd-transition);
}

.phd-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.phd-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phd-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--phd-primary), #203a7a);
  color: #ffffff;
  border-radius: var(--phd-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phd-logo-text {
  display: flex;
  flex-direction: column;
}

.phd-logo-title {
  font-family: var(--phd-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--phd-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.phd-logo-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--phd-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.phd-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.phd-nav a {
  font-family: var(--phd-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--phd-text-main);
  position: relative;
  padding: 6px 0;
}

.phd-nav a:hover,
.phd-nav a.active {
  color: var(--phd-secondary);
}

.phd-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phd-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--phd-primary);
}

/* Hero Section */
.phd-hero {
  position: relative;
  background: linear-gradient(135deg, #F0F4FA 0%, #FFFFFF 60%, #E8F4F8 100%);
  padding: 70px 0 90px;
  overflow: hidden;
}

.phd-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.phd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background-color: rgba(255, 91, 85, 0.1);
  color: var(--phd-secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--phd-radius-full);
  margin-bottom: 20px;
}

.phd-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.phd-hero h1 span {
  color: var(--phd-secondary);
}

.phd-hero-lead {
  font-size: 18px;
  color: var(--phd-text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.phd-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.phd-hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--phd-border);
}

.phd-hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--phd-primary);
}

.phd-hero-feature-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phd-secondary);
  box-shadow: var(--phd-shadow-sm);
  flex-shrink: 0;
}

.phd-hero-card {
  background: #ffffff;
  border-radius: var(--phd-radius-lg);
  padding: 36px;
  box-shadow: var(--phd-shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Stats Strip */
.phd-stats-strip {
  background-color: var(--phd-primary);
  color: #ffffff;
  padding: 44px 0;
}

.phd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.phd-stat-item h4 {
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 4px;
}

.phd-stat-item h4 span {
  color: var(--phd-secondary);
}

.phd-stat-item p {
  color: #CBD5E1;
  font-size: 14px;
  font-weight: 500;
}

/* Section Common */
.phd-section {
  padding: 80px 0;
}

.phd-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.phd-section-subtitle {
  color: var(--phd-secondary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.phd-section-title {
  font-size: 36px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.phd-section-desc {
  color: var(--phd-text-muted);
  font-size: 16px;
}

/* Services Grid */
.phd-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.phd-service-card {
  background: #ffffff;
  border-radius: var(--phd-radius-md);
  padding: 36px 30px;
  border: 1px solid var(--phd-border);
  box-shadow: var(--phd-shadow-sm);
  transition: var(--phd-transition);
  display: flex;
  flex-direction: column;
}

.phd-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 91, 85, 0.3);
  box-shadow: var(--phd-shadow-md);
}

.phd-service-icon {
  width: 60px;
  height: 60px;
  background: var(--phd-accent-soft);
  color: var(--phd-primary);
  border-radius: var(--phd-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--phd-transition);
}

.phd-service-card:hover .phd-service-icon {
  background: var(--phd-secondary);
  color: #ffffff;
}

.phd-service-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.phd-service-card p {
  color: var(--phd-text-muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.phd-service-list {
  list-style: none;
  margin-bottom: 24px;
}

.phd-service-list li {
  font-size: 13.5px;
  color: var(--phd-text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Packages Grid */
.phd-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.phd-package-card {
  background: #ffffff;
  border-radius: var(--phd-radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--phd-border);
  box-shadow: var(--phd-shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phd-package-card.featured {
  border: 2px solid var(--phd-secondary);
  box-shadow: var(--phd-shadow-md);
}

.phd-package-ribbon {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--phd-secondary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--phd-radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phd-package-header {
  border-bottom: 1px solid var(--phd-border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.phd-package-header h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.phd-package-tests-count {
  font-size: 13px;
  color: var(--phd-secondary);
  font-weight: 600;
}

.phd-package-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.phd-package-features li {
  font-size: 14px;
  color: var(--phd-text-main);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed #F1F5F9;
}

/* About Grid */
.phd-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.phd-about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.phd-about-content p {
  color: var(--phd-text-muted);
  margin-bottom: 18px;
  font-size: 16px;
}

.phd-founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.phd-founder-card {
  background: #ffffff;
  border-radius: var(--phd-radius-md);
  padding: 20px;
  border: 1px solid var(--phd-border);
}

.phd-founder-card h5 {
  font-size: 16px;
  color: var(--phd-primary);
  margin-bottom: 4px;
}

.phd-founder-role {
  font-size: 12.5px;
  color: var(--phd-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.phd-founder-card p {
  font-size: 13px;
  color: var(--phd-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* CTA Strip */
.phd-cta-banner {
  background: linear-gradient(135deg, #162144 0%, #1e2e5c 100%);
  color: #ffffff;
  border-radius: var(--phd-radius-lg);
  padding: 50px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 60px 0;
}

.phd-cta-content h3 {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 10px;
}

.phd-cta-content p {
  color: #CBD5E1;
  font-size: 16px;
  margin: 0;
}

.phd-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* Form Styles */
.phd-form-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--phd-shadow-lg);
  border: 1px solid #E2E8F0;
  max-width: 860px;
  margin: 0 auto;
}

.phd-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #F1F5F9;
}

.phd-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  transition: all 0.3s ease;
}

.phd-step.active,
.phd-step.completed {
  opacity: 1;
}

.phd-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.phd-step.active .phd-step-num {
  background: #162144;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 33, 68, 0.15);
}

.phd-step.completed .phd-step-num {
  background: #10B981;
  color: #ffffff;
}

.phd-step-title {
  font-family: var(--phd-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
}

.phd-step-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 12px;
}

.phd-wizard-step {
  display: none;
  animation: phdFadeIn 0.3s ease-in-out;
}

.phd-wizard-step.active {
  display: block;
}

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

.phd-step-heading {
  font-size: 22px;
  font-weight: 700;
  color: #162144;
  margin-bottom: 6px;
}

.phd-step-subheading {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 24px;
}

.phd-form-group {
  margin-bottom: 20px;
}

.phd-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.phd-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

.phd-label .required {
  color: #EF4444;
}

.phd-input,
.phd-select,
.phd-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 15px;
  color: #1E293B;
  background-color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phd-input:focus,
.phd-select:focus,
.phd-textarea:focus {
  border-color: #162144;
  box-shadow: 0 0 0 3px rgba(22, 33, 68, 0.1);
}

.phd-hint {
  display: block;
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

.phd-radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.phd-radio-card {
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.phd-radio-card:hover {
  border-color: #94A3B8;
}

.phd-radio-card.active {
  border-color: #162144;
  background: #F8FAFC;
}

.phd-radio-card input[type="radio"] {
  margin-top: 3px;
}

.phd-radio-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #162144;
  margin-bottom: 4px;
}

.phd-radio-desc {
  display: block;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.4;
}

.phd-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #F8FAFC;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.phd-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.phd-summary-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
}

.phd-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 14px;
}

.phd-summary-row:last-child {
  border-bottom: none;
}

.phd-summary-label {
  color: #64748B;
  font-weight: 500;
}

.phd-summary-val {
  font-weight: 600;
  color: #162144;
  text-align: right;
}

.phd-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
}

/* Success Screen */
.phd-success-screen {
  text-align: center;
  padding: 40px 20px;
}

.phd-success-badge {
  width: 70px;
  height: 70px;
  background: #10B981;
  color: #ffffff;
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.phd-success-screen h2 {
  font-size: 28px;
  color: #162144;
  margin-bottom: 8px;
}

.phd-success-ref {
  font-size: 16px;
  color: #64748B;
  margin-bottom: 12px;
}

.phd-success-ref strong {
  color: #FF5B55;
  font-size: 18px;
}

.phd-success-desc {
  color: #475569;
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: 15px;
  line-height: 1.6;
}

.phd-success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.phd-footer {
  background-color: #0b1122;
  color: #94A3B8;
  padding: 70px 0 30px;
}

.phd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.phd-footer-col h5 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 22px;
}

.phd-footer-about p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.phd-footer-links {
  list-style: none;
}

.phd-footer-links li {
  margin-bottom: 12px;
}

.phd-footer-links a {
  color: #94A3B8;
  font-size: 14px;
}

.phd-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.phd-footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.phd-footer-contact-item svg {
  color: var(--phd-secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.phd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating WA */
.phd-float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s;
}

.phd-float-wa:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .phd-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .phd-services-grid, .phd-packages-grid { grid-template-columns: repeat(2, 1fr); }
  .phd-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .phd-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .phd-topbar { display: none; }
  .phd-nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--phd-shadow-md);
  }
  .phd-nav.open { display: flex; }
  .phd-mobile-toggle { display: block; }
  .phd-hero h1 { font-size: 34px; }
  .phd-about-grid { grid-template-columns: 1fr; }
  .phd-services-grid, .phd-packages-grid { grid-template-columns: 1fr; }
  .phd-form-container { padding: 24px 16px; }
  .phd-steps-indicator { overflow-x: auto; padding-bottom: 14px; justify-content: flex-start; gap: 12px; }
  .phd-step-title { display: none; }
  .phd-step-line { min-width: 20px; }
  .phd-form-grid-2, .phd-radio-cards, .phd-checkbox-grid { grid-template-columns: 1fr; }
  .phd-form-actions { flex-direction: column-reverse; gap: 12px; }
  .phd-form-actions button { width: 100%; }
  .phd-cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .phd-cta-actions { flex-direction: column; width: 100%; }
  .phd-cta-actions .btn { width: 100%; }
  .phd-footer-grid { grid-template-columns: 1fr; }
}
