/* 
  生寶國際生技 Sheng-Bao - Elementor Widget Stylesheet
  Design & Development by YUFINEST
  Strictly compliant with Elementor & Astra guidelines.
  All rights reserved.
*/

.radio-player-section {
  /* Local Scoped Brand Color Variables to prevent external theme contamination */
  --color-primary: #00663d;         /* Sheng-Bao Dark Green */
  --color-secondary: #6fba2c;       /* Sheng-Bao Light Green */
  --color-cta: #e99411;             /* Sheng-Bao Warm Orange */
  --color-cta-hover: #d2820c;       /* CTA Hover State */
  --color-bg: #fffdf9;              /* Warm Champagne Sand Cream */
  --color-white: #ffffff;
  
  /* Auxiliary Colors */
  --color-dark: #1e3527;            /* Healthy Rich Green-Charcoal */
  --color-gray-dark: #475569;       /* Slate Dark Text */
  --color-gray-light: #64748b;      /* Slate Muted Text */
  --color-border: #f1e9db;          /* Warm Champagne Light Border */
  --color-border-dark: #e3d2bd;     /* Slightly darker warm border */
  --color-accent-gold: #c5a880;     /* Elegant Gold Accent */
  --color-accent-gold-light: #f7f3ec;/* Light Gold Accent Background */
  
  /* Fonts */
  --font-serif: 'Noto Serif TC', Georgia, serif;
  --font-sans: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  
  /* Dimensions & Timing */
  --max-width: 1200px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Shadows & Glows */
  --box-shadow-subtle: 0 10px 30px rgba(111, 186, 44, 0.03);
  --box-shadow-medium: 0 15px 40px rgba(0, 102, 61, 0.06);
  --box-shadow-heavy: 0 25px 60px rgba(0, 102, 61, 0.1);
  --box-shadow-gold: 0 15px 35px rgba(197, 168, 128, 0.25);
  --box-shadow-cta: 0 12px 30px rgba(233, 148, 17, 0.3);

  /* Structure */
  padding: 5.5rem 0;
  background-color: var(--color-white);
  position: relative;
  font-family: var(--font-sans);
  color: var(--color-gray-dark);
}

/* Equalizer and Pulse Keyframes */
@keyframes live-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes wave-pulse {
  0% { transform: scaleY(0.15); }
  100% { transform: scaleY(1.3); }
}

.radio-player-section .section-header-center {
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.radio-player-section .section-subtitle {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.radio-player-section .section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.4;
}

.radio-player-section .section-desc {
  font-size: 1.1rem;
  color: var(--color-gray-light);
  line-height: 1.8;
}

/* Selector Grid for Radio Logos (8 grids) */
.radio-player-section .radio-selector-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.radio-player-section .station-btn {
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-subtle);
  width: 100%;
}

.radio-player-section .station-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-medium);
}

.radio-player-section .station-btn.active {
  background-color: var(--color-accent-gold-light);
  border-color: var(--color-cta);
  box-shadow: var(--box-shadow-gold);
}

.radio-player-section .station-logo-container {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.03);
  margin-bottom: 0.5rem;
}

.radio-player-section .station-name-fallback {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-gray-light);
  position: absolute;
  z-index: 1;
}

.radio-player-section .station-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.radio-player-section .station-btn:hover .station-logo-img {
  transform: scale(1.05);
}

.radio-player-section .station-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-dark);
  text-align: center;
  white-space: nowrap;
}

/* Radio Dashboard Core Player */
.radio-player-section .player-outer-dashboard {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
}

.radio-player-section .player-glow {
  position: absolute;
  top: -5%;
  left: -5%;
  right: -5%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(255,255,255,0) 70%);
  filter: blur(15px);
  z-index: 0;
  pointer-events: none;
}

.radio-player-section .player-container {
  background: linear-gradient(145deg, #ffffff 0%, #fefcf7 100%);
  border: 5px solid var(--color-accent-gold);
  border-radius: 20px;
  box-shadow: var(--box-shadow-heavy), 0 10px 30px rgba(197, 168, 128, 0.15);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.radio-player-section .player-photo-side {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-color: var(--color-dark);
}

.radio-player-section .player-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.radio-player-section .player-photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background-color: rgba(0, 102, 61, 0.9);
  color: var(--color-white);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.radio-player-section .player-controls-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.radio-player-section .station-tag-pill {
  display: inline-block;
  background-color: var(--color-accent-gold-light);
  color: var(--color-accent-gold);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.radio-player-section .player-episode-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.radio-player-section .player-episode-desc {
  font-size: 1.02rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
  min-height: 55px;
}

/* Episode selection tabs inside current Station */
.radio-player-section .episode-list-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--color-border-dark);
}

.radio-player-section .ep-select-btn {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-gray-dark);
  transition: var(--transition-fast);
}

.radio-player-section .ep-select-btn:hover {
  background-color: var(--color-accent-gold-light);
  border-color: var(--color-accent-gold);
  color: var(--color-primary);
}

.radio-player-section .ep-select-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Audio Soundwave Equalizer (SVG) */
.radio-player-section .waveform-container {
  width: 100%;
  height: 50px;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  background-color: #f7fbf8;
  border: 1px solid var(--color-border);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.radio-player-section .waveform-svg {
  width: 100%;
  height: 100%;
}

.radio-player-section .wave-bar {
  transform-origin: bottom;
  /* Equalizer animation dynamically loaded in play state */
}

/* Progress area details */
.radio-player-section .player-progress-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.radio-player-section .time-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gray-light);
  min-width: 45px;
}

.radio-player-section .progress-track {
  flex-grow: 1;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.radio-player-section .progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--color-secondary);
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.1s linear;
}

.radio-player-section .progress-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 2px solid var(--color-white);
  position: absolute;
  top: -4px;
  left: 0%;
  transform: translateX(-50%);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: left 0.1s linear;
}

.radio-player-section .progress-track:hover .progress-handle {
  transform: translateX(-50%) scale(1.2);
}

/* Control Button Bar */
.radio-player-section .player-btn-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.radio-player-section .player-ctrl-btn {
  background: transparent;
  color: var(--color-gray-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  padding: 0;
}

.radio-player-section .player-ctrl-btn:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

.radio-player-section .player-play-master {
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 102, 61, 0.3);
  transition: var(--transition-fast);
  padding: 0;
}

.radio-player-section .player-play-master:hover {
  background-color: var(--color-secondary);
  box-shadow: 0 10px 22px rgba(111, 186, 44, 0.35);
  transform: scale(1.08);
}

.radio-player-section .play-icon-svg {
  margin-left: 4px;
}

.radio-player-section .live-pulse-indicator {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f1fbf4;
  border: 1px solid #c6ebd0;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}

.radio-player-section .pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.radio-player-section .pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0;
  animation: live-pulse 2s infinite ease-out;
}

/* Active State layout details */
.radio-player-section .live-pulse-indicator.active {
  background-color: #fff1f2;
  border-color: #fecdd3;
}

.radio-player-section .live-pulse-indicator.active .pulse-dot {
  background-color: #f43f5e;
}

.radio-player-section .live-pulse-indicator.active .pulse-dot::after {
  border-color: #f43f5e;
}

.radio-player-section .live-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #047857;
}

.radio-player-section .live-pulse-indicator.active .live-text {
  color: #be123c;
}

.radio-player-section .hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .radio-player-section .player-container {
    grid-template-columns: 1fr;
  }
  .radio-player-section .player-photo-side {
    min-height: 300px;
  }
  .radio-player-section .radio-selector-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 575px) {
  .radio-player-section .radio-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .radio-player-section .player-controls-side {
    padding: 1.5rem;
  }
  .radio-player-section .player-episode-title {
    font-size: 1.4rem;
  }
}

/* ========================================== */
/* Sheng-Bao Pricing Cards Widget Styles      */
/* ========================================== */
.offers-section {
  padding: 5.5rem 0;
  background-color: var(--color-white, #ffffff);
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  color: var(--color-gray-dark, #475569);
  position: relative;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.price-card {
  background-color: var(--color-bg, #fffdf9);
  border: 2px solid var(--color-border, #f1e9db);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth, all 0.5s cubic-bezier(0.16, 1, 0.3, 1));
  box-sizing: border-box;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium, 0 15px 40px rgba(0, 102, 61, 0.06));
}

.card-badge-top {
  position: absolute;
  top: 1.5rem;
  background-color: var(--color-gray-light, #64748b);
  color: var(--color-white, #ffffff);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
}

.card-badge-top.blue-badge {
  background-color: #2563eb;
}

.card-badge-top.gold-badge {
  background-color: #b45309;
}

.card-title {
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark, #1e3527);
  margin-top: 1rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 1rem;
  color: var(--color-gray-light, #64748b);
  margin-bottom: 2rem;
  font-weight: 700;
}

.card-subtitle-highlight {
  font-size: 1.05rem;
  color: #be123c;
  margin-bottom: 2rem;
  font-weight: 800;
}

.card-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.old-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--color-gray-light, #64748b);
  margin-bottom: 0.25rem;
}

.now-price {
  display: flex;
  align-items: baseline;
  color: var(--color-dark, #1e3527);
}

.now-price-highlight {
  display: flex;
  align-items: baseline;
  color: #be123c;
}

.currency {
  font-size: 1.2rem;
  font-weight: 800;
  margin-right: 0.2rem;
}

.price-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
}

.save-badge {
  background-color: #be123c;
  color: var(--color-white, #ffffff);
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.save-badge-green {
  background-color: var(--color-primary, #00663d);
  color: var(--color-white, #ffffff);
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.price-desc-text {
  font-size: 1rem;
  color: var(--color-gray-dark, #475569);
  margin-bottom: 2rem;
  line-height: 1.6;
  min-height: 48px;
}

.card-features-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  text-align: left;
  border-top: 1px solid var(--color-border-dark, #e3d2bd);
  padding-top: 1.5rem;
  padding-left: 0;
}

.card-features-list li {
  font-size: 0.98rem;
  color: var(--color-gray-dark, #475569);
  line-height: 1.5;
}

.card-features-list li strong {
  color: var(--color-dark, #1e3527);
}

.grey-text {
  color: #a0aec0 !important;
  text-decoration: line-through;
}

.price-card .btn {
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.price-card .btn-primary {
  background-color: var(--color-primary, #00663d);
  color: var(--color-white, #ffffff);
}
.price-card .btn-primary:hover {
  background-color: var(--color-secondary, #6fba2c);
}

.price-card .btn-secondary {
  background-color: var(--color-dark, #1e3527);
  color: var(--color-white, #ffffff);
}
.price-card .btn-secondary:hover {
  background-color: var(--color-primary, #00663d);
}

.price-card .btn-cta {
  background-color: var(--color-cta, #e99411);
  color: var(--color-white, #ffffff);
  box-shadow: 0 8px 24px rgba(233, 148, 17, 0.3);
}
.price-card .btn-cta:hover {
  background-color: #d2820c;
  box-shadow: 0 10px 26px rgba(210, 130, 12, 0.4);
}

.price-card .btn-pulse {
  animation: btn-pulse-glow 2s infinite;
}

/* Highlighted Price Card */
.price-card.highlighted {
  background-color: #fdfaf2;
  border: 4px solid var(--color-accent-gold, #c5a880);
  box-shadow: var(--box-shadow-gold, 0 15px 35px rgba(197, 168, 128, 0.25)), 0 10px 25px rgba(197, 168, 128, 0.15);
  transform: translateY(-8px);
}

.price-card.highlighted:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(197, 168, 128, 0.35);
}

.blinking-badge {
  position: absolute;
  top: -18px;
  background-color: #be123c;
  color: var(--color-white, #ffffff);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 5px 15px rgba(190, 18, 60, 0.35);
  animation: blinking-red-gold 2s infinite ease-in-out;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@keyframes blinking-red-gold {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); background-color: #d12e1a; }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes btn-pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 148, 17, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(233, 148, 17, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 148, 17, 0);
  }
}

@media (max-width: 991px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .price-card.highlighted {
    transform: none;
  }
  .price-card.highlighted:hover {
    transform: translateY(-5px);
  }
}

/* ========================================== */
/* Sheng-Bao FAQ Accordion Widget Styles      */
/* ========================================== */
.faq-section {
  padding: 0;
  background-color: transparent;
  border-top: none;
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  color: var(--color-gray-dark, #475569);
  box-sizing: border-box;
}

.faq-accordion-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

.faq-item {
  border: 2px solid var(--color-border, #f1e9db);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth, all 0.5s cubic-bezier(0.16, 1, 0.3, 1));
  background-color: var(--color-bg, #fffdf9);
  box-sizing: border-box;
  width: 100%;
}

.faq-item:hover {
  border-color: var(--color-primary, #00663d);
  box-shadow: var(--box-shadow-subtle, 0 10px 30px rgba(111, 186, 44, 0.03));
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: var(--color-white, #ffffff);
  transition: var(--transition-fast, all 0.2s ease);
  box-sizing: border-box;
  width: 100%;
}

.faq-question h4 {
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  font-size: 1.15rem;
  color: var(--color-dark, #1e3527);
  font-weight: 800;
  margin: 0;
  text-align: left;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-primary, #00663d);
  font-weight: 700;
  transition: var(--transition-fast, all 0.2s ease);
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 2rem;
  background-color: #fafbfc;
  text-align: left;
  box-sizing: border-box;
}

.faq-answer p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-dark, #475569);
  margin: 0;
}

.faq-item.active .faq-answer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border, #f1e9db);
}

/* ========================================== */
/* Sheng-Bao Contact Form & Toast Popup Styles */
/* ========================================== */
.contact-section {
  padding: 0;
  background-color: transparent;
  position: relative;
  border-top: none;
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  box-sizing: border-box;
}

.contact-container-inner {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0px;
}

.form-wrapper-box {
  background-color: var(--color-white, #ffffff);
  border: 4px solid var(--color-primary, #00663d);
  border-radius: 24px;
  box-shadow: var(--box-shadow-heavy, 0 25px 60px rgba(0, 102, 61, 0.1)), 0 15px 40px rgba(0, 102, 61, 0.1);
  padding: 4.5rem;
  width: 100%;
  max-width: 850px;
  position: relative;
  box-sizing: border-box;
}

.form-wrapper-box::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 2px dashed var(--color-accent-gold, #c5a880);
  border-radius: 32px;
  pointer-events: none;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-badge {
  background-color: #fee2e2;
  color: #dc2626;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  border: 1px solid #fecaca;
  margin-bottom: 1rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

.form-header h2 {
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  font-size: 2.3rem;
  color: var(--color-primary, #00663d);
  margin-bottom: 1rem;
  font-weight: 800;
  margin-top: 0;
}

.form-header p {
  font-size: 1.15rem;
  color: var(--color-gray-dark, #475569);
  line-height: 1.8;
  margin: 0;
}

.form-group {
  margin-bottom: 2.2rem;
  text-align: left;
}

.form-group label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark, #1e3527);
  margin-bottom: 0.75rem;
  display: block;
}

/* Large, friendly fields for elderly users */
.form-input-elderly {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.15rem;
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  color: var(--color-dark, #1e3527);
  background-color: #fafbfc;
  border: 2px solid var(--color-border-dark, #e3d2bd);
  border-radius: 12px;
  transition: var(--transition-fast, all 0.2s ease);
  box-sizing: border-box;
}

.form-input-elderly:focus {
  outline: none;
  background-color: var(--color-white, #ffffff);
  border-color: var(--color-primary, #00663d);
  box-shadow: 0 0 10px rgba(0, 102, 61, 0.12);
}

.text-area-elderly {
  resize: vertical;
  min-height: 100px;
}

/* Custom Checkboxes */
.elderly-checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}

.checkbox-container-elderly {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 3.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  user-select: none;
  min-height: 40px;
  text-align: left;
}

.checkbox-container-elderly input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark-elderly {
  position: absolute;
  top: 0;
  left: 0;
  height: 40px;
  width: 40px;
  background-color: #f1f5f9;
  border: 2px solid var(--color-border-dark, #e3d2bd);
  border-radius: 8px;
  transition: var(--transition-fast, all 0.2s ease);
}

.checkbox-container-elderly:hover input ~ .checkmark-elderly {
  background-color: #e2e8f0;
}

.checkbox-container-elderly input:checked ~ .checkmark-elderly {
  background-color: var(--color-primary, #00663d);
  border-color: var(--color-primary, #00663d);
}

.checkmark-elderly::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container-elderly input:checked ~ .checkmark-elderly::after {
  display: block;
}

.checkbox-container-elderly .checkmark-elderly::after {
  left: 14px;
  top: 6px;
  width: 9px;
  height: 18px;
  border: solid var(--color-white, #ffffff);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.checkbox-label-text {
  color: var(--color-dark, #1e3527);
  line-height: 1.4;
}

/* Huge Consultation submit button */
.btn-submit-elderly {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.4rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(233, 148, 17, 0.4);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.form-security-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-gray-light, #64748b);
  margin-top: 1.5rem;
}

/* Toast Success Popups */
.toast-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 53, 39, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
  box-sizing: border-box;
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
}

.toast-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.toast-popup-card {
  background-color: var(--color-white, #ffffff);
  border: 4px solid var(--color-primary, #00663d);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  padding: 3rem;
  max-width: 550px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.toast-popup-overlay.active .toast-popup-card {
  transform: scale(1);
}

.toast-success-icon {
  background-color: var(--color-primary, #00663d);
  color: var(--color-white, #ffffff);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 20px rgba(0,102,61,0.2);
}

.toast-popup-card h3 {
  font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
  font-size: 1.6rem;
  color: var(--color-primary, #00663d);
  margin-bottom: 1rem;
  font-weight: 800;
  margin-top: 0;
}

.toast-msg-elderly {
  font-size: 1.15rem;
  color: var(--color-dark, #1e3527);
  line-height: 1.8;
  margin-bottom: 1rem;
  margin-top: 0;
}

.toast-msg-sub {
  font-size: 0.95rem;
  color: var(--color-gray-light, #64748b);
  line-height: 1.7;
  margin-bottom: 2rem;
  margin-top: 0;
}

.btn-close-toast {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .form-wrapper-box {
    padding: 2rem 1.5rem;
  }
  .form-wrapper-box::before {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
  }
  .form-header h2 {
    font-size: 1.8rem;
  }
  .form-header p {
    font-size: 1rem;
  }
  .btn-submit-elderly {
    font-size: 1.15rem;
    padding: 1.25rem 1rem;
  }
}

