/* ==========================================================================
   Science Meets Fiction 2026 – Registration Form
   ========================================================================== */

.smf-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.smf-section {
  margin-bottom: 36px;
}

.smf-section__title {
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e5e5;
}

.smf-section__hint {
  color: #666;
  font-size: 0.9em;
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   Event list
   -------------------------------------------------------------------------- */

.smf-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smf-event-item {
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}

.smf-event-item--active {
  border-color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.12);
}

/* Checkbox label row */
.smf-event-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: #fafafa;
  transition: background 0.12s;
}

.smf-event-label:hover {
  background: #f0f0f0;
}

.smf-event-item--active .smf-event-label {
  background: #f0f3ff;
}

.smf-event-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #1a1a2e;
  cursor: pointer;
}

.smf-event-label__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smf-event-title {
  font-weight: 600;
  font-size: 1em;
  color: #1a1a2e;
}

.smf-event-badge {
  display: inline-block;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.72em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  width: fit-content;
}

.smf-event-location {
  color: #666;
  font-size: 0.88em;
}

/* Slot selector */
.smf-slots-wrap {
  padding: 14px 18px 0;
  border-top: 1px solid #eee;
}

.smf-slots-hint {
  font-size: 0.88em;
  font-weight: 600;
  color: #444;
  margin: 0 0 8px;
}

.smf-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.smf-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.smf-slot:has(input:checked) {
  background: #eef1fb;
  border-color: #1a1a2e;
}

.smf-slot--unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

.smf-slot input[type="radio"] {
  accent-color: #1a1a2e;
  flex-shrink: 0;
}

.smf-slot__label {
  font-size: 0.92em;
  flex: 1;
}

.smf-slot__status {
  font-size: 0.8em;
  color: #999;
  font-style: italic;
  white-space: nowrap;
}

.smf-slot--unavailable .smf-slot__status {
  color: #c0392b;
  font-style: normal;
  font-weight: 600;
}

.smf-single-slot {
  font-size: 0.92em;
  color: #444;
  padding: 0 0 14px;
  margin: 0;
}

/* Additional fields */
.smf-event-extras {
  padding: 14px 18px;
  border-top: 1px solid #eee;
  background: #fafbff;
}

/* --------------------------------------------------------------------------
   Fields grid
   -------------------------------------------------------------------------- */

.smf-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

@media (max-width: 540px) {
  .smf-fields-grid {
    grid-template-columns: 1fr;
  }
}

.smf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.smf-field--additional {
  margin-bottom: 12px;
}

.smf-field--additional:last-child {
  margin-bottom: 0;
}

.smf-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
}

.smf-required {
  color: #c0392b;
  margin-left: 2px;
}

.smf-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: inherit;
  color: #222;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.smf-input:focus {
  outline: none;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.smf-input--error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

.smf-textarea {
  resize: vertical;
  min-height: 80px;
}

.smf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.smf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
  cursor: pointer;
}

.smf-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a1a2e;
  flex-shrink: 0;
}

.smf-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smf-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  cursor: pointer;
}

.smf-radio-label input[type="radio"] {
  accent-color: #1a1a2e;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.smf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  line-height: 1.2;
}

.smf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.smf-btn--primary {
  background: #1a1a2e;
  color: #fff;
}

.smf-btn--primary:hover:not(:disabled) {
  background: #2c2c50;
  transform: translateY(-1px);
}

.smf-btn--danger {
  background: #c0392b;
  color: #fff;
}

.smf-btn--danger:hover:not(:disabled) {
  background: #a93226;
  transform: translateY(-1px);
}

.smf-btn--secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.smf-btn--secondary:hover:not(:disabled) {
  background: #e0e0e0;
}

/* Spinner */
.smf-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: smf-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.smf-submit-section {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Notices / response messages
   -------------------------------------------------------------------------- */

.smf-notice {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93em;
  line-height: 1.5;
}

.smf-notice--success {
  background: #edfaef;
  border: 1px solid #4caf50;
  color: #1b5e20;
}

.smf-notice--error {
  background: #fdecea;
  border: 1px solid #e57373;
  color: #7f1d1d;
}

.smf-notice--info {
  background: #e8f4fd;
  border: 1px solid #64b5f6;
  color: #0d47a1;
}

.smf-notice__icon {
  font-size: 1.2em;
  flex-shrink: 0;
  margin-top: 1px;
}

.smf-notice ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smf-notice li + li {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Cancellation page
   -------------------------------------------------------------------------- */

.smf-cancel-wrap {
  max-width: 580px;
}

.smf-cancel-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.smf-cancel-box h2 {
  margin-top: 0;
  color: #c0392b;
}

.smf-cancel-list {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 12px 16px 12px 28px;
  margin: 0 0 20px;
}

.smf-cancel-list li {
  padding: 4px 0;
  font-size: 0.95em;
}

.smf-cancel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .smf-event-label {
    padding: 12px 14px;
  }

  .smf-slots-wrap,
  .smf-event-extras {
    padding-left: 14px;
    padding-right: 14px;
  }

  .smf-cancel-box {
    padding: 24px 20px;
  }
}
