/* ============================================
   Components — Buttons, Cards, Accordion,
   Tables, Forms, Badges
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--deeper-water);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--deep-anchor);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--deeper-water);
  border: 2px solid var(--deeper-water);
}

.btn--secondary:hover {
  background: var(--deeper-water);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--deeper-water);
}

.btn--white:hover {
  background: var(--beach-beige);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--deeper-water);
}

.btn--sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  min-height: 44px;
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-md);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 138, 145, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--deeper-water);
  font-size: var(--font-size-xl);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
  background: var(--beach-beige);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  border-color: var(--deeper-water);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--deeper-water);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--golden-hour);
  color: var(--deep-anchor);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.pricing-card .price {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--deeper-water);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.pricing-card .price span {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
}

.pricing-card .pricing-detail {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.comparison-table thead th {
  background: var(--deep-anchor);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: left;
}

.comparison-table thead th:last-child {
  background: var(--deeper-water);
}

.comparison-table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
  vertical-align: top;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:first-child {
  font-weight: var(--font-weight-semibold);
  background: rgba(14, 74, 78, 0.03);
  white-space: nowrap;
}

.comparison-table tbody td:last-child {
  background: rgba(26, 138, 145, 0.08);
  color: var(--deep-anchor);
  font-weight: var(--font-weight-medium);
}

/* ============================================
   SIMPLE TABLE (Pricing Preview)
   ============================================ */
.simple-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.simple-table th,
.simple-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
}

.simple-table thead th {
  background: var(--deep-anchor);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.simple-table tbody td {
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
}

.simple-table tbody td:last-child {
  font-weight: var(--font-weight-semibold);
  color: var(--deeper-water);
}

.simple-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   ACCORDION (FAQ)
   ============================================ */
.accordion-group h3 {
  font-size: var(--font-size-lg);
  color: var(--deep-anchor);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--deeper-water);
}

.accordion-group h3:first-child {
  margin-top: 0;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-align: left;
  background: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  min-height: 44px;
}

.accordion-trigger:hover {
  background: rgba(26, 138, 145, 0.05);
}

.accordion-trigger[aria-expanded="true"] {
  background: rgba(26, 138, 145, 0.05);
  border-bottom: 1px solid var(--border-light);
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: var(--space-md);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--deeper-water);
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-panel-inner {
  padding: var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.accordion-panel-inner p + p {
  margin-top: var(--space-md);
}

.accordion-panel-inner a {
  color: var(--deeper-water);
  text-decoration: underline;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-size-base);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--deeper-water);
  box-shadow: 0 0 0 3px rgba(26, 138, 145, 0.15);
}

.form-control.error {
  border-color: var(--error);
}

.form-error {
  display: none;
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.form-group.has-error .form-error {
  display: block;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  display: none;
  background: rgba(45, 138, 78, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  color: var(--success);
  font-weight: var(--font-weight-medium);
}

/* ============================================
   MEDICATION ROWS (Benefits Review)
   ============================================ */
.medication-row {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}

.medication-row:last-of-type {
  border-bottom: none;
}

.medication-row-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.medication-actions {
  margin-top: var(--space-sm);
}

.medication-add-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-family: inherit;
  color: var(--deeper-water);
  background: none;
  border: 1px dashed var(--deeper-water);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  min-height: 44px;
  margin-top: var(--space-md);
}

.medication-add-btn:hover {
  background: rgba(26, 138, 145, 0.08);
}

.medication-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  font-family: inherit;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  min-height: 44px;
}

.medication-remove-btn:hover {
  color: var(--error);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: var(--font-size-lg);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-body > p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.modal-confirmation {
  text-align: center;
  padding: var(--space-xl) 0;
}

.modal-confirmation p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
}

/* ============================================
   CONTACT FORM 7 OVERRIDES
   ============================================ */
.wpcf7 label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-size-base);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  margin-bottom: var(--space-lg);
  font-family: inherit;
}

.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--deeper-water);
  box-shadow: 0 0 0 3px rgba(26, 138, 145, 0.15);
}

.wpcf7 textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
  background: var(--deeper-water);
  color: var(--white);
}

.wpcf7 .wpcf7-submit:hover {
  background: var(--deep-anchor);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--error);
}

.wpcf7 .wpcf7-not-valid-tip {
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.wpcf7 .wpcf7-response-output {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0 0;
  font-size: var(--font-size-sm);
}

/* ============================================
   LISTS (Included / Not Included)
   ============================================ */
.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--deeper-water);
  font-weight: var(--font-weight-bold);
}

.x-list li::before {
  content: '—';
  color: var(--text-secondary);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  background: rgba(247, 195, 82, 0.2);
  color: var(--deep-anchor);
}

/* ============================================
   STEP INDICATORS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step-counter;
}

.step {
  text-align: center;
  counter-increment: step-counter;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background: var(--deeper-water);
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================
   "WHO IS DPC FOR" — Target Audience Blocks
   ============================================ */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.audience-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.audience-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(26, 138, 145, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
}

.audience-icon svg {
  width: 24px;
  height: 24px;
}

.audience-item h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.audience-item p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ============================================
   CALLOUT / NOTE BOX
   ============================================ */
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--deeper-water);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.callout p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.callout strong {
  color: var(--text-primary);
}

/* ============================================
   PROVIDER BIO
   ============================================ */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.bio-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.bio-photo-initials {
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-text h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
}

.bio-text .bio-title {
  color: var(--deeper-water);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-lg);
}

.bio-text p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   CONTACT INFO CARD
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(26, 138, 145, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deeper-water);
  font-size: var(--font-size-lg);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-item h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.contact-info-item a:hover {
  color: var(--deeper-water);
}

/* Map */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-xl);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}
