/* =============================================================
   BEXFORD — CONSULTATION POPUP MODAL
   Colors: British Racing Green #004225 | Gold #D4AF37 | Ivory #FFFFF0
============================================================= */

/* ── Overlay ─────────────────────────────────────────────── */
.consult-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.consult-overlay.is-open {
  opacity: 1;
  visibility: visible;
}


/* ── Modal ───────────────────────────────────────────────── */
.consult-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;

  background: #004225;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(212, 175, 55, 0.12);

  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.consult-overlay.is-open .consult-modal {
  transform: translateY(0) scale(1);
}

/* Scrollbar */
.consult-modal::-webkit-scrollbar { width: 4px; }
.consult-modal::-webkit-scrollbar-track { background: rgba(255,255,240,.05); }
.consult-modal::-webkit-scrollbar-thumb { background: rgba(212,175,55,.4); border-radius: 4px; }


/* ── Gold top bar ────────────────────────────────────────── */
.consult-modal::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}


/* ── Header ─────────────────────────────────────────────── */
.consult-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 36px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.consult-header-text {
  flex: 1;
}

.consult-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
}

.consult-eyebrow span {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #D4AF37;
}

.consult-header h2 {
  margin: 0 0 8px;
  color: #FFFFF0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}

.consult-header h2 em {
  color: #D4AF37;
  font-style: normal;
}

.consult-header p {
  margin: 0;
  color: rgba(255, 255, 240, 0.58);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.75;
}

/* Close button */
.consult-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 240, 0.06);
  border: 1px solid rgba(255, 255, 240, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 240, 0.6);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.consult-close:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: #D4AF37;
}


/* ── Form body ───────────────────────────────────────────── */
.consult-form {
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* Field group */
.consult-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.consult-field label {
  color: rgba(255, 255, 240, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

/* Row of two fields */
.consult-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Inputs & select & textarea */
.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 240, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 0;
  color: #FFFFF0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: rgba(255, 255, 240, 0.25);
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(255, 255, 240, 0.09);
}

.consult-form select option {
  background: #004225;
  color: #FFFFF0;
}

.consult-form textarea {
  resize: vertical;
  min-height: 90px;
}


/* ── Submit ──────────────────────────────────────────────── */
.consult-submit {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  background: #D4AF37;
  border: none;
  color: #004225;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}

.consult-submit:hover {
  background: #c9a52e;
  transform: translateY(-2px);
}

.consult-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.consult-submit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Spinner */
.consult-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,66,37,.25);
  border-top-color: #004225;
  border-radius: 50%;
  animation: consultSpin 0.7s linear infinite;
}

.consult-submit.is-loading .consult-spinner { display: block; }
.consult-submit.is-loading .consult-submit-label { display: none; }

@keyframes consultSpin {
  to { transform: rotate(360deg); }
}


/* ── Feedback message ────────────────────────────────────── */
.consult-feedback {
  display: none;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  border-left: 3px solid;
}

.consult-feedback.success {
  background: rgba(212, 175, 55, 0.08);
  border-color: #D4AF37;
  color: #D4AF37;
}

.consult-feedback.error {
  background: rgba(255, 80, 80, 0.07);
  border-color: rgba(255, 100, 100, 0.6);
  color: rgba(255, 170, 170, 0.9);
}


/* ── Success screen ──────────────────────────────────────── */
.consult-success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 36px 48px;
  gap: 18px;
}

.consult-success-screen.is-visible {
  display: flex;
}

.consult-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  font-size: 26px;
}

.consult-success-screen h3 {
  margin: 0;
  color: #FFFFF0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}

.consult-success-screen p {
  margin: 0;
  color: rgba(255, 255, 240, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.75;
  max-width: 360px;
}

.consult-done-btn {
  display: inline-block;
  padding: 13px 32px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.consult-done-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #D4AF37;
}


/* ── Disclaimer ─────────────────────────────────────────── */
.consult-disclaimer {
  padding: 0 36px 28px;
  color: rgba(255, 255, 240, 0.28);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}


/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 560px) {
  .consult-header,
  .consult-form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .consult-row {
    grid-template-columns: 1fr;
  }

  .consult-disclaimer {
    padding-left: 22px;
    padding-right: 22px;
  }
}

