/* Online Pilates. Scoped to this page so the rest of the site is unchanged. */

.op {
  background: #f7f3ea;
}

.op-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8d4d35;
}

.op-title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: #1d3328;
}

.op-lead {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(44, 50, 44, 0.76);
}

.op-lead p + p,
.op-prose p + p {
  margin-top: 1rem;
}

.op-prose p,
.op-quiet {
  margin: 0;
  line-height: 1.7;
  color: rgba(44, 50, 44, 0.78);
}

.op-quiet {
  margin-top: 0.85rem;
  font-size: 0.98rem;
}

.op main a:not(.hero-btn) {
  color: #8d4d35;
}

.op main a:not(.hero-btn):hover {
  color: #1d3328;
}

.op-section {
  padding: clamp(3.5rem, 8vw, 6.25rem) 0;
  scroll-margin-top: calc(var(--hero-header-h, 5.75rem) + 0.75rem);
}

.op-section--paper {
  background: #fffcf7;
}

.op-section--sand {
  background: #f3ebe4;
}

.op-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.op-head .op-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.op-hero {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.op-hero__grid,
.op-intro__grid,
.op-close__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.op-request__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  justify-items: center;
  max-width: 46rem;
  margin-inline: auto;
}

.op-request__copy {
  text-align: center;
}

.op-request__copy .op-lead,
.op-request__copy .op-quiet {
  margin-inline: auto;
}

.op-hero__title {
  font-size: clamp(3.15rem, 7vw, 5.5rem);
  max-width: 11ch;
}

.op-hero__actions,
.op-close__actions {
  margin-top: 1.75rem;
}

.op-hero__media,
.op-intro__media,
.op-close__media {
  margin: 0;
}

.op-hero__media img,
.op-intro__media img,
.op-close__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1.5rem;
}

.op-hero__media img {
  aspect-ratio: 4 / 5;
  object-position: center 20%;
}

.op-intro__media img {
  aspect-ratio: 4 / 3;
  border-radius: 1.35rem;
}

.op-intro__copy .op-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  max-width: 14ch;
}

.op-classes,
.op-prices {
  display: grid;
  gap: 1.15rem;
}

.op-class,
.op-price,
.op-step,
.op-form,
.op-callout {
  border: 1px solid rgba(53, 47, 43, 0.08);
  border-radius: 1.35rem;
}

.op-class,
.op-price {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fffcf7;
}

.op-class__day,
.op-price__flag,
.op-step__num {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8d4d35;
}

.op-class__name,
.op-price__name,
.op-step h3 {
  margin: 0.7rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1d3328;
}

.op-class__time {
  margin: 1rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  color: #1d3328;
}

.op-class__meta,
.op-price p,
.op-step p {
  margin: 0.75rem 0 0;
  line-height: 1.6;
  color: rgba(44, 50, 44, 0.76);
}

.op-class__action,
.op-price__action {
  margin-top: auto;
  padding-top: 1.5rem;
}

.op-price--value {
  background: #f3ebe4;
  border-color: rgba(141, 77, 53, 0.38);
  box-shadow: 0 18px 44px rgba(53, 47, 43, 0.06);
}

.op-price__amount {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.op-price__amount strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #1d3328;
}

.op-save {
  margin-top: 0.85rem;
  font-weight: 650;
  color: #1d3328;
}

.op-note {
  max-width: 44rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
}

.op-note + .op-note {
  margin-top: 0.85rem;
}

.op-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.op-step {
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  background: #fffcf7;
}

.op-callout {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding: 1.15rem 1.25rem;
  background: rgba(255, 252, 247, 0.72);
}

.op-callout p {
  margin: 0;
  line-height: 1.65;
  color: rgba(44, 50, 44, 0.8);
}

.op-callout strong {
  color: #1d3328;
}

.op-request__copy .op-title {
  font-size: clamp(2.5rem, 5vw, 3.7rem);
}

.op-form {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fffcf7;
  box-shadow: 0 18px 50px rgba(53, 47, 43, 0.06);
}

.op-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.op-form legend,
.op-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: #1d3328;
}

.op-form legend {
  margin-bottom: 0.15rem;
  padding: 0;
}

.op-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(53, 47, 43, 0.14);
  border-radius: 0.9rem;
  background: #f7f3ea;
  font-weight: 500;
  cursor: pointer;
}

.op-choice:has(input:checked) {
  border-color: #1d3328;
  background: #f3ebe4;
}

.op-choice:has(input:focus-visible) {
  outline: 2px solid #8d4d35;
  outline-offset: 2px;
}

.op-choice input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  accent-color: #1d3328;
  flex-shrink: 0;
}

.op-choice span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.op-choice__name {
  font-weight: 650;
  color: #1d3328;
}

.op-choice__meta {
  font-size: 0.92rem;
  font-weight: 450;
  color: rgba(44, 50, 44, 0.7);
}

.op-choice:has(input:disabled) {
  opacity: 0.48;
  cursor: not-allowed;
}

.op-field {
  display: grid;
  gap: 0.4rem;
}

.op-field input,
.op-field select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(53, 47, 43, 0.16);
  border-radius: 0.8rem;
  background: #fffcf7;
  font: inherit;
  color: #1d3328;
}

.op-field input:focus-visible,
.op-field select:focus-visible,
.op-form .hero-btn:focus-visible,
.op .hero-btn:focus-visible,
.op .accordion-trigger:focus-visible {
  outline: 2px solid #8d4d35;
  outline-offset: 3px;
}

.op-optional {
  font-weight: 500;
  color: rgba(44, 50, 44, 0.55);
}

.op-group-label {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d4d35;
}

.op-form .hero-btn {
  justify-self: start;
}

.op-form .hero-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.op-form .form-status {
  margin: 0;
}

.op-awaiting {
  margin: 0.8rem 0 0;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d4d35;
}

.op-faq .accordion-item h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
}

.op-faq .accordion-trigger {
  padding: 1.35rem 0;
}

.op-close {
  padding-top: 0;
}

.op-close__panel {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #1d3328;
  border-radius: 1.5rem;
  color: #f7f3ea;
}

.op-close__panel .op-kicker {
  color: #d8b8a4;
}

.op-close__panel .op-title,
.op-close__panel p {
  color: #f7f3ea;
}

.op-close__panel .op-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.op-close__panel p {
  margin: 1rem 0 0;
  max-width: 34rem;
  line-height: 1.65;
  color: rgba(247, 243, 234, 0.82);
}

.op-close__media img {
  aspect-ratio: 4 / 5;
  max-height: 28rem;
  object-position: center 15%;
  border-radius: 1.1rem;
}

.op-close__panel .hero-btn--solid {
  background: #f7f3ea;
  color: #1d3328;
}

.op-close__panel .hero-btn--solid:hover {
  background: #fff;
  color: #1d3328;
}

@media (min-width: 800px) {
  .op-classes,
  .op-prices {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .op-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .op-hero__grid,
  .op-intro__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.9fr);
  }

  .op-intro__grid {
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.05fr);
  }

  .op-intro__media {
    order: -1;
  }

  .op-close__panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(14rem, 0.72fr);
    padding: clamp(1.5rem, 3vw, 2rem);
  }

  .op-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 559px) {
  .op-hero__actions .hero-btn,
  .op-class__action .hero-btn,
  .op-price__action .hero-btn,
  .op-close__actions .hero-btn,
  .op-form .hero-btn {
    width: 100%;
  }
}
