/* ── Exhibition Form Modal ── */
/* Reuses .cf-modal, .cf-input, .cf-label, .cf-checkbox, .cf-submit from consultation-form.css */

.ef-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(17, 22, 25, 0.80);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px 60px;
}
.ef-modal.is-open {
  display: flex;
}

.ef-modal__wrapper {
  position: relative;
  background: #fff;
  border-radius: 44px;
  width: 100%;
  max-width: 900px;
  padding: 56px 64px 60px;
  box-sizing: border-box;
  top: 20px;
}

.ef-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  background: #edf3f8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ef-modal__close:hover { background: #d4e5f2; }

.ef-modal__title {
  font-size: 48px;
  font-weight: 700;
  color: #073248;
  letter-spacing: -2.21px;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 32px;
}

/* ── Event card ── */
.ef-event-card {
  display: flex;
  align-items: stretch;
  background: #f6fafc;
  border-radius: 27px;
  overflow: hidden;
  margin-bottom: 40px;
}

.ef-event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e54f47;
  min-width: 144px;
  padding: 20px 16px;
  flex-shrink: 0;
}
.ef-event-card__day {
  font-size: 70px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.92px;
}
.ef-event-card__month {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  line-height: 15.56px;
  margin-top: 4px;
}

.ef-event-card__info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.ef-event-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #073248;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 0;
}
.ef-event-card__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff9901;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 12px;
  letter-spacing: -0.2px;
  line-height: 23px;
  width: fit-content;
}
.ef-event-card__address {
  font-size: 14px;
  font-weight: 500;
  color: #38596a;
  letter-spacing: -0.18px;
  line-height: 23px;
  margin: 0;
}

/* ── Consent note ── */
.ef-consent-note {
  font-size: 12px;
  font-weight: 300;
  color: #073248;
  letter-spacing: -0.3px;
  line-height: 16px;
  margin: 16px 0 0 38px;
}
.cf-consent-required {
  color: #e54f47;
  margin-left: 1px;
}
.cf-consent-link {
  color: #0083da;
  text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .ef-modal {
    padding: 0;
    align-items: flex-start;
  }
  .ef-modal__wrapper {
    border-radius: 0;
    padding: 72px 16px 40px;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .ef-modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
  }
  .ef-modal__title {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .ef-event-card {
    flex-direction: column;
  }
  .ef-event-card__date {
    flex-direction: row;
    gap: 12px;
    min-width: unset;
    padding: 16px 20px;
    border-radius: 27px 27px 0 0;
    justify-content: center;
  }
  .ef-event-card__day {
    font-size: 48px;
  }
  .ef-event-card__month {
    font-size: 14px;
    margin-top: 0;
    align-self: flex-end;
    padding-bottom: 6px;
  }
  .ef-event-card__info {
    padding: 16px;
  }
  .cf-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cf-submit {
    width: 100%;
    padding: 16px;
  }
  .ef-consent-note {
    margin-left: 0;
  }
}
