/* Seasalt Events — stylesheet */

:root {
  --seasalt-primary: #1a3c5e;
  --seasalt-accent: #2a7a6b;
  --seasalt-bg: #f5f5f0;
  --seasalt-card-bg: #fff;
  --seasalt-border: #e0e0d8;
  --seasalt-text: #2a2a2a;
  --seasalt-muted: #666;
}

/* ─── Event list ─────────────────────────────────────────────────────────── */

.seasalt-events-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .seasalt-events-list {
    grid-template-columns: 1fr 1fr;
  }
}

.seasalt-event-card {
  background: var(--seasalt-card-bg);
  border: 1px solid var(--seasalt-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.seasalt-event-card__header {
  padding: 20px 20px 0;
  border-top: 4px solid var(--seasalt-primary);
}

.seasalt-event-card__product {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--seasalt-accent);
}

.seasalt-event-card__title {
  margin: 0;
  font-size: 18px;
  font-family: Georgia, serif;
  color: var(--seasalt-primary);
  line-height: 1.3;
}

.seasalt-event-card__meta {
  padding: 16px 20px;
  flex: 1;
}

.seasalt-event-card__meta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.seasalt-event-card__meta-label {
  flex: 0 0 70px;
  color: var(--seasalt-muted);
  font-size: 13px;
}

.seasalt-event-card__meta-value {
  color: var(--seasalt-text);
  font-weight: 500;
}

.seasalt-event-card__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--seasalt-border);
}

.seasalt-notice {
  color: var(--seasalt-muted);
  font-style: italic;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.seasalt-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.seasalt-btn:hover {
  opacity: 0.88;
}

.seasalt-btn--primary {
  background: var(--seasalt-primary);
  color: #fff;
}

.seasalt-btn--secondary {
  background: var(--seasalt-accent);
  color: #fff;
}

.seasalt-btn:disabled,
.seasalt-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.seasalt-registration-wrapper {
  background: var(--seasalt-bg);
  border-radius: 6px;
  padding: 28px;
  margin: 32px 0;
}

.seasalt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.seasalt-form__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 500px) {
  .seasalt-form__row--two {
    flex-direction: row;
  }
  .seasalt-form__row--two .seasalt-form__field {
    flex: 1;
  }
}

.seasalt-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seasalt-form__label {
  font-size: 14px;
  font-weight: bold;
  color: var(--seasalt-text);
}

.seasalt-form__input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--seasalt-text);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.seasalt-form__input:focus {
  outline: 2px solid var(--seasalt-accent);
  outline-offset: 1px;
  border-color: var(--seasalt-accent);
}

.seasalt-form__textarea {
  resize: vertical;
  min-height: 90px;
}

.seasalt-form__submit {
  align-self: flex-start;
  width: auto;
}

.seasalt-form__message {
  min-height: 0;
  font-size: 14px;
  line-height: 1.5;
}

.seasalt-form__message--success {
  color: var(--seasalt-accent);
  font-weight: bold;
}

.seasalt-form__message--error {
  color: #c00;
}
