/**
 * ClickBiz Location Landing Framework v2.0
 * Reusable Design System Components and Global Tokens
 */

:root {
  /* Colors */
  --primary-color: #0b5394;
  --secondary-color: #3d85c6;
  --cta-color: var(--Prim);
  --cta-hover-color: var(--Hover, #009bb0);
  --bg-light: #F9FBFD;
  --text-dark: #222222;
  --text-muted: #666666;

  /* Card and border specifications */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --box-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Typography Helpers */
.hero-title {
  font-size: 58px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
}

/* Button UI Components */
.btn-landing-cta,
.btn-landing-primary,
.btn-landing-secondary,
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-light {
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  padding: 12px 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: none !important;
  font-size: 15px !important;
  margin-bottom: 0 !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: var(--transition-smooth) !important;
  height: 48px !important;
}

.btn-landing-cta,
.btn-landing-primary {
  background-color: var(--cta-color) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 186, 204, 0.2) !important;
}

.btn-landing-cta:hover,
.btn-landing-primary:hover {
  background-color: var(--cta-hover-color) !important;
  transform: translateY(-2px) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(0, 186, 204, 0.3) !important;
}

.btn-landing-secondary,
.btn-outline-dark {
  background: transparent !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--text-dark) !important;
  box-shadow: none !important;
}

.btn-landing-secondary:hover,
.btn-outline-dark:hover {
  background: var(--text-dark) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
}

.btn-outline-light {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: none !important;
}

.btn-outline-light:hover {
  background: #FFFFFF !important;
  color: var(--primary-color) !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
}

/* Outline secondary button overrides */
.btn-outline-secondary {
  background: #f8fafc !important;
  color: #3C4856 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: none !important;
}

.btn-outline-secondary:hover {
  background: #E5E7EB !important;
  color: #3C4856 !important;
  border-color: rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) !important;
}


/* Appointment Concierge Card */
.appointment-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-soft);
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease-in-out;
}

/* Glassmorphism Benefit Pills */
.benefit-pill {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 12px 24px !important;
  width: 100% !important;
}

.benefit-pill .benefit-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
}

.benefit-pill .benefit-text {
  text-align: center !important;
  display: inline-block !important;
  margin: 0 !important;
}

.benefit-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* Services custom card */
.service-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  min-height: 300px !important;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.service-card:hover .service-img-zoom {
  transform: scale(1.03);
}

.service-card:hover .service-card-title {
  color: var(--cta-color) !important;
}

.service-card:hover .arrow-icon {
  transform: translateX(6px);
  display: inline-block;
}

/* Dentist card styles */
.dentist-card {
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  background: #FFFFFF;
  transition: var(--transition-smooth);
}

.dentist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

/* Tech card styles */
.tech-card {
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  background: #FFFFFF;
  transition: var(--transition-smooth);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

/* Before & After card styles */
.before-after-card {
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  background: #FFFFFF;
  transition: var(--transition-smooth);
}

.before-after-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

/* Review / Testimonial card styles */
.review-card {
  background: #FFFFFF;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.02);
}

.review-card::before {
  content: "\201C";
  font-size: 80px;
  color: rgba(11, 83, 148, 0.06);
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: Georgia, serif;
}

/* Accordions (FAQs) style */
.landing-faq-item {
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
}

.faq-chevron {
  font-size: 11px;
  transition: var(--transition-smooth);
}

.landing-faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Personalized Treatment Finder Styling */
.finder-pill {
  transition: var(--transition-smooth) !important;
  padding: 14px 28px !important;
  height: auto !important;
  margin-bottom: 12px !important;
  margin-right: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.finder-pill:hover {
  border-color: var(--cta-color) !important;
  color: var(--cta-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 186, 204, 0.1);
  background-color: #FFFFFF !important;
}

/* Temporary glow attention effect for the booking card */
.appointment-card.highlight-glow {
  animation: cardGlowTransition 2s ease-in-out !important;
}

@keyframes cardGlowTransition {
  0% {
    box-shadow: var(--box-shadow-soft);
    border-color: rgba(0, 0, 0, 0.03);
  }
  25%, 75% {
    box-shadow: 0 0 0 4px rgba(0, 186, 204, 0.2), 0 0 25px rgba(0, 186, 204, 0.45) !important;
    border-color: var(--Prim) !important;
  }
  100% {
    box-shadow: var(--box-shadow-soft);
    border-color: rgba(0, 0, 0, 0.03);
  }
}

/* Premium Segmented Button Group (Bootstrap btn-group style) for Radio Buttons */
.wpcf7-radio,
.radio-buttons-container,
.wpcf7-form-control.wpcf7-radio {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  width: 100% !important;
  margin-top: 0 !important; /* Removed margin-top */
  border: none !important;
  background: transparent !important;
}

/* Ensure flex children (including CF7 list-item spans) expand equally */
.wpcf7-radio .wpcf7-list-item,
.radio-buttons-container .active-pill-wrapper,
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  display: block !important;
  margin: 0 !important;
}

/* Common style reset for nested and sibling label choices inside the button group */
.wpcf7-radio label,
.wpcf7-list-item label,
label.active-pill-wrapper,
.active-pill-wrapper,
input[type="radio"] + label,
.custom-control.custom-radio label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 12px 16px !important;
  background: #fafbfc !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #4B5563 !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  margin: 0 !important;
  width: 100% !important;
  height: 48px !important;
  position: relative !important;
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
}

/* Left button: rounded left corners only, hide right border to prevent double border */
.wpcf7-radio .wpcf7-list-item:first-child label,
.radio-buttons-container .active-pill-wrapper:first-child,
.custom-control.custom-radio:first-child label,
.wpcf7-radio .wpcf7-list-item:first-of-type label,
.radio-buttons-container .active-pill-wrapper:first-of-type,
.custom-control.custom-radio:first-of-type label {
  border-radius: 50px 0px 0px 50px !important;
  border-right: none !important;
}

/* Right button: rounded right corners only */
.wpcf7-radio .wpcf7-list-item:last-child label,
.radio-buttons-container .active-pill-wrapper:last-child,
.custom-control.custom-radio:last-child label,
.wpcf7-radio .wpcf7-list-item:last-of-type label,
.radio-buttons-container .active-pill-wrapper:last-of-type,
.custom-control.custom-radio:last-of-type label {
  border-radius: 0px 50px 50px 0px !important;
}

/* Hide default circular inputs */
input[type="radio"],
label input[type="radio"],
.custom-control-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

/* Hide Bootstrap custom-control indicators if present */
.custom-control-label::before,
.custom-control-label::after {
  display: none !important;
}

/* Hover States */
label:has(input[type="radio"]):hover,
.wpcf7-list-item label:hover,
input[type="radio"] + label:hover {
  background: #f3f4f6 !important;
}

/* Checked / Active States */
label:has(input[type="radio"]:checked),
.wpcf7-list-item label:has(input[type="radio"]:checked),
input[type="radio"]:checked + label,
.custom-control.custom-radio:has(input[type="radio"]:checked) label,
label.active-pill,
.active-pill {
  background: var(--Prim) !important;
  border-color: var(--Prim) !important;
  color: #FFFFFF !important;
}

/* Wizard navigation buttons (prev, next, submit) stretch to fill 100% width together */
.appointment-card .d-flex,
.wpcf7-form .d-flex {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  margin-right: 0 !important;
}

/* Target every possible direct child wrapper inside the flex navigation row */
.appointment-card .d-flex > button,
.appointment-card .d-flex > span,
.appointment-card .d-flex > div,
.appointment-card .d-flex > input,
.wpcf7-form .d-flex > button,
.wpcf7-form .d-flex > span,
.wpcf7-form .d-flex > div,
.wpcf7-form .d-flex > input {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
}

/* Ensure inner elements expand to fill the stretched parent container */
.appointment-card .d-flex button,
.appointment-card .d-flex input[type="submit"],
.wpcf7-form .d-flex button,
.wpcf7-form .d-flex input[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Restrict textarea height to show exactly 3 lines of text */
.appointment-card textarea,
.appointment-form-wrapper textarea,
.wpcf7-form textarea {
  height: 90px !important;
  min-height: 90px !important;
  resize: vertical !important;
}
