/* === THEME === */
:root {
  --primary: #d946a6 !important;
  --primary-rgb: 217, 70, 166;
  --primary-light: #ec4899;
  --accent: #fce7f3;
  --gray-darker: #222;
  --gray-dark: #333;
  --gray: #666;
  --gray-light: #ddd;
  --gray-lighter: #f9f9f9;
  --danger: #c82333;
}

/* === RESET AND BASE === */
h1, h2, h3, h4, h5, h6 {
  position: relative;
  font-family: "Raleway", sans-serif;
  font-weight: normal;
  margin: 0;
  background: none;
  color: #000000;
}

p {
  position: relative;
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

html {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1.6em;
  font-weight: 400;
  background: #fff;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.5s ease 0s;
}

a:hover,
a:focus,
a:visited,
a:active {
  text-decoration: none;
  outline: none;
  color: #ffffff;
}

/* === INPUT BASE STYLES === */
input,
textarea {
  font-family: "Raleway", sans-serif;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  color: var(--gray-dark);
  background-color: #fff;
  transition: all 0.3s ease;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

input:disabled,
textarea:disabled {
  background-color: var(--gray-lighter);
  cursor: not-allowed;
  opacity: 0.6;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

a:focus,
button:focus {
  outline: none;
}

/* === BUTTON BASE (BEM) === */
.btn {
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.btn:focus,
.btn:active {
  outline: none;
  box-shadow: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active {
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--gray-light);
  color: var(--gray);
}

.btn--secondary:hover,
.btn--secondary:focus,
.btn--secondary:active {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--large {
  padding: 15px 30px;
}

.btn--full-width {
  width: 100%;
}

.btn__icon {
  font-size: 18px;
  margin-left: 12px;
}

/* === SECTION TITLE (BEM) === */
.section-title {
  margin-bottom: 48px;
  text-align: center;
}

.section-title__text {
  display: block;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0;
}

.section-title__subtitle {
  display: block;
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  color: #000;
  margin-top: 0;
  line-height: 1.2;
}

.section-title__description {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray);
  margin-top: 18px;
  margin-bottom: 0;
  line-height: 1.4;
}

.section-title--left {
  text-align: left;
}

.section-title--white .section-title__text,
.section-title--white .section-title__subtitle {
  color: #fff;
}

.section-title--compact {
  margin-bottom: 32px;
}

/* === PAGE LOADER & WRAPPER === */
.page-loader {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-width: 300px;
  min-height: 400px;
  overflow: hidden;
}

/* === HEADER SECTION (BEM) === */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background: #000;
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 13px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.header__nav {
  width: 100%;
}

.header__logo {
  display: inline-block;
}

.header__logo-img {
  width: 300px;
}

.header__toggler {
  border: 1px solid var(--primary);
  padding: 8px;
}

.header__toggler-icon {
  background: var(--primary);
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}

.header__toggler-icon + .header__toggler-icon {
  margin-top: 4px;
}

.header__menu-item {
  padding-right: 0;
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.header__menu-link {
  padding: 0 0 2px 0;
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 500ms ease;
  border-bottom: 2px solid transparent;
}

.header__menu-link:hover,
.header__menu-item--current .header__menu-link {
  border-bottom: 2px solid var(--primary);
  color: #fff;
}

/* === GALLERY COMPONENT (BEM) === */
.gallery {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  z-index: 5;
}

.gallery__wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1/1;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.gallery__track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.gallery__slide {
  width: 33.333333%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.gallery__btn {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  font-size: 24px;
  font-weight: bold;
  margin: 0 15px;
  padding: 0;
  line-height: 1;
}

.gallery__btn:hover {
  background: rgba(var(--primary-rgb), 0.8);
}

.gallery__btn:active {
  transform: scale(0.95);
}

.gallery__indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.gallery__indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 0;
  flex-shrink: 0;
}

.gallery__indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.gallery__indicator--active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

/* === FEATURE CARD COMPONENT (BEM) === */
.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-lighter) 100%);
  padding: 32px 24px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  box-shadow: 0 15px 20px rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.feature-card__icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
  filter: grayscale(1);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-card__icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.feature-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-card__title {
  color: var(--primary);
}

.feature-card__text {
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

/* === INFO CARD COMPONENT (BEM) === */
.info-card {
  display: flex;
  align-items: center;
  background: var(--accent);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.info-card > div:last-child {
  flex: 1;
}

.info-card__icon {
  font-size: 32px;
  margin-right: 18px;
  min-width: 50px;
  text-align: center;
}

.info-card__title {
  display: block;
  color: var(--gray-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-card__text {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

.info-card--large {
  margin-bottom: 48px;
}

.info-card--compact {
  margin-top: 24px;
  margin-bottom: 0;
}

/* When inside a coach card, adjust margins */
.custom-card--coach .info-card--compact {
  margin: 0 24px 24px 24px;
}

.info-card--compact .info-card__icon {
  font-size: 24px;
  min-width: 35px;
  margin-right: 15px;
}

.info-card--compact .info-card__title {
  font-size: 16px;
}

.info-card--compact .info-card__text {
  font-size: 14px;
}

/* === REFORMER SECTION (BEM) === */
.about,
.reformer,
.reformer-benefits,
.reformer-principles,
.reformer-exercises {
  padding: 80px 0;
  position: relative;
}

.about {
  background: #fff;
  padding-top: 160px;
}

.reformer {
  background: #f8f9fa;
}

.reformer-benefits,
.reformer-exercises {
  background: #f8f9fa;
}

.reformer-principles {
  background: #fff;
}

/* === ABOUT SECTION (BEM) === */
.about__intro {
  margin: 0 0 60px 0;
}

.info-card--about {
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-lighter) 100%);
  border-radius: 20px;
  padding: 48px 64px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  position: relative;
  overflow: hidden;
  display: block;
}

.info-card--about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
}

.info-card--about .info-card__content {
  width: 100%;
}

.info-card--about .info-card--compact {
  margin-top: 24px;
  margin-bottom: 0;
}

.about__intro-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 16px;
  text-align: left;
}

.about__intro-text strong {
  color: var(--gray-dark);
  font-weight: 600;
}

/* === UNIFIED CARD COMPONENT (BEM) === */
/* Base custom-card component for coaches and exercises */
.custom-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.custom-card:hover {
  box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.25);
}

.custom-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.custom-card__image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
  transition: opacity 0.3s ease;
}

.custom-card:hover .custom-card__image::after {
  opacity: 0.5;
}

.custom-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.custom-card:hover .custom-card__image img {
  transform: scale(1.1);
}

.custom-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.custom-card__content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-dark);
  margin: 0;
  padding: 20px 20px 12px 20px;
}

.custom-card__text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
  padding: 0 20px 20px 20px;
}

/* Card variant: Coach (taller image, more content) */
.custom-card--coach .custom-card__image {
  height: 350px;
}

.custom-card--coach {
  margin-bottom: 32px;
}

.custom-card--coach .custom-card__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -1px;
  padding: 32px 32px 8px 32px;
}

.custom-card__body {
  flex: 1;
  padding: 0 32px 24px 32px;
}

.custom-card__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 16px;
}

.custom-card__body p:last-child {
  margin-bottom: 0;
}

.custom-card__body strong {
  color: var(--gray-dark);
  font-weight: 600;
}

/* Use existing .info-card component for coach card footer */

/* Coach specific section */
.coaches {
  margin-top: 48px;
}

.reformer__intro {
  margin-bottom: 0;
  align-items: center;
}

.reformer__image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.reformer__image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(var(--primary-rgb), 0.2);
}

.reformer__main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.reformer__content {
  padding: 0 0 0 32px;
}

.reformer__subtitle {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.reformer__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 20px;
}

.reformer__text strong {
  color: var(--gray-dark);
  font-weight: 600;
}

.reformer__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-dark);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  text-transform: uppercase;
}

.reformer__section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  border-radius: 2px;
}

.reformer__intro-text {
  text-align: center;
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefit Cards */
.reformer__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: #fff;
  border-radius: 15px;
  padding: 32px;
  border: 2px solid var(--gray-light);
  transition: all 0.6s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}

.benefit-card:hover::before {
  transform: scaleY(1);
}

.benefit-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.benefit-card__icon {
  font-size: 36px;
  margin-right: 16px;
  min-width: 50px;
}

.benefit-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-dark);
  margin: 0;
}

.benefit-card__text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* Timeline for Principles */
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  margin-bottom: 0;
  transition: all 0.6s ease;
}

.timeline__item:nth-child(2),
.timeline__item:nth-child(3),
.timeline__item:nth-child(4),
.timeline__item:nth-child(5),
.timeline__item:nth-child(6) {
  margin-top: -18px;
}

/* Left side items (odd) */
.timeline__item:nth-child(odd) {
  left: 0;
  text-align: right;
}

/* Right side items (even) */
.timeline__item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline__item--last {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
  transition: all 0.5s ease;
  z-index: 2;
}

/* Marker position for left items */
.timeline__item:nth-child(odd) .timeline__marker {
  right: -30px;
}

/* Marker position for right items */
.timeline__item:nth-child(even) .timeline__marker {
  left: -30px;
}

.timeline__number {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.timeline__content {
  background: #fff;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  display: inline-block;
  text-align: left;
  width: 100%;
}

/* Border for left items */
.timeline__item:nth-child(odd) .timeline__content {
  border-left: 4px solid var(--primary);
  border-right: none;
}

/* Border for right items */
.timeline__item:nth-child(even) .timeline__content {
  border-right: 4px solid var(--primary);
  border-left: none;
}

.timeline__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.timeline__text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--gray);
  margin: 0;
}

/* Note: Exercise cards now use the unified .custom-card component */
/* Legacy styles kept for backward compatibility if needed */



/* === CONTACT SECTION (BEM) === */
.contact {
  background-color: var(--gray-darker);
}

.contact__map {
  width: 100%;
  height: 100%;
  min-height: 550px;
}

.contact__map-iframe {
  width: 100%;
  height: 100%;
  min-height: 550px;
  border: 0;
}

.contact__info {
  background-color: var(--gray-darker);
  color: #fff;
  padding: 48px 40px;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.contact__title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: #fff;
}

.contact__details-item {
  line-height: 1.7;
  font-size: 16px;
  color: #ddd;
  margin: 0;
}

.contact__details-label {
  color: var(--primary);
  font-weight: 700;
}

.contact__details-text {
  font-style: italic;
}

.contact__link {
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* === FOOTER SECTION (BEM) === */
.footer {
  background-color: #000;
  text-align: center;
  padding: 48px 0;
}

.footer__logo {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.footer__legal {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__legal-title {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer__legal-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer__legal-activity {
  padding-top: 24px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer__copyright {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0;
}

/* === SUBSCRIPTION SECTION (BEM) === */
.subscription {
  padding: 48px 0;
  background-color: var(--gray-lighter);
  position: relative;
}

.subscription__form {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.subscription__form-wrapper {
  border: none;
  padding: 0;
  margin: 0;
}

.subscription__form-title {
  color: var(--gray-dark);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.subscription__form-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  border-radius: 2px;
}

/* === FORM COMPONENT (BEM) === */
.form {
  width: 100%;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
  font-size: 15px;
}

.form__label--required::after {
  content: " *";
  color: var(--danger);
}

.form__input--error,
input.form__input--error,
textarea.form__input--error {
  border-color: var(--danger);
}

.form__input--error:focus,
input.form__input--error:focus,
textarea.form__input--error:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.2rem rgba(200, 35, 51, 0.25);
}

.form__help {
  display: block;
  color: var(--gray);
  font-size: 14px;
  margin-top: 5px;
  line-height: 1.4;
}

.form__error {
  display: block;
  color: var(--danger);
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
}

/* === MODAL COMPONENT (BEM) === */
.modal {
  overflow-y: auto !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal-dialog {
  max-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
}

.modal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

.modal .modal-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  border-bottom: none;
  padding: 24px 32px;
  flex-shrink: 0;
}

.modal .modal-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.modal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modal .modal-header .btn-close:hover {
  opacity: 1;
}

.modal .modal-body {
  padding: 32px;
  background: #fff;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 32px;
  justify-content: space-between;
  background: linear-gradient(to bottom, #fff 0%, var(--gray-lighter) 100%);
  flex-shrink: 0;
  gap: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

body.modal-open .header {
  width: calc(100% - var(--scrollbar-width, 0px));
}

/* === ERROR PAGE COMPONENT (BEM) === */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 20px;
}

.error-page__content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.error-page__logo {
  width: 250px;
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.error-page__code {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 20px 0;
  line-height: 1;
  text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
}

.error-page__message {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.error-page__description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.error-page__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* === RESPONSIVE MEDIA QUERIES === */
/* Extra large screens */
@media (max-width: 1399px) {
}

/* Large screens */
@media (max-width: 1199px) {
  .section-title__text {
    font-size: 50px;
  }
  .section-title__subtitle {
    font-size: 28px;
  }
}

/* Medium to large screens */
@media (max-width: 991px) {
  .header {
    padding: 10px 0;
    min-height: 70px;
  }
  .header__menu-item {
    padding-left: 0;
    padding-right: 0;
    display: block;
  }
  .header__menu {
    margin-top: 15px;
    padding-left: 0;
  }
  .header__menu-link {
    padding: 8px 15px 8px 10px;
    display: block;
    border-bottom: none;
  }
  .header__menu-link:hover,
  .header__menu-item--current .header__menu-link {
    border-bottom: none;
    color: var(--primary);
    font-weight: 700;
  }
  .gallery {
    max-width: 400px;
    margin-top: 32px;
  }
  .gallery__btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
    margin: 0 10px;
  }
  .reformer__content {
    padding: 32px 0 0 0;
  }
  .reformer__section-title {
    font-size: 32px;
  }
  .contact__map,
  .contact__map-iframe {
    min-height: 400px;
  }
  .contact__info {
    padding: 40px 30px;
    text-align: center;
    min-height: auto;
  }
  .contact__title {
    font-size: 32px;
  }
}

/* Tablet specific */
@media (max-width: 991px) and (min-width: 768px) {

  .reformer-exercises .col-md-6 {
    margin-bottom: 32px;
  }
  
  .coaches .col-lg-6 {
    margin-bottom: 40px;
  }
}

/* Small to medium screens */
@media (max-width: 767px) {
  .section-title {
    margin-bottom: 40px;
  }
  .section-title__text {
    font-size: 40px;
  }
  .section-title__subtitle {
    font-size: 24px;
  }
  .section-title__description {
    font-size: 16px;
    margin-top: 20px;
  }
  .gallery {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 32px;
  }
  .gallery__btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin: 0 8px;
  }
  .gallery__indicators {
    bottom: 15px;
    gap: 8px;
  }
  .gallery__indicator {
    width: 10px;
    height: 10px;
  }
  .reformer {
    padding: 48px 0;
  }
  .about {
    padding: 120px 0 48px 0;
  }
  .about__intro {
    margin-bottom: 40px;
  }
  .about__intro-text {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .reformer-exercises .col-lg-3 {
    margin-bottom: 32px;
  }

  .coaches .col-lg-6 {
    margin-bottom: 32px;
  }
  .custom-card--coach .custom-card__image {
    height: 300px;
  }
  .custom-card--coach .custom-card__title {
    font-size: 28px;
    padding: 24px 24px 6px 24px;
  }
  .custom-card__body {
    padding: 0 24px 20px 24px;
  }
  .custom-card__body p {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .custom-card--coach .info-card--compact {
    margin: 0 20px 20px 20px;
  }
  .reformer__intro {
    margin-bottom: 48px;
  }
  .reformer__content {
    padding: 24px 0 0 0;
  }
  .reformer__subtitle {
    font-size: 28px;
  }
  .reformer__text {
    font-size: 16px;
  }
  .reformer__section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .reformer__description,
  .reformer__benefits,
  .reformer__principles,
  .reformer__exercises {
    margin-bottom: 48px;
  }
  .reformer__intro-text {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .reformer__benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benefit-card {
    padding: 24px;
  }
  .benefit-card__icon {
    font-size: 32px;
  }
  .benefit-card__title {
    font-size: 20px;
  }
  .timeline::before {
    left: 25px;
    transform: none;
  }
  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding-left: 70px;
    padding-right: 0;
    margin-bottom: 40px;
    text-align: left !important;
  }
  .timeline__marker {
    left: 0 !important;
    right: auto !important;
    width: 50px;
    height: 50px;
  }
  .timeline__number {
    font-size: 20px;
  }
  .timeline__content {
    padding: 20px 24px;
    border-left: 4px solid var(--primary) !important;
    border-right: none !important;
  }
  .timeline__title {
    font-size: 20px;
  }
  .custom-card__title {
    font-size: 18px;
  }
  .feature-card {
    padding: 25px 20px;
  }
  .feature-card__icon {
    font-size: 40px;
    margin-bottom: 15px;
  }
  .feature-card__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .feature-card__text {
    font-size: 15px;
  }
  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
  }
  .info-card__icon {
    margin-right: 0;
    margin-bottom: 12px;
  }
  .info-card--large {
    margin-bottom: 30px;
  }
  .info-card--compact {
    padding: 12px;
  }
  .contact__map,
  .contact__map-iframe {
    min-height: 300px;
  }
  .contact__info {
    text-align: left;
    padding: 30px 20px;
  }
  .contact__title {
    font-size: 28px;
  }
  .contact__details-item {
    font-size: 15px;
  }
  .footer__legal .col-md-6 {
    margin-bottom: 25px;
  }
  .subscription__form {
    padding: 20px;
  }
  .subscription__form-title {
    font-size: 20px;
  }
  .form__group {
    margin-bottom: 15px;
  }
  .about {
    padding: 120px 0 40px 0;
  }
  .about__intro {
    margin-bottom: 32px;
  }
  .info-card--about {
    padding: 32px 24px;
    border-radius: 15px;
  }
  .about__intro-text {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .coaches {
    margin-top: 32px;
  }
  .custom-card--coach {
    margin-bottom: 24px;
  }
  .custom-card--coach .custom-card__image {
    height: 280px;
  }
  .custom-card__badge {
    width: 50px;
    height: 50px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
  .custom-card--coach .custom-card__title {
    font-size: 26px;
    padding: 20px 20px 6px 20px;
  }
  .custom-card__body {
    padding: 0 20px 18px 20px;
  }
  .custom-card__body p {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .custom-card--coach .info-card--compact {
    margin: 0 18px 18px 18px;
  }
  .error-page__logo {
    width: 200px;
    margin-bottom: 30px;
  }
  .error-page__code {
    font-size: 80px;
    margin-bottom: 15px;
  }
  .error-page__message {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .error-page__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

/* Extra small to small screens */
@media (max-width: 576px) {
  .modal .modal-header {
    padding: 15px 20px;
  }
  .modal .modal-body {
    padding: 20px;
  }
  .modal .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }
  .modal .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
  .modal .modal-title {
    font-size: 1.1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .section-title {
    margin-bottom: 32px;
  }
  .section-title__text {
    font-size: 30px;
  }
  .section-title__subtitle {
    font-size: 20px;
  }
  .section-title__description {
    font-size: 15px;
    margin-top: 16px;
  }
  .gallery {
    max-width: 350px;
    margin-top: 24px;
  }
  .gallery__btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
    margin: 0 5px;
  }
  .gallery__indicators {
    bottom: 10px;
    gap: 6px;
  }
  .gallery__indicator {
    width: 15px;
    height: 15px;
  }
  .reformer__subtitle {
    font-size: 24px;
  }
  .reformer__section-title {
    font-size: 24px;
  }
  .info-card--about {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .about__intro-text {
    font-size: 14px;
    margin-bottom: 12px;
  }
  /* Espacement vertical pour les cards d'exercices */
  .reformer-exercises .col-lg-3 {
    margin-bottom: 24px;
  }
  /* Espacement vertical entre les coachs */
  .coaches .col-lg-6 {
    margin-bottom: 24px;
  }
  .coaches {
    margin-top: 24px;
  }
  .custom-card--coach {
    margin-bottom: 20px;
  }
  .custom-card--coach .custom-card__image {
    height: 250px;
  }
  .custom-card__badge {
    width: 45px;
    height: 45px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
  .custom-card--coach .custom-card__title {
    font-size: 24px;
    padding: 18px 18px 5px 18px;
  }
  .custom-card__body {
    padding: 0 18px 16px 18px;
  }
  .custom-card__body p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .reformer__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card {
    padding: 20px;
  }
  .benefit-card__icon {
    font-size: 28px;
  }
  .benefit-card__title {
    font-size: 18px;
  }
  .benefit-card__text {
    font-size: 15px;
  }
  .timeline::before {
    left: 22.5px;
    width: 3px;
    transform: none;
  }
  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    padding-right: 0;
    margin-bottom: 32px;
    text-align: left !important;
  }
  .timeline__marker {
    left: 0 !important;
    right: auto !important;
    width: 45px;
    height: 45px;
  }
  .timeline__number {
    font-size: 18px;
  }
  .timeline__content {
    padding: 18px 20px;
    border-left: 4px solid var(--primary) !important;
    border-right: none !important;
  }
  .timeline__title {
    font-size: 18px;
  }
  .timeline__text {
    font-size: 15px;
  }
  .custom-card__image {
    height: 180px;
  }
  .feature-card {
    padding: 20px 15px;
  }
  .feature-card__icon {
    font-size: 36px;
  }
  .feature-card__title {
    font-size: 18px;
  }
  .feature-card__text {
    font-size: 14px;
  }
  .info-card--compact .info-card__icon {
    font-size: 20px;
    min-width: 30px;
  }
  .info-card--compact .info-card__title {
    font-size: 14px;
  }
  .info-card--compact .info-card__text {
    font-size: 13px;
  }
  .info-card--compact {
    padding: 12px;
  }
  .contact__title {
    font-size: 24px;
  }
  .footer {
    padding: 24px 0;
  }
  .footer__logo {
    width: 250px;
  }
  .footer__legal {
    margin-top: 24px;
    padding-top: 24px;
  }
  .footer__legal-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .footer__legal-text,
  .footer__legal-activity {
    font-size: 13px;
  }
  .footer__legal-activity {
    padding-top: 20px;
  }
  .footer__copyright {
    font-size: 14px;
  }
  .subscription {
    padding: 24px 0;
  }
  .subscription__form {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .subscription__form-title {
    font-size: 18px;
  }
  .error-page {
    padding: 15px;
  }
  .error-page__logo {
    width: 180px;
    margin-bottom: 25px;
  }
  .error-page__code {
    font-size: 60px;
  }
  .error-page__message {
    font-size: 20px;
  }
  .error-page__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
}

/* Very small screens */
@media (min-width: 320px) and (max-width: 480px) {
  .subscription__form {
    margin-bottom: 20px;
  }
}

