html,
body {
  margin: 0;
  padding: 0;
  background: #eef2f8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  color: #1d2939;
  font-family: "Nunito Sans", system-ui, sans-serif;
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  padding: 24px 16px 64px;
  background: #eef2f8;
}

.page-container {
  max-width: 680px;
  margin: 0 auto;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0 26px;
  text-align: center;
}

.brand-logo {
  width: 160px;
  height: auto;
  display: block;
}

.brand-subtitle {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5b6b84;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px -12px rgba(10, 50, 105, 0.18);
  overflow: hidden;
}

.card-intro {
  padding: 32px 28px 26px;
  border-bottom: 1px solid #e7edf6;
}

.card-intro h1 {
  margin: 0 0 12px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  color: #0a3269;
}

.card-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #475467;
  text-wrap: pretty;
}

.card-intro p + p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
}

.card-intro strong {
  color: #0a3269;
}

.card-section {
  padding: 28px;
  border-bottom: 1px solid #e7edf6;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-kicker {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8aa3;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.form-input,
.field-group input,
.student-entry-row input {
  width: 100%;
  padding: 13px 15px;
  font-size: 16px;
  font-weight: 400;
  color: #1d2939;
  background: #f8fafd;
  border: 1.5px solid #dce4f0;
  border-radius: 11px;
  outline: none;
  font-family: "Nunito Sans", system-ui, sans-serif;
}

.form-input:focus,
.field-group input:focus,
.student-entry-row input:focus {
  border-color: #0a3269;
  background: #ffffff;
}

.students-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.student-entry {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.student-entry-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.student-entry-row input {
  flex: 1;
  min-width: 0;
}

.remove-btn {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1.5px solid #e4dcdc;
  background: #ffffff;
  color: #98a2b3;
  border-radius: 11px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
}

.remove-btn:hover {
  border-color: #d5a0a0;
  color: #b54545;
}

.secondary-btn {
  align-self: flex-start;
  padding: 11px 18px;
  background: #ffffff;
  border: 1.5px dashed #b9c7dd;
  border-radius: 11px;
  color: #0a3269;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}

.secondary-btn:hover {
  border-color: #0a3269;
  background: #f4f8ff;
}

.slots-intro {
  padding: 28px 28px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slots-intro p {
  margin: 0;
}

#slots-intro-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475467;
}

.tabs-wrap {
  padding: 14px 28px 0;
}

.tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 11px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid #dce4f0;
  background: #ffffff;
  color: #475467;
}

.tab-btn.active {
  background: #0a3269;
  border-color: #0a3269;
  color: #ffffff;
}

.tab-badge {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #eef2f8;
  color: #5b6b84;
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.days-stack {
  padding: 14px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-card {
  border: 1.5px solid #e7edf6;
  border-radius: 16px;
  overflow: hidden;
  background: #fcfdff;
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: #f4f7fc;
  border-bottom: 1.5px solid #e7edf6;
}

.day-head-label {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.day-head-label strong {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #0a3269;
}

.day-head-label span {
  font-size: 12.5px;
  color: #7a8aa3;
}

.tiny-action {
  padding: 6px 11px;
  background: transparent;
  border: 1px solid #c7d4e8;
  border-radius: 8px;
  color: #3a5a8c;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}

.tiny-action:hover {
  border-color: #0a3269;
  color: #0a3269;
}

.slot-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 9px;
}

.slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 11px 8px;
  border-radius: 11px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  background: #ffffff;
  border: 1.5px solid #dce4f0;
  color: #475467;
}

.slot-btn:hover {
  border-color: #0a3269;
}

.slot-btn.active {
  background: #0a3269;
  border-color: #0a3269;
  color: #ffffff;
}

.slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: #e1e8f2;
}

.slot-btn.active .slot-dot {
  background: #7fb2f0;
}

.submit-block {
  padding: 0 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.counter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1.5px solid #e7edf6;
  background: #f8fafd;
}

.counter-box span:first-child {
  font-size: 14.5px;
  color: #344054;
}

#counter-count {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #0a3269;
}

.counter-box.success {
  border-color: #cfe3d6;
  background: #eff6f1;
}

.counter-box.success #counter-count {
  color: #2e7d4f;
}

.error-box {
  padding: 13px 16px;
  background: #fdf3f3;
  border: 1.5px solid #f0d3d3;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.55;
  color: #983b3b;
}

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

.primary-btn {
  width: 100%;
  min-height: 54px;
  background: #0a3269;
  border: none;
  border-radius: 13px;
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.primary-btn:hover {
  background: #0d3f84;
}

.primary-btn:active {
  background: #082950;
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.privacy-note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #8a97ab;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.success-card {
  padding: 40px 28px;
  text-align: center;
  animation: riseIn 320ms ease both;
}

.success-badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #eaf3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #2e7d4f;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

.success-card h2 {
  margin: 0 0 12px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 23px;
  color: #0a3269;
}

.success-message {
  margin: 0 auto 26px;
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #475467;
  text-wrap: pretty;
}

.summary-card {
  text-align: left;
  border: 1.5px solid #e7edf6;
  border-radius: 16px;
  overflow: hidden;
}

.summary-head {
  padding: 12px 16px;
  background: #f4f7fc;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8aa3;
}

.summary-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-student {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid #eef2f8;
}

.summary-student:first-child {
  border-top: none;
  padding-top: 0;
}

.summary-student-name {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #0a3269;
}

.summary-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.summary-day {
  min-width: 88px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #3a5a8c;
}

.summary-times {
  font-size: 14px;
  line-height: 1.6;
  color: #475467;
}

.page-footnote {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #8a97ab;
}

@media (max-width: 640px) {
  .card-intro,
  .card-section,
  .slots-intro,
  .days-stack,
  .submit-block {
    padding-left: 18px;
    padding-right: 18px;
  }

  .days-stack {
    gap: 14px;
  }

  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
