/* 
   Specialized Medical Landing Page Styles
   Theme: Premium Medical, Clean, Safe, Mobile-First
   Language: Arabic (RTL)
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  /* Color Palette - HSL values for flexibility and transparency */
  --primary-h: 216;
  --primary-s: 85%;
  --primary-l: 43%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l)); /* Medical Blue */
  --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);
  --primary-hover: hsl(var(--primary-h), var(--primary-s), 35%);

  --teal-h: 174;
  --teal-s: 65%;
  --teal-l: 41%;
  --teal: hsl(var(--teal-h), var(--teal-s), var(--teal-l)); /* Turquoise / Calm Teal */
  --teal-light: hsl(var(--teal-h), var(--teal-s), 95%);

  --green-h: 142;
  --green-s: 56%;
  --green-l: 43%;
  --green: hsl(var(--green-h), var(--green-s), var(--green-l)); /* Safe Green */
  --green-light: hsl(var(--green-h), var(--green-s), 94%);
  --green-hover: hsl(var(--green-h), var(--green-s), 35%);

  --dark-h: 220;
  --dark-s: 30%;
  --dark-l: 14%;
  --dark: hsl(var(--dark-h), var(--dark-s), var(--dark-l)); /* Navy Charcoal */
  --text-muted: hsl(var(--dark-h), 15%, 45%);

  --light-bg: hsl(210, 40%, 98%);
  --white: #ffffff;
  --border-color: hsl(210, 20%, 90%);
  --warning-bg: #fff9db;
  --warning-text: #f08c00;

  /* Typography */
  --font-main: 'Tajawal', sans-serif;
  --font-heading: 'Cairo', sans-serif;

  /* Layout & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 49, 85, 0.08);
  --shadow-lg: 0 16px 40px rgba(27, 49, 85, 0.12);
  --radius: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--dark);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  color: var(--text-muted);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

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

.btn-primary:hover, .btn-primary:active {
  background-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

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

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.status-badge {
  background-color: var(--green-light);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite alternate;
}

/* Hero Section */
.hero {
  padding: 2.5rem 0;
  background: radial-gradient(circle at top left, hsl(215, 80%, 96%), var(--light-bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 2rem;
}

.hero-bullets li {
  position: relative;
  padding-right: 1.8rem;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--dark);
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Card Form Container */
.booking-card-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  position: relative;
}

.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 1rem;
}

.form-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Styling */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-label .optional {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.25rem;
}

.form-control {
  width: 100%;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid hsl(210, 20%, 85%);
  background-color: var(--light-bg);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--dark);
  text-align: right;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 95, 219, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1.25rem;
}

.form-microcopy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.8rem;
  display: block;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem;
  background: var(--light-bg);
  border-radius: 8px;
}

/* Sections Base Styling */
.section {
  padding: 3rem 0;
}

.section-bg-alt {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
}

.section-header p {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.problem-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-right: 4px solid #dc3545; /* Red indicator for problem */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.problem-card-icon {
  width: 32px;
  height: 32px;
  color: #dc3545;
  margin-bottom: 0.75rem;
}

/* Specialization Section */
.spec-highlight-badge {
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 140, 0, 0.2);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  line-height: 1.5;
}

.spec-highlight-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Treatment Protocol Section */
.protocol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: protocol-counter;
}

.protocol-card {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.protocol-card::before {
  counter-increment: protocol-counter;
  content: "0" counter(protocol-counter);
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(11, 95, 219, 0.15);
}

.protocol-card:hover {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.protocol-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Who is this for Section */
.who-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.who-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.who-item-check {
  color: var(--teal);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.medical-alert {
  background-color: #f8f9fa;
  border-right: 4px solid var(--primary);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Results Section */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.result-card {
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-right: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.result-card-icon {
  color: var(--teal);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.result-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--dark);
}

/* Female Therapist Section */
.female-therapist {
  background: linear-gradient(135deg, hsl(215, 80%, 40%), hsl(175, 60%, 45%));
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.female-therapist h2, .female-therapist p {
  color: var(--white);
}

.female-therapist h2::after {
  background: var(--white);
}

.female-therapist-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--white);
}

/* Session Details Section */
.session-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  max-width: 550px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.session-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to left, var(--primary), var(--teal));
}

.session-header-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.price-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 1rem;
}

.session-details-list {
  list-style: none;
  margin-bottom: 2rem;
}

.session-details-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(210, 20%, 96%);
  font-size: 0.95rem;
}

.session-details-list li:last-child {
  border-bottom: none;
}

.session-details-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.session-details-list span.val {
  font-weight: 700;
  color: var(--dark);
  margin-right: auto;
}

/* Trust Section */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.trust-item {
  display: flex;
  gap: 0.85rem;
  background-color: var(--light-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.trust-item-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--dark);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem;
  border-top-color: var(--border-color);
}

/* Form Section */
.form-section {
  background: radial-gradient(circle at bottom right, hsl(175, 60%, 95%), var(--light-bg));
  padding: 4rem 0;
}

.form-section-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: hsl(220, 15%, 70%);
  padding: 3rem 0 7rem; /* Added extra bottom padding for mobile sticky bar */
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-contact h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.8rem;
}

/* Floating Elements (Sticky Bottom CTA & Whatsapp Button) */
.whatsapp-float {
  position: fixed;
  bottom: calc(75px + 1rem); /* Floats above the sticky bottom bar on mobile */
  left: 1.25rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-ring 2s infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
  z-index: 99;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
}

.sticky-cta-bar .btn {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  flex: 1;
}

/* Success Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(27, 49, 85, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

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

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background-color: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.modal-title {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Form validation styling */
.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 1.25rem;
  padding-left: 2.5rem;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-control.is-invalid + .invalid-feedback {
  display: block;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Media Queries for Tablet and Desktop Devices */
@media (min-width: 768px) {
  h1 {
    font-size: 2.3rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1.05rem;
  }
  .hero {
    padding: 4rem 0;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .who-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sticky-cta-bar {
    display: none; /* Hide sticky bottom CTA on desktop, rely on standard CTAs */
  }
  .whatsapp-float {
    bottom: 2rem;
    left: 2rem;
  }
}

@media (min-width: 992px) {
  .protocol-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .protocol-card:nth-child(4) {
    grid-column: span 1;
  }
  .protocol-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* --- YPD Brand Overhaul & Premium Animation System --- */

/* Floating glassmorphism badges around hero */
.floating-badges-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 95, 219, 0.15);
  box-shadow: 0 8px 24px rgba(11, 95, 219, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: float 4s ease-in-out infinite;
  pointer-events: auto;
  transition: var(--transition);
}

.floating-badge:hover {
  transform: scale(1.05) translateY(-3px);
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(11, 95, 219, 0.15);
}

/* Individual badge locations */
.badge-1 { top: 12%; right: 5%; animation-delay: 0s; }
.badge-2 { top: 40%; left: 3%; animation-delay: 1s; }
.badge-3 { bottom: 18%; right: 4%; animation-delay: 0.5s; }
.badge-4 { bottom: 8%; left: 6%; animation-delay: 1.5s; }
.badge-5 { top: 5%; left: 25%; animation-delay: 2s; }

@media (max-width: 991px) {
  .badge-4, .badge-5 { display: none; }
  .badge-1 { top: 8%; right: 2%; }
  .badge-2 { top: 35%; left: 2%; }
  .badge-3 { bottom: 15%; right: 2%; }
}

@media (max-width: 480px) {
  .floating-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Scroll reveal system */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Card hover states */
.problem-card, .protocol-card, .who-item, .result-card, .trust-item, .session-card {
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.problem-card:hover, .protocol-card:hover, .who-item:hover, .result-card:hover, .trust-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 95, 219, 0.25);
  background-color: var(--white);
}

/* CTA Pulse animations */
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.btn-primary.pulse-btn {
  animation: ctaPulse 2s infinite;
}

/* Input Focus Glow */
.form-control {
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 95, 219, 0.12) !important;
}

/* Success Modal Checkmark Animation */
.checkmark-circle {
  width: 72px;
  height: 72px;
  background-color: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.checkmark-circle svg {
  width: 40px;
  height: 40px;
  color: var(--green);
  animation: drawCheck 0.4s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes drawCheck {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* General Layout Optimization */
.hero {
  position: relative;
  overflow: visible;
}

/* Form Message Styles */
.form-message {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  animation: scaleIn 0.3s ease-out both;
}

.form-message.success {
  background-color: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.form-message.error {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid rgba(197, 34, 31, 0.25);
}
