.rates-page {
  background:
    linear-gradient(
      180deg,
      #f5f2ee 0%,
      #f7f4ef 38%,
      #f1ebe4 100%
    );
}

.rates-hero {
  padding: 9rem 0 3rem;
}

.rates-hero__container {
  max-width: 64rem;
}

.rates-hero__eyebrow,
.country-section__eyebrow,
.custom-section__eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--color-primary-variant);
  margin-bottom: 0.9rem;
}

.rates-hero__title,
.country-section__title,
.custom-section__title {
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.04;
  color: var(--color-primary);
  margin: 0 0 0.85rem;
}

.rates-hero__text,
.country-section__text,
.custom-section__text {
  font-size: 1rem;
  line-height: 1.85;
  color: #565656;
  max-width: 48rem;
}

.rates-hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* ================= COUNTRY SELECTOR ONLY ================= */

.rates-country-nav-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  z-index: 80;
  padding: 0 0 1.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.rates-country-nav-wrap.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rates-country-nav-wrap .container {
  width: fit-content !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.rates-country-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.8rem;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.22);
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 auto;
}

.rates-country-nav::-webkit-scrollbar {
  display: none;
}

.country-pill {
  flex: 0 0 auto;
  min-width: 11.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: var(--transition);
}

.country-pill:hover {
  transform: translateY(-2px);
  background: rgba(166, 124, 82, 0.2);
  border-color: rgba(166, 124, 82, 0.3);
}

.country-pill.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.country-pill__flag {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.12);
}

.country-pill__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-pill__flag--icon {
  font-size: 0.95rem;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.75);
}

.country-pill__name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.country-pill.is-active .country-pill__name {
  color: var(--color-primary);
}

.country-pill.is-active .country-pill__flag--icon {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
}

.country-section,
.custom-section {
  padding: 0 0 4rem;
  scroll-margin-top: calc(var(--nav-height) + 8rem);
}

.country-section__intro,
.custom-section__intro {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.service-category {
  margin-bottom: 3rem;
}

.service-category__head {
  margin-bottom: 1.25rem;
}

.service-category__head h3 {
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}

.service-category__head p {
  max-width: 44rem;
  color: #5f5f5f;
  line-height: 1.8;
}

.service-stack {
  display: grid;
  gap: 1.35rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.service-card__image {
  min-height: 22rem;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__content {
  padding: 1.6rem 1.6rem 1.7rem;
}

.package__heading {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.08;
  color: var(--color-primary);
  margin-bottom: 0.7rem;
}

.package__summary,
.package__note,
.package-block__text {
  color: #5f5f5f;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.service-card__content ul {
  margin: 0.35rem 0 1rem 1.15rem;
}

.service-card__content li {
  color: #555555;
  line-height: 1.75;
  list-style: disc;
  margin-bottom: 0.28rem;
}

/* grouped package layout */
.package-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 0.85rem;
}

.package-block {
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1rem;
  padding: 1rem 0.9rem;
}

.package-block h3 {
  text-align: center;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

/* price styling */
.price-lines {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.price-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.price-line__label {
  color: #7a552d;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(166, 124, 82, 0.14);
  color: #7a552d;
  font-weight: 700;
  border: 1px solid rgba(166, 124, 82, 0.18);
}

.price-line--plain {
  color: #7a552d;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* session cards */
.session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 0.85rem;
}

.session-card {
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1rem;
  padding: 1rem 0.95rem;
}

.session-card h3 {
  text-align: center;
  font-size: 0.98rem;
  margin-bottom: 0.65rem;
  color: var(--color-primary);
}

.session-card ul {
  margin-bottom: 0.8rem;
}

/* extras */
.extras-card {
  margin-top: 1.3rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1.35rem;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: 0 0.9rem 2.2rem rgba(0, 0, 0, 0.04);
}

.extras-card__title {
  text-align: center;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.25rem;
  justify-content: center;
}

.extras-group {
  text-align: center;
}

.extras-group h4 {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.extras-group ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.extras-group li {
  list-style: disc;
  line-height: 1.75;
  color: #585858;
  margin-bottom: 0.28rem;
}

/* center single-group extras sections */
.extras-grid:has(.extras-group:only-child) {
  grid-template-columns: minmax(280px, 720px);
  justify-content: center;
}

.extras-grid:has(.extras-group:only-child) .extras-group {
  text-align: center;
}

.extras-grid:has(.extras-group:only-child) .extras-group ul {
  display: block;
  text-align: center;
  margin: 0 auto;
  padding-left: 0;
}

.extras-grid:has(.extras-group:only-child) .extras-group li {
  list-style: none;
  margin-bottom: 0.4rem;
}

.extras-note {
  max-width: 52rem;
  margin: 1rem auto 0;
  text-align: center;
  line-height: 1.8;
  color: #5d5d5d;
}

/* custom form */
.custom-section__container {
  display: grid;
  gap: 1.8rem;
}

.custom-form-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1.6rem;
  padding: 1.5rem;
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.custom-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.custom-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.custom-form__field--full {
  grid-column: 1 / -1;
}

.custom-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.custom-form input,
.custom-form select,
.custom-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(17, 17, 17, 0.10);
  background: #f7f3ef;
  color: #2d2d2d;
}

.custom-form textarea {
  resize: vertical;
}

.custom-form__actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-start;
}

/* footer cta */
.rates-footercta {
  padding: 0 0 4.5rem;
}

.rates-footercta__container {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rates-footercta__text {
  font-size: 1rem;
  color: #4d4d4d;
}

.rates-footercta__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.rates-footercta__actions .btn--secondary {
  color: var(--color-primary);
  border-color: rgba(17, 17, 17, 0.16);
}

.rates-footercta__actions .btn--secondary:hover {
  color: var(--color-white);
  border-color: transparent;
}

/* responsive */
@media screen and (max-width: 1100px) {
  .rates-hero {
    padding: 8rem 0 2.4rem;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card__image {
    min-height: 18rem;
  }

  .package-blocks,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .rates-footercta__container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .rates-hero {
    padding: 7.4rem 0 2.2rem;
  }

  .rates-hero__eyebrow,
  .country-section__eyebrow,
  .custom-section__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .rates-hero__title,
  .country-section__title,
  .custom-section__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .rates-country-nav-wrap {
    top: calc(var(--nav-height) + 0.9rem);
    padding-bottom: 1.2rem;
  }

  .rates-country-nav-wrap .container {
    max-width: calc(100vw - 1rem) !important;
  }

  .rates-country-nav {
    max-width: calc(100vw - 1rem);
    gap: 0.55rem;
    padding: 0.6rem;
    border-radius: 999px;
  }

  .country-pill {
    min-width: auto;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }

  .country-pill__flag {
    width: 1.9rem;
    height: 1.9rem;
  }

  .country-pill__flag--icon {
    font-size: 1rem;
  }

  .country-pill__name {
    display: none;
  }

  .session-grid {
    grid-template-columns: 1fr;
  }

  .extras-grid {
    grid-template-columns: 1fr;
  }

  .custom-form__grid {
    grid-template-columns: 1fr;
  }

  .rates-footercta {
    padding-bottom: 4rem;
  }
}

@media screen and (max-width: 520px) {
  .rates-hero__actions,
  .rates-footercta__actions {
    width: 100%;
  }

  .rates-hero__actions .btn,
  .rates-footercta__actions .btn,
  .custom-form__actions .btn {
    width: 100%;
  }
}