.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.contact-modal.is-open {
  display: block;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.contact-modal__panel {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  padding: 24px;
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__header {
  margin-bottom: 22px;
  padding-right: 48px;
}

.contact-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.contact-modal__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  color: var(--ink-1);
}

.contact-modal__subtitle {
  margin: 0;
  color: var(--ink-2);
}

.contact-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-modal-field--full {
  grid-column: 1 / -1;
}

.contact-modal-field label {
  font-weight: 700;
  color: var(--ink-1);
}

.contact-modal-field input,
.contact-modal-field select,
.contact-modal-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-1);
  font: inherit;
}

.contact-modal-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-modal-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  overflow: hidden;
}

.contact-modal-input-wrap span {
  padding: 0 14px;
  font-weight: 700;
  color: var(--ink-2);
  background: #f8f8f8;
}

.contact-modal-input-wrap input {
  border: 0;
  border-radius: 0;
}

.contact-modal-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-modal-date input {
  width: 84px;
  text-align: center;
}

.contact-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.contact-modal-privacy {
  margin: 0;
  color: var(--ink-2);
}

.contact-modal-privacy a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.contact-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-modal-submit:hover {
  background: #e3a400;
  border-color: #e3a400;
  transform: translateY(-1px);
}

.contact-modal-honeypot {
  position: absolute;
  left: -5000px;
}

body.contact-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-modal__panel {
    padding: 18px;
    margin: 12px auto;
    max-height: calc(100vh - 24px);
  }

  .contact-modal-grid {
    grid-template-columns: 1fr;
  }

  .contact-modal-field--full {
    grid-column: auto;
  }

  .contact-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-modal-submit {
    width: 100%;
  }
}
