/* Swim school software solutions page: comparison table only.
   Everything else reuses styles.css / services.css / website-design.css. */

.swim-compare .cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: clamp(28px, 4vw, 48px);
}

.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.cmp thead th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
}

.cmp thead th:nth-child(2) {
  color: var(--ink);
}

.cmp tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.cmp tbody td,
.cmp tbody th {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line, rgba(14, 14, 14, 0.1));
  vertical-align: top;
  line-height: 1.5;
}

/* Flitzen column: quietly emphasised */
.cmp tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 500;
}

.cmp tbody td:last-child {
  color: var(--gray-3, #6b6b66);
}

.cmp tbody tr:last-child td,
.cmp tbody tr:last-child th {
  border-bottom: none;
}

/* ---------------------------------------------------------------------------
   CTA enquiry form (dark panel, uses .section--ink token remap for colours)
   --------------------------------------------------------------------------- */
.swim-cta-section { padding-block: clamp(40px, 6vw, 80px); }

.swim-form-panel {
  border-radius: clamp(18px, 2.5vw, 28px);
  padding: clamp(28px, 5vw, 64px);
}

.swim-cta-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.swim-cta-copy .eyebrow { margin-bottom: 18px; }
.swim-cta-copy .title { margin-bottom: 20px; }
/* Condiment power-word accent inherits colour; keep it white on the ink panel */
.swim-cta-copy .title .pw { color: #fff; }
.swim-cta-copy > p {
  color: var(--gray-1);
  font-size: 16px;
  line-height: 1.6;
  max-width: 40ch;
}

.swim-cta-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.swim-cta-points li {
  position: relative;
  padding-left: 28px;
  color: #fff;
  font-size: 15px;
}
.swim-cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.swim-cta-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.swim-cta-contact a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}
.swim-cta-contact a:hover { border-color: #fff; }

/* form fields on the ink panel */
.swim-form { width: 100%; }
.swim-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.swim-form .field { margin-bottom: 16px; }
.swim-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-1);
  margin-bottom: 8px;
}
.swim-form label .opt { color: var(--gray-3); font-weight: 400; }

.swim-form input,
.swim-form textarea {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.swim-form textarea { resize: vertical; min-height: 84px; }
.swim-form input:focus,
.swim-form textarea:focus {
  outline: none;
  border-color: #fff;
  background: var(--paper-3);
}
.swim-form .field.invalid input,
.swim-form .field.invalid textarea {
  border-color: #ff9a9a;
}

.swim-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.swim-form-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.swim-form-note { color: var(--gray-2); font-size: 13px; margin: 0; }
.swim-form-foot .form-error { flex-basis: 100%; }

/* success state replaces the grid */
.swim-form-success { text-align: center; padding: clamp(20px, 4vw, 44px) 0; }
.swim-form-success .succ-ic {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: #0E0E0E;
  font-size: 24px;
  margin-bottom: 20px;
}
.swim-form-success h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; outline: none; }
.swim-form-success p { color: var(--gray-1); max-width: 46ch; margin: 0 auto; }

@media (max-width: 820px) {
  .swim-cta-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .swim-field-row { grid-template-columns: 1fr; gap: 0; }
}

