/* /gift: buying sessions for someone else. Same width, type and surfaces as
   /booking, so the two read as one product. */
.gift-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
  color: var(--secondary-color);
}

@media (max-width: 1400px) {
  .gift-page {
    padding-inline: 1rem;
  }
}

.gift-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(232, 232, 233, 0.1);
}

.gift-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--primary-color);
}

.gift-title {
  margin: 0 0 1.1rem;
  max-width: 40rem;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.gift-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.62;
  opacity: 0.85;
}

.gift-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(232, 232, 233, 0.2);
  border-radius: 12px;
  line-height: 1.5;
}

.gift-banner--error {
  border-color: #e17055;
  background: rgba(225, 112, 85, 0.1);
}

/* Steps */

.gift-step {
  margin: 0 0 2.25rem;
}

.gift-step__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.gift-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(16, 172, 132, 0.16);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
}

/* The gifts: one card each, the chosen one outlined in green. */

.gift-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gift-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1rem 1rem;
  border: 1px solid rgba(232, 232, 233, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.gift-option:hover {
  border-color: rgba(16, 172, 132, 0.5);
}

.gift-option:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(16, 172, 132, 0.08);
}

.gift-option:has(input:focus-visible) {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.gift-option input {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.gift-option__name {
  padding-right: 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.gift-option__count {
  font-size: 0.85rem;
  opacity: 0.75;
}

.gift-option__total {
  margin-top: 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.gift-option__rate {
  font-size: 0.85rem;
  opacity: 0.75;
}

.gift-option__save {
  color: var(--primary-color);
  font-weight: 600;
}

.gift-option__tagline {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(232, 232, 233, 0.08);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* Fields */

.gift-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gift-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.gift-field--wide {
  grid-column: 1 / -1;
  max-width: 44rem;
}

.gift-field > span {
  font-weight: 600;
}

.gift-field small {
  font-size: 0.8rem;
  opacity: 0.65;
}

.gift-field input,
.gift-field textarea,
.gift-field select,
.gift-done__link input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(232, 232, 233, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary-color);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.gift-field textarea {
  resize: vertical;
}

.gift-field select option {
  background: #14181e;
  color: var(--secondary-color);
}

.gift-field input:focus,
.gift-field textarea:focus,
.gift-field select:focus,
.gift-done__link input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Pay */

.gift-summary {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.gift-terms {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  max-width: 44rem;
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.8;
}

/* Stands out until it is ticked: Pay stays off without it. */
.gift-agree {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 44rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  background: rgba(16, 172, 132, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.gift-agree:has(input:checked) {
  border-color: rgba(232, 232, 233, 0.16);
  background: transparent;
}

.gift-agree input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.gift-agree a,
.gift-facts a,
.gift-back-link a {
  color: var(--primary-color);
}

.gift-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 14px;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.gift-btn:hover:not(:disabled) {
  background: transparent;
  color: var(--primary-color);
}

.gift-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.gift-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gift-btn--ghost {
  background: transparent;
  color: var(--primary-color);
}

.gift-btn--ghost:hover:not(:disabled) {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.gift-btn--pay {
  min-width: 16rem;
}

.gift-note {
  margin: 0.75rem 0 0;
  max-width: 44rem;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.7;
}

/* After payment */

.gift-done {
  margin: 0 0 2.25rem;
  padding: 1.5rem;
  border: 1px solid var(--primary-color);
  border-radius: 14px;
  background: rgba(16, 172, 132, 0.08);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.gift-done__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.gift-done__lead {
  margin: 0 0 1rem;
  line-height: 1.55;
  opacity: 0.9;
}

.gift-done__link {
  display: flex;
  gap: 0.75rem;
  max-width: 48rem;
}

.gift-done__link input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.gift-done__actions {
  margin: 0.75rem 0 0;
}

/* The text under the form: what a gift is, who it suits, who teaches. */

.gift-summary-line {
  max-width: 44rem;
  margin: 0 0 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(232, 232, 233, 0.1);
  line-height: 1.7;
  opacity: 0.9;
}

.gift-section {
  margin: 0 0 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(232, 232, 233, 0.1);
}

.gift-section__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.gift-section > p,
.gift-section > ul {
  max-width: 44rem;
  margin: 0 0 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
}

.gift-section > ul {
  padding-left: 1.1rem;
}

.gift-section > :last-child {
  margin-bottom: 0;
}

.gift-section a {
  color: var(--primary-color);
}

.gift-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.gift-kind {
  padding: 1rem;
  border: 1px solid rgba(232, 232, 233, 0.12);
  border-radius: 12px;
}

.gift-kind h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.gift-kind p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.8;
}

.gift-kind .gift-kind__price,
.gift-kind .gift-kind__price span {
  color: var(--primary-color);
}

.gift-kind .gift-kind__price {
  margin-bottom: 0.5rem;
  font-weight: 600;
  opacity: 1;
}

.gift-section > .gift-section__note {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* How it works, good to know */

.gift-how,
.gift-facts {
  margin: 0 0 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(232, 232, 233, 0.1);
}

.gift-how__title,
.gift-facts__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.gift-how__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gift-how;
}

.gift-how__steps li {
  padding: 1rem;
  border: 1px solid rgba(232, 232, 233, 0.12);
  border-radius: 12px;
  counter-increment: gift-how;
}

.gift-how__steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.gift-how__steps h3::before {
  content: counter(gift-how) ". ";
  color: var(--primary-color);
}

.gift-how__steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

.gift-facts ul {
  margin: 0;
  padding-left: 1.1rem;
  max-width: 44rem;
  line-height: 1.7;
  opacity: 0.9;
}

.gift-back-link {
  margin: 0;
}

@media (max-width: 900px) {
  .gift-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-fields {
    grid-template-columns: 1fr;
  }

  .gift-how__steps,
  .gift-kinds {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gift-title {
    font-size: 2rem;
  }

  .gift-options {
    grid-template-columns: 1fr;
  }

  .gift-done__link {
    flex-direction: column;
  }

  .gift-btn--pay {
    width: 100%;
    min-width: 0;
  }
}
