/* =====================================================
   XPLOREWIDE — Universal Enquiry & Callback Modal
   Matches main site theme: navy #1A1A2E, gold #FFD700
   ===================================================== */

/* ── Overlay backdrop ── */
.xw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.xw-modal-overlay.xw-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal card ── */
.xw-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
  opacity: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
}
.xw-modal-overlay.xw-open .xw-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Modal header ── */
.xw-modal-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #0F3460 100%);
  padding: 26px 28px 22px;
  border-radius: 24px 24px 0 0;
  position: relative;
}
.xw-modal-accent {
  width: 36px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FF8F00);
  border-radius: 2px;
  margin-bottom: 14px;
}
.xw-modal-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 6px;
}
.xw-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 4px;
}
.xw-modal-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.xw-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.xw-modal-close:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

/* ── Trust bar ── */
.xw-modal-trust {
  display: flex;
  gap: 16px;
  padding: 14px 28px;
  background: #FFFBEC;
  border-bottom: 1px solid #FFE066;
}
.xw-trust-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #7a5b00;
  white-space: nowrap;
}
.xw-trust-chip svg {
  flex-shrink: 0;
  color: #FF8F00;
}

/* ── Form body ── */
.xw-modal-body {
  padding: 24px 28px 28px;
}

/* ── Field group ── */
.xw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.xw-field {
  margin-bottom: 14px;
}
.xw-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-bottom: 6px;
}
.xw-field label .xw-req {
  color: #FF8F00;
  margin-left: 2px;
}
.xw-field input,
.xw-field select,
.xw-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.xw-field input:focus,
.xw-field select:focus,
.xw-field textarea:focus {
  border-color: #FF8F00;
  box-shadow: 0 0 0 3px rgba(255,143,0,0.12);
  background: #fff;
}
.xw-field textarea {
  resize: vertical;
  min-height: 88px;
}
.xw-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Error message ── */
.xw-form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #B91C1C;
  margin-bottom: 14px;
  display: none;
}
.xw-form-error.xw-visible { display: block; }

/* ── Submit button ── */
.xw-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD700 0%, #FF8F00 100%);
  color: #111;
  font-weight: 900;
  font-size: 15px;
  font-family: inherit;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.xw-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.xw-submit-btn:active { transform: translateY(0); }
.xw-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Legal note ── */
.xw-modal-legal {
  margin-top: 12px;
  font-size: 11px;
  color: #aaa;
  text-align: center;
  line-height: 1.6;
}
.xw-modal-legal a { color: #888; text-decoration: underline; }

/* ── Success state ── */
.xw-modal-success {
  text-align: center;
  padding: 48px 28px;
}
.xw-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FF8F00);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}
.xw-success-title {
  font-size: 22px;
  font-weight: 900;
  color: #1A1A2E;
  margin-bottom: 10px;
}
.xw-success-msg {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto 24px;
}
.xw-success-close-btn {
  background: #1A1A2E;
  color: #FFD700;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.xw-success-close-btn:hover { opacity: 0.85; }

/* ── Callback-specific ── */
.xw-callback-times {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 6px;
}
.xw-time-chip {
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  background: #fafafa;
}
.xw-time-chip:hover { border-color: #FF8F00; color: #FF8F00; background: #FFFBEC; }
.xw-time-chip.xw-selected {
  border-color: #FF8F00;
  background: linear-gradient(135deg, #FFD700, #FF8F00);
  color: #111;
}

/* ── Honeypot (invisible) ── */
.xw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .xw-modal { border-radius: 20px; max-height: 96vh; }
  .xw-modal-header { padding: 20px 20px 18px; }
  .xw-modal-body { padding: 20px 20px 24px; }
  .xw-modal-trust { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  .xw-field-row { grid-template-columns: 1fr; gap: 0; }
  .xw-callback-times { grid-template-columns: repeat(2, 1fr); }
  .xw-modal-title { font-size: 18px; }
}

.footer-socials a{display:inline-flex;align-items:center;justify-content:center}.footer-socials a svg{width:20px;height:20px;display:block}
