/* =========== Base Wrap =========== */
.emdc-form-wrap {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  max-width: 820px;
  margin: 24px 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.emdc-form-header {
  margin-bottom: 16px;
}

.emdc-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.3;
}

/* =========== Category Chips =========== */
.emdc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.emdc-chip {
  --chip: #000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  position: relative;
}

.emdc-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip, #000);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* =========== Meta / Pricing =========== */
.emdc-meta > div {
  margin: 4px 0;
}

.emdc-pricing {
  margin-top: 6px;
}

/* =========== Form =========== */
.emdc-booking-form {
  display: block;
  margin-top: 16px;
}

#emdc-attendees {
  display: grid;
  gap: 16px;
}

/* Attendee block */
.emdc-attendee {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.emdc-attendee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.emdc-attendee-header h4 {
  margin: 0;
  font-size: 16px;
}

/* Inputs */
.emdc-attendee label {
  display: block;
  font-size: 13px;
  color: #111827;
  margin-bottom: 10px;
}

.emdc-attendee input[type="text"],
.emdc-attendee input[type="email"],
.emdc-attendee input[type="tel"],
.emdc-attendee input[type="number"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.emdc-primary-radio {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 500;
}

/* Buttons */
.emdc-add-attendee {
  margin: 12px 0 6px 0;
}

.button.emdc-add-attendee,
.button.button-primary.emdc-submit {
  cursor: pointer;
}

.emdc-remove-attendee[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========== Totals =========== */
.emdc-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
}

.emdc-totals > div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

/* =========== Response Messages =========== */
.emdc-response {
  margin: 12px 0;
  min-height: 20px;
}

.emdc-response p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.emdc-response.emdc-success p {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.emdc-response.emdc-error p {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =========== Buttons baseline =========== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}

.button:hover {
  background: #f9fafb;
}

.button-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.button-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* =========== Small screens =========== */
@media (max-width: 640px) {
  .emdc-totals {
    grid-template-columns: 1fr;
  }
}
