:root {
  --color-primary: #2a9d8f;
  --color-dark-teal: #1a7a6d;
  --color-gold: #e9b44c;
  --color-cream: #fdf8f0;
  --color-text: #2d2d2d;
  --color-white: #ffffff;
  --color-border: #e0d6c8;
  --color-error: #c0392b;
  --color-success: #27ae60;
  --color-muted: #6b6b6b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-cream);
  color: var(--color-text);
  line-height: 1.6;
}

.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.site-header .page-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header {
  background: linear-gradient(135deg, #2a9d8f 0%, #1a7a6d 100%);
  color: #ffffff;
  padding: 0;
  border-bottom: 4px solid #e9b44c;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover {
  border-bottom-color: #e9b44c;
}

.site-footer {
  background: linear-gradient(135deg, #2a9d8f 0%, #1a7a6d 100%);
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid #e9b44c;
  margin-top: 48px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #e9b44c;
}

h1 {
  color: #1a7a6d;
  margin-bottom: 8px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-lead {
  margin-top: 0;
  margin-bottom: 24px;
  color: #4f4a43;
  font-size: 1.05rem;
  max-width: 62ch;
}

h2 {
  color: var(--color-dark-teal);
  margin-bottom: 8px;
}

a {
  color: var(--color-primary);
}

a:hover {
  text-decoration: underline;
}

.class-card {
  background: #ffffff;
  border: 1px solid #e0d6c8;
  border-left: 5px solid #e9b44c;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.class-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.class-card h2 {
  margin-top: 0;
}

.section-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-card h2,
.section-card h3 {
  margin-top: 0;
}

.meta {
  color: #6b6b6b;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  background: #2a9d8f;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: #1a7a6d;
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.btn-gold {
  background: #e9b44c;
  color: #2d2d2d;
}

.btn-gold:hover {
  background: #d4a23a;
  color: #2d2d2d;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 16px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: #2a9d8f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 180, 76, 0.25);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: auto;
  min-width: auto;
}

.checkbox-label span {
  flex: 1;
  line-height: 1.5;
}

.form-actions {
  margin-top: 24px;
}

.voucher-toggle-panel.is-hidden {
  display: none;
}

.noscript-note {
  margin-top: 16px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 24px;
}

.form-hint,
.small-note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.form-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.error-panel {
  background: #fff4f1;
  border: 1px solid #f2c8c1;
  border-left: 5px solid var(--color-error);
  color: var(--color-text);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.error-panel h2,
.error-panel h3 {
  margin: 0 0 8px;
  color: var(--color-error);
  font-size: 1rem;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.error-list li {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: var(--color-error);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.success-box {
  background: #eafaf1;
  border: 1px solid #a3d9a5;
  border-left: 5px solid #27ae60;
  color: #27ae60;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.info-box {
  background: #fef9ef;
  border: 1px solid #e9b44c;
  border-left: 5px solid #e9b44c;
  color: #2d2d2d;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.booking-details {
  background: #ffffff;
  border: 1px solid #e0d6c8;
  border-left: 5px solid #e9b44c;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.booking-details p {
  margin: 4px 0;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-primary);
}

.back-link-inline {
  margin-top: 0;
}

hr {
  border: none;
  border-top: 2px solid #e9b44c;
  opacity: 0.4;
  margin: 32px 0;
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 16px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .site-nav {
    width: 100%;
    gap: 10px 14px;
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .class-card,
  .section-card,
  .booking-details,
  .success-box,
  .info-box,
  .error-panel {
    padding: 16px 18px;
  }

  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-actions .btn,
  .inline-actions .back-link {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
