/* ===== CONSULTATION MODAL ===== */

.ve-consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ve-consultation-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ve-consultation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.72);
  backdrop-filter: blur(4px);
}

.ve-consultation-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.ve-consultation-modal.is-open .ve-consultation-dialog {
  transform: translateY(0) scale(1);
}

.ve-consultation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 0;
}

.ve-consultation-header h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--ve-dark);
  margin: 0 0 6px;
}

.ve-consultation-header p {
  font-size: 14px;
  color: var(--ve-text);
  margin: 0;
  line-height: 1.6;
}

.ve-consultation-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ve-border);
  border-radius: 8px;
  background: var(--ve-light);
  color: var(--ve-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--ve-trans);
}

.ve-consultation-close:hover {
  background: var(--ve-gold);
  border-color: var(--ve-gold);
  color: var(--ve-dark);
}

.ve-consultation-body {
  padding: 24px 32px 32px;
}

.ve-consultation-body .ve-form-group.has-error input,
.ve-consultation-body .ve-form-group.has-error textarea {
  border-color: #dc2626;
}

.ve-consultation-body .ve-field-error {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
}

.ve-consultation-body .ve-form-group.has-error .ve-field-error {
  display: block;
}

.ve-consultation-body .ve-form-success,
.ve-consultation-body .ve-form-error {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.ve-consultation-body .ve-form-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ve-consultation-body .ve-form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.ve-consultation-body .ve-form-success.show,
.ve-consultation-body .ve-form-error.show {
  display: block;
}

.ve-consultation-submit {
  width: 100%;
  margin-top: 4px;
}

.ve-consultation-submit.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.ve-consultation-submit .ve-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 27, 42, 0.2);
  border-top-color: var(--ve-dark);
  border-radius: 50%;
  animation: ve-spin 0.7s linear infinite;
}

.ve-consultation-submit.is-loading .ve-btn-spinner {
  display: inline-block;
}

.ve-consultation-submit.is-loading .ve-btn-label {
  opacity: 0.85;
}

@keyframes ve-spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 767px) {
  .ve-consultation-dialog {
    max-height: 95vh;
  }

  .ve-consultation-header,
  .ve-consultation-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
