/* ==========================================================================
   Phase 5.1: Pregnancy Planning Tool Styles (/planning-tool)
   ========================================================================== */

.hp-planning-hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
  padding: 28px 0 44px;
  border-bottom: 1px solid var(--hp-border);
}

.hp-planning-hero-header {
  max-width: 820px;
  margin: 12px auto 28px;
  text-align: center;
}

.hp-planning-hero-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  color: var(--hp-purple-dark);
  margin: 0 0 10px;
  line-height: 1.22;
}

.hp-planning-hero-subtitle {
  font-size: 16px;
  color: var(--hp-text-secondary);
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
}

/* Calculator Two-Column Grid */
.hp-planning-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hp-planning-form-card,
.hp-planning-summary-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 26px 28px;
  box-shadow: var(--hp-shadow-md);
  min-width: 0;
}

.hp-planning-summary-card {
  border: 2px solid #e9d8fd;
}

/* 4 Radio Method Pills */
.hp-calc-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hp-calc-radio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hp-text-secondary);
  background: #ffffff;
  transition: all 0.2s ease;
}

.hp-calc-radio-pill input {
  accent-color: var(--hp-purple);
}

.hp-calc-radio-pill.is-selected {
  border-color: var(--hp-purple);
  background: var(--hp-purple-tint);
  color: var(--hp-purple-dark);
}

.hp-calc-sub-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: #faf5ff;
  border: 1px solid #e9d8fd;
  border-radius: var(--hp-radius-md);
}

/* Dynamic Output Panel (.summerydiv) */
.hp-summary-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--hp-purple);
  background: var(--hp-purple-tint);
  padding: 6px 14px;
  border-radius: var(--hp-radius-pill);
  margin-bottom: 14px;
}

.hp-summary-edd-box {
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
  border: 1px solid #e9d8fd;
  border-radius: var(--hp-radius-md);
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.hp-summary-edd-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-text-muted);
  margin-bottom: 4px;
}

.hp-summary-edd-date {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--hp-purple-dark);
  line-height: 1.15;
  margin-bottom: 6px;
}

.hp-summary-edd-sub {
  font-size: 14px;
  color: var(--hp-text-secondary);
}

.hp-fetal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  margin-bottom: 18px;
}

.hp-fetal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fce7f3;
  color: #db2777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.hp-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-milestone-row {
  padding: 12px 14px;
  border-left: 3px solid var(--hp-purple);
  background: #f9fafb;
  border-radius: 0 var(--hp-radius-sm) var(--hp-radius-sm) 0;
}

.hp-milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 4px;
}

.hp-milestone-header span {
  font-size: 12px;
  color: var(--hp-text-muted);
}

.hp-milestone-row p {
  font-size: 12.5px;
  color: var(--hp-text-secondary);
  margin: 0 0 6px;
  line-height: 1.45;
}

.hp-milestone-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-purple);
  text-decoration: none;
}

/* Week-by-Week Checklist Tabs & Cards */
.hp-trimester-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-trimester-tab {
  padding: 8px 16px;
  border-radius: var(--hp-radius-pill);
  border: 1px solid var(--hp-border-strong);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-secondary);
  cursor: pointer;
}

.hp-trimester-tab.is-active {
  background: var(--hp-purple);
  border-color: var(--hp-purple);
  color: #ffffff;
}

.hp-trimester-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hp-trimester-panel[hidden] {
  display: none !important;
}

.hp-week-task-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 22px;
  box-shadow: var(--hp-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hp-week-task-card h3 {
  font-size: 17px;
  margin: 10px 0 8px;
  line-height: 1.35;
}

.hp-week-task-card p {
  font-size: 13.5px;
  color: var(--hp-text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

/* Printable Checklists Grid */
.hp-checklists-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hp-checklist-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--hp-shadow-sm);
}

.hp-checklist-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--hp-purple-tint);
  color: var(--hp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.hp-checklist-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.hp-checklist-card p {
  font-size: 13px;
  color: var(--hp-text-secondary);
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}

@media (max-width: 991px) {
  .hp-planning-calc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-trimester-panel,
  .hp-checklists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hp-calc-radio-grid,
  .hp-calc-sub-options,
  .hp-trimester-panel,
  .hp-checklists-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-planning-form-card,
  .hp-planning-summary-card {
    padding: 20px;
  }
}
