.map-agenda-widget,
.map-agenda-widget * {
  box-sizing: border-box;
}

.map-agenda-widget {
  --map-agenda-primary: #0b1f3a;
  --map-agenda-secondary: #1c4e92;
  --map-agenda-button: #1e63c6;
  width: min(100%, 560px);
  max-width: 560px;
  margin: 24px auto;
  padding: 0 12px;
  font-family: inherit;
}

.map-agenda-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.08);
}

.map-agenda-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--map-agenda-primary);
}

.map-agenda-header p {
  margin: 0 0 20px;
  color: #475467;
}

.map-agenda-field {
  margin: 14px 0;
}

.map-agenda-field label {
  display: block;
  font-weight: 650;
  margin-bottom: 7px;
}

.map-agenda-field input,
.map-agenda-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(16, 24, 40, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.map-agenda-field input:focus,
.map-agenda-field select:focus {
  outline: none;
  border-color: var(--map-agenda-button);
  box-shadow: 0 0 0 4px rgba(30, 99, 198, 0.12);
}

.map-agenda-field input[type="date"] {
  line-height: 1.25;
  appearance: auto;
  -webkit-appearance: auto;
}

.map-agenda-field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.map-agenda-status {
  min-height: 22px;
  margin: 10px 0;
  font-size: 14px;
  color: #475467;
}

.map-agenda-status.is-error {
  color: #b42318;
}

.map-agenda-status.is-ready {
  color: #027a48;
}

.map-agenda-status.is-warning {
  color: #b54708;
}

.map-agenda-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.map-agenda-slot {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.18);
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

.map-agenda-slot:hover,
.map-agenda-slot.is-selected {
  border-color: var(--map-agenda-primary);
  background: var(--map-agenda-primary);
  color: #fff;
}

.map-agenda-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--map-agenda-button);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.map-agenda-submit:hover:not(:disabled) {
  filter: brightness(.96);
}

.map-agenda-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.map-agenda-success {
  border-radius: 14px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #054f31;
  padding: 16px;
  line-height: 1.45;
}

.map-agenda-success a {
  color: inherit;
  text-decoration: underline;
}

.map-agenda-error {
  border: 1px solid #fecdca;
  background: #fffbfa;
  color: #b42318;
  padding: 12px;
  border-radius: 10px;
}

.map-agenda-service-fixed {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  color: var(--map-agenda-primary);
  font-weight: 650;
}

@media (max-width: 480px) {
  .map-agenda-widget {
    margin: 18px auto;
    padding: 0 10px;
  }

  .map-agenda-card {
    padding: 20px;
    border-radius: 16px;
  }

  .map-agenda-header h3 {
    font-size: 22px;
  }

  .map-agenda-slots {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }

  .map-agenda-slot {
    min-width: 0;
  }
}
