:root {
  --teal: #03a2c9;
  --teal-dark: #026e88;
  --lime: #98d125;
  --gold: #c9a24b;
  --gold-light: #e8cf8a;
  --ink: #1f2d2d;
  --muted: #5f7373;
  --line: #e2ebeb;
  --bg: #ffffff;
  --danger: #c0392b;
  --radius: 14px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='77.942' viewBox='0 0 45 77.942'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1'%3E%3Ccircle cx='-22.5' cy='-38.971' r='45'/%3E%3Ccircle cx='22.5' cy='-38.971' r='45'/%3E%3Ccircle cx='67.5' cy='-38.971' r='45'/%3E%3Ccircle cx='-45' cy='0' r='45'/%3E%3Ccircle cx='0' cy='0' r='45'/%3E%3Ccircle cx='45' cy='0' r='45'/%3E%3Ccircle cx='90' cy='0' r='45'/%3E%3Ccircle cx='-22.5' cy='38.971' r='45'/%3E%3Ccircle cx='22.5' cy='38.971' r='45'/%3E%3Ccircle cx='67.5' cy='38.971' r='45'/%3E%3Ccircle cx='-45' cy='77.942' r='45'/%3E%3Ccircle cx='0' cy='77.942' r='45'/%3E%3Ccircle cx='45' cy='77.942' r='45'/%3E%3Ccircle cx='90' cy='77.942' r='45'/%3E%3Ccircle cx='-22.5' cy='116.913' r='45'/%3E%3Ccircle cx='22.5' cy='116.913' r='45'/%3E%3Ccircle cx='67.5' cy='116.913' r='45'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-dark);
}

/* Header */

.site-header {
  background: var(--teal) var(--pattern);
  background-size: 45px 77.942px;
  color: #fff;
  padding: 2.25rem 1.25rem 2rem;
  text-align: center;
  position: relative;
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.site-header__eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  opacity: 0.85;
}

.site-header__title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-header__dates {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.site-header__badge {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-header__team-link {
  margin: 1rem auto 0;
  max-width: 420px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.site-header__team-link a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.site-header__team-link a:hover {
  color: var(--gold-light);
}

/* Intro */

.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: center;
}

/* Day tabs */

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.25rem 1rem 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.day-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.day-tab span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
}

.day-tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.day-tab.is-active span {
  color: rgba(255, 255, 255, 0.85);
}

/* Days container */

.days-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.day-panel {
  display: none;
}

.day-panel.is-active {
  display: block;
}

.day-panel__heading {
  margin: 0.5rem 0 1rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-dark);
}

/* Offer cards */

.offer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(20, 40, 40, 0.04);
}

.offer-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.offer-card__time {
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 0.95rem;
  white-space: nowrap;
}

.offer-card__title {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.4rem 0 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.card-team-link {
  display: inline-block;
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

.card-team-link:hover {
  color: var(--teal-dark);
  text-decoration-color: currentColor;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.tag--type {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  background-clip: padding-box;
  color: #4a3a10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge--free {
  background: #e6f5f2;
  color: var(--teal-dark);
}

.badge--full {
  background: #f6e9e7;
  color: var(--danger);
}

/* Single-offer time slot picker */

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.slot-pill {
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.slot-pill:hover {
  background: #e6f5f2;
}

.slot-pill[disabled] {
  border-color: var(--line);
  color: #b6b6b6;
  background: #f7f7f7;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Group offer button */

.offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal-dark);
}

.btn--primary[disabled] {
  background: #cfd8d8;
  cursor: not-allowed;
}

.btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  background: var(--teal) var(--pattern);
  background-size: 45px 77.942px;
  color: #fff;
  text-align: center;
  padding: 1.75rem 1.25rem 2.25rem;
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
}

.site-footer__inner p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.site-footer__name {
  font-weight: 800;
  font-size: 1rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 40, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  padding: 1.5rem 1.25rem 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 560px) {
  .modal-backdrop {
    align-items: center;
  }
  .modal {
    border-radius: 18px;
  }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.modal__subtitle {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}

.field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.field--checkbox input {
  width: auto;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.field--checkbox span {
  display: inline;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0;
}

.field--radio-group[hidden] {
  display: none;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.radio-option input {
  width: auto;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.radio-option:last-child {
  margin-bottom: 0;
}

.radio-option:has(input:checked) {
  border-color: var(--teal);
  background: #e6f5f2;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: -0.3rem 0 0.8rem;
}

.modal-success {
  text-align: center;
  padding: 1rem 0;
}

.modal-success__icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: #e6f5f2;
  color: var(--teal-dark);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.modal-success p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Info button on offer cards */

.info-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold-light);
  color: #4a3a10;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-btn:hover {
  background: var(--gold);
}

/* Info modal (visually distinct from the registration modal) */

.modal--info {
  border-top: 4px solid var(--gold);
}

.modal__icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.modal__icon--info {
  background: var(--gold-light);
  color: #4a3a10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__title--info {
  color: #4a3a10;
}

.modal__text {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
