.f7-registration-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  font-family: system-ui, sans-serif;
}
.f7-reg-existing-summary {
  background: #f4f4f4;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.f7-reg-already-banner {
  background: #e8f4fd;
  border: 1px solid #b8d4f0;
  color: #0d3a5c;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.f7-reg-participation-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.f7-reg-existing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.f7-reg-existing-table th,
.f7-reg-existing-table td {
  border: 1px solid #ddd;
  padding: 0.45rem 0.6rem;
  text-align: left;
}
.f7-reg-existing-table thead th {
  background: #f5f5f5;
  font-weight: 700;
}
.f7-reg-start-line {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.f7-reg-start-label {
  font-weight: 600;
}
.f7-reg-start-value {
  font-size: 1.25rem;
}
.f7-change-start-panel {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
}
.f7-change-start-hint {
  margin: 0 0 0.75rem;
}
.f7-change-start-actions {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.f7-change-start-msg {
  margin: 0.75rem 0 0;
  color: #b00020;
  min-height: 1.25em;
}
.f7-readonly-identity {
  background: #f5f5f5 !important;
  color: #444;
  cursor: not-allowed;
}
.f7-med-reuse-note {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
  max-width: 40rem;
  line-height: 1.4;
}
.f7-registration-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.f7-fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}
.f7-fieldset legend {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.f7-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.f7-grid label,
.f7-fieldset label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.f7-grid input[type="text"],
.f7-grid input[type="email"],
.f7-grid input[type="date"],
.f7-fieldset input[type="text"],
.f7-fieldset input[type="email"],
.f7-fieldset input[type="date"],
.f7-fieldset input[type="file"],
.f7-fieldset select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: 400;
}
.f7-birth-label .f7-date-wrap {
  position: relative;
  display: block;
  margin-top: 0.35rem;
}
.f7-birth-label .f7-date-wrap input[type="date"] {
  margin-top: 0;
  padding-right: 2.75rem;
  box-sizing: border-box;
}
.f7-birth-label .f7-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}
.f7-date-cal-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: #444;
  line-height: 0;
  border-radius: 6px;
}
.f7-date-cal-btn:hover,
.f7-date-cal-btn:focus-visible {
  color: #004080;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 64, 128, 0.25);
}
.f7-date-cal-btn:focus:not(:focus-visible) {
  box-shadow: none;
}
.f7-start-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #ccc;
}
.f7-start-item {
  padding: 8px;
  text-align: center;
  background: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}
.f7-start-item.is-forbidden {
  background: #e8e8e8;
  color: #aaa;
  cursor: not-allowed;
  pointer-events: none;
}

.f7-start-item.is-taken {
  background: #ddd;
  color: #999;
  pointer-events: none;
}
.f7-start-item.is-selected {
  background: #007bff;
  color: #fff;
}
.f7-submit {
  background: #004080;
  color: #fff;
  border: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}
.f7-form-message {
  color: #b00020;
  min-height: 1.25em;
}
.f7-classes {
  margin: 0.5rem 0 0.5rem 1.25rem;
  border-left: 2px solid #e0e0e0;
  padding-left: 12px;
}
.f7-tip {
  position: relative;
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
  border-radius: 50%;
  background: #007acc;
  color: #fff;
  font-size: 12px;
  cursor: help;
  vertical-align: middle;
  font-weight: bold;
}
.f7-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: normal;
  max-width: min(320px, 90vw);
  width: max-content;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
.f7-tip:hover::after,
.f7-tip:focus-visible::after {
  opacity: 1;
}
@media screen and (max-width: 768px) {
  .f7-tip::after {
    bottom: auto;
    top: 125%;
    max-width: 90vw;
    white-space: normal;
  }
}

.f7-reg-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 200px;
}

.f7-reg-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #007acc;
  border-radius: 50%;
  animation: f7-reg-spin 0.75s linear infinite;
}

@keyframes f7-reg-spin {
  to {
    transform: rotate(360deg);
  }
}

.f7-reg-success-screen {
  background: #fff;
  padding: 1.5rem 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.f7-reg-success-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #111;
}

.f7-reg-success-body {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #333;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.f7-reg-success-table-title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  text-align: left;
}

.f7-reg-success-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  text-align: left;
}

.f7-reg-success-table th,
.f7-reg-success-table td {
  border: 1px solid #ddd;
  padding: 0.45rem 0.6rem;
}

.f7-reg-success-table thead th {
  background: #f5f5f5;
  font-weight: 700;
}

.f7-reg-success-actions {
  margin: 0;
}

.f7-confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100000;
  overflow: hidden;
}

.f7-confetti-piece {
  position: absolute;
  top: -24px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: f7-confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes f7-confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0.6;
  }
}
