/* Consultation modal */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

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

.consult-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.72);
}

.consult-modal__panel {
  position: relative;
  margin: 6vh auto;
  width: min(680px, calc(100% - 2rem));
  max-height: 88vh;
  overflow: auto;
  background: #fdfcfa;
  border: 1px solid #e2ded6;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(13, 17, 23, 0.25);
  padding: 1.5rem;
}

.consult-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.consult-modal__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 400;
  color: #0d1117;
  margin-bottom: 0.5rem;
}

.consult-modal__intro {
  color: #3a3f47;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.consult-form {
  display: grid;
  gap: 0.95rem;
}

.consult-form__row {
  display: grid;
  gap: 0.45rem;
}

.consult-form__row label {
  font-size: 0.85rem;
  color: #3a3f47;
  font-weight: 600;
}

.consult-form__row input,
.consult-form__row select,
.consult-form__row textarea {
  width: 100%;
  border: 1px solid #d8d2c6;
  border-radius: 6px;
  background: #fff;
  color: #0d1117;
  font: inherit;
  padding: 0.78rem 0.85rem;
}

.consult-form__row textarea {
  min-height: 120px;
  resize: vertical;
}

.consult-form__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.consult-form__submit {
  border: 0;
  border-radius: 2px;
  background: #b87333;
  color: #fdfcfa;
  padding: 0.95rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.consult-form__submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.consult-form__status {
  min-height: 1.2rem;
  font-size: 0.84rem;
}

.consult-form__status[data-tone='success'] { color: #0f766e; }
.consult-form__status[data-tone='error'] { color: #b91c1c; }

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .consult-modal__panel {
    margin: 2.5vh auto;
    width: calc(100% - 1rem);
    max-height: 95vh;
    padding: 1.1rem;
  }

  .consult-form__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
