/* ============================================================
   COSMOCHEM — Training Page Styles
   Tokens follow the main design system (style.css)
   ============================================================ */

/* ── 1. HERO SECTION ── */
.training-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 12, 28, 0.92) 0%, rgba(10, 12, 28, 0.78) 100%),
              url('../images/producthero.png') center/cover no-repeat;
  padding: 140px 0 100px;
  overflow: hidden;
  text-align: center;
  max-height: 90vh !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
              oklch(75.5% 0.12 212deg / 0.15) 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Floating particles styling */
.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(75.5% 0.12 212deg / 0.25) 0%, transparent 70%);
  animation: floatUp 15s infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.final-cta-eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: oklch(55% 0.13 212deg / 0.18);
  border: 1px solid oklch(75.5% 0.12 212deg / 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff !important;
  margin-bottom: 22px;
}

.hero-title strong {
  color: var(--blue);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: oklch(88% 0.015 212deg);
  max-width: 68ch;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 14px 32px;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .btn-primary {
  background: var(--blue-dark);
  color: oklch(100% 0.00011 271.152);
  /* box-shadow: 0 4px 20px oklch(75.5% 0.12 212deg / 0.35); */
  border: none !important;
  box-shadow: none !important;
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px oklch(75.5% 0.12 212deg / 0.5);
  color: #fff;
}

.hero-actions .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-actions .btn-outline-light:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}


/* ── 2. TRAINING PROGRAMS ── */
.programs-section {
  padding: 100px 0;
  background: var(--bg);
}

.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-title strong {
  color: var(--blue-dark);
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.6;
}

.program-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease;
  z-index: 1;
}

.card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: oklch(75.5% 0.12 212deg / 0.06);
  filter: blur(40px);
  top: -40px;
  right: -40px;
  pointer-events: none;
  transition: background 0.25s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: oklch(75.5% 0.12 212deg / 0.4);
}

.program-card:hover .card-glow {
  background: oklch(75.5% 0.12 212deg / 0.15);
}

.program-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.25s ease;
}

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

.icon-soap {
  background: oklch(92% 0.05 212deg);
  color: var(--blue-dark);
}

.icon-cosmetic {
  background: oklch(96% 0.04 350deg);
  color: var(--pink);
}

.icon-skin {
  background: oklch(92% 0.05 145deg);
  color: oklch(52% 0.18 148deg);
}

.icon-hair {
  background: oklch(92% 0.04 290deg);
  color: oklch(55% 0.15 290deg);
}

.icon-equip {
  background: oklch(94% 0.03 60deg);
  color: oklch(62% 0.12 60deg);
}

.icon-testing {
  background: oklch(93% 0.04 180deg);
  color: oklch(50% 0.14 180deg);
}

.program-card:hover .program-icon-wrap {
  transform: scale(1.08);
}

.program-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.program-desc {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 28px;
}

.program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  border: none;
  background: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.btn-learn-more svg {
  transition: transform 0.18s ease;
}

.btn-learn-more:hover {
  color: var(--pink);
}

.btn-learn-more:hover svg {
  transform: translateX(4px);
}


/* ── 3. BOOKING SECTION ── */
.booking-section {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

.booking-glass-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calendar-col {
  border-right: 1px solid var(--border);
}

.calendar-wrapper {
  padding: 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 32px;
  font-size: 0.78rem;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-available { background-color: oklch(62% 0.16 145deg); }
.legend-limited { background-color: oklch(72% 0.16 65deg); }
.legend-booked { background-color: oklch(60% 0.18 20deg); }
.legend-selected { background-color: oklch(60% 0.15 230deg); }
.legend-past { background-color: oklch(85% 0.01 212deg); }

.calendar-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.calendar-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: var(--surface);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.calendar-month-year {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.calendar-grid-container {
  display: flex;
  flex-direction: column;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.18s ease;
}

/* Day button availability coloring styles */
.day-available {
  background-color: oklch(96% 0.02 145deg);
  color: oklch(35% 0.15 145deg);
}
.day-available:hover {
  background-color: oklch(62% 0.16 145deg);
  color: #fff;
}

.day-limited {
  background-color: oklch(97% 0.02 65deg);
  color: oklch(45% 0.15 65deg);
}
.day-limited:hover {
  background-color: oklch(72% 0.16 65deg);
  color: #fff;
}

.day-booked {
  background-color: oklch(97% 0.01 20deg);
  color: oklch(50% 0.15 20deg);
  cursor: not-allowed;
}

.day-selected {
  background-color: oklch(60% 0.15 230deg) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px oklch(60% 0.15 230deg / 0.4);
}

.day-past {
  background-color: transparent;
  color: var(--ink-3);
  opacity: 0.38;
  cursor: not-allowed;
}

.day-empty {
  visibility: hidden;
}

/* Dots inside buttons to denote states */
.day-status-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.day-available .day-status-dot { background-color: oklch(35% 0.15 145deg); }
.day-limited .day-status-dot { background-color: oklch(45% 0.15 65deg); }
.day-booked .day-status-dot { background-color: oklch(50% 0.15 20deg); }


/* Form Side */
.form-col {
  background: var(--surface);
}

.booking-form-wrapper {
  padding: 48px;
}

.form-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.cf-field {
  margin-bottom: 22px;
}

.cf-label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.cf-required {
  color: var(--pink);
}

.cf-input-wrap {
  position: relative;
}

.cf-field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}

.cf-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0 16px 0 46px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cf-input:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px oklch(75.5% 0.12 212deg / 0.15);
}

.cf-input::placeholder {
  color: var(--ink-3);
}

.cf-input-readonly {
  background: var(--surface-2);
  cursor: default;
}

/* Time slots selection styling */
.time-slots-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot-btn {
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.18s ease;
}

.slot-btn:not(.disabled):hover {
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.slot-btn.selected {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  box-shadow: 0 4px 12px oklch(55% 0.13 212deg / 0.25);
}

.slot-btn.disabled {
  background-color: var(--surface-2);
  border-color: var(--border);
  color: var(--ink-3);
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-submit-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.booking-submit-row .btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.booking-submit-row .btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: oklch(15% 0.01 212deg);
  box-shadow: 0 4px 18px oklch(75.5% 0.12 212deg / 0.35);
  border: none;
}

.booking-submit-row .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(75.5% 0.12 212deg / 0.45);
  color: #fff;
}

.booking-submit-row .btn-outline-secondary {
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--ink-2);
}

.booking-submit-row .btn-outline-secondary:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  background: var(--surface-2);
}


/* ── 4. WHY TRAIN WITH US ── */
.why-train-section {
  padding: 100px 0;
  background: var(--bg);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  height: 100%;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-dark), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: oklch(75.5% 0.12 212deg / 0.35);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.2s;
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.feature-card:hover .feature-icon-wrap {
  background: var(--blue-dark);
  color: #fff;
}

.feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}


/* ── 5. FAQ SECTION ── */
.faq-section {
  padding: 100px 0;
  background: var(--surface);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item-custom {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item-custom:hover {
  border-color: var(--border-2);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  border: none;
  background: none;
}

.faq-arrow {
  color: var(--ink-3);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-q[aria-expanded="true"] .faq-arrow {
  transform: rotate(-180deg);
  color: var(--blue-dark);
}

.faq-p {
  height: 0;
  overflow: hidden;
  transition: height 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.faq-p.open {
  height: auto;
}

.faq-p-content {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}


/* ── PROGRAM DETAILS MODAL ── */
.program-modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.program-modal-content h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--ink);
}

.program-modal-content h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.modal-program-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.modal-program-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.modal-info-bullets {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;

}

.modal-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.modal-info-item .lbl {
  font-weight: 700;
  color: var(--ink-3);
}

.modal-info-item .val {
  font-weight: 800;
  color: var(--ink);
}

.modal-syllabus {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-syllabus li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.modal-syllabus li::before {
  content: '✓';
  color: oklch(52% 0.18 148deg);
  font-weight: 800;
  flex-shrink: 0;
}


/* ── RESPONSIVE ADAPTATIONS ── */

@media (max-width: 991.98px) {
  .training-hero {
    padding: 120px 0 80px;
  }
  
  .programs-section,
  .booking-section,
  .why-train-section,
  .faq-section {
    padding: 72px 0;
  }

  .calendar-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .calendar-wrapper {
    padding: 36px;
  }

  .booking-form-wrapper {
    padding: 36px;
  }

  .time-slots-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 767.98px) {
  .programs-section,
  .booking-section,
  .why-train-section,
  .faq-section {
    padding: 60px 0;
  }

  .calendar-wrapper {
    padding: 24px 16px;
  }

  .booking-form-wrapper {
    padding: 24px 16px;
  }

  .calendar-legend {
    gap: 8px 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }

  .calendar-nav-btn {
    width: 32px;
    height: 32px;
  }

  .calendar-month-year {
    font-size: 1rem;
  }

  .calendar-day-btn {
    font-size: 0.8rem;
  }

  .booking-submit-row {
    flex-direction: column;
    gap: 10px;
  }
}








.cf-submit-btn{
  color: white !important;
}







.cf-success-msg{
  background: oklch(52% 0.18 148deg);
  padding: 12px !important;
  color: white !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
}

@media (max-width:768px) {
  .cf-success-msg{
    padding: 8px !important;
    font-size: 0.8rem;
  }
  
}