/* =====================================================
   ACRYLICTUBES.IN — popup.css
   Enquire Now Popup — Standalone Styles
   ===================================================== */

/* ── BACKDROP ─────────────────────────────────────── */
.enq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 20, 40, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.enq-backdrop.enq-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── POPUP BOX ────────────────────────────────────── */
.enq-popup {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.enq-popup::-webkit-scrollbar { display: none; }
.enq-backdrop.enq-open .enq-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── HEADER ───────────────────────────────────────── */
.enq-head {
  padding: 24px 28px 0;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.enq-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.enq-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.enq-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1a6fa8, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.enq-brand-icon svg { display: block; }
.enq-brand-text { line-height: 1.25; }
.enq-brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0d1e2e;
  font-family: 'Outfit', sans-serif;
}
.enq-brand-text span {
  font-size: 12px;
  color: #64748b;
  font-family: 'Outfit', sans-serif;
}

/* Close button */
.enq-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f8ff;
  border: 1px solid #d0e8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  color: #64748b;
  line-height: 1;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  font-family: sans-serif;
}
.enq-close:hover {
  background: #e8f4fd;
  color: #0d1e2e;
  transform: scale(1.08);
}

/* ── TABS ─────────────────────────────────────────── */
.enq-tabs {
  display: flex;
  gap: 0;
}
.enq-tab {
  flex: 1;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
  border-radius: 0;
}
.enq-tab:hover { color: #1a6fa8; background: rgba(26, 111, 168, 0.04); }
.enq-tab.enq-tab-on {
  color: #1a6fa8;
  border-bottom-color: #1a6fa8;
}

/* ── BODY ─────────────────────────────────────────── */
.enq-body { padding: 24px 28px 28px; }

/* ── FORMS ────────────────────────────────────────── */
.enq-form { display: none; animation: enqFadeIn 0.28s ease; }
.enq-form.enq-form-on { display: block; }

@keyframes enqFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Row */
.enq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Field group */
.enq-fg { margin-bottom: 16px; }
.enq-fg label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}
.enq-fg label .enq-req { color: #ef4444; }

/* Inputs */
.enq-fi {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d0e8f8;
  border-radius: 8px;
  background: #f8fbff;
  color: #2d3748;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.enq-fi:focus {
  border-color: #1a6fa8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 111, 168, 0.1);
}
.enq-fi::placeholder { color: #94a3b8; }
select.enq-fi { cursor: pointer; }
textarea.enq-fi {
  resize: none;
  min-height: 90px;
  line-height: 1.65;
}

/* Select arrow */
.enq-select-wrap { position: relative; }
.enq-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #94a3b8;
  pointer-events: none;
}

/* ── CHIP CHECKBOXES ──────────────────────────────── */
.enq-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.enq-chip {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid #d0e8f8;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 13px !important;
  font-family: 'Outfit', sans-serif !important;
  color: #64748b !important;
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s, color 0.22s;
  user-select: none;
}
.enq-chip input[type="checkbox"] { display: none; }
.enq-chip:hover { border-color: #4fa3d8; color: #1a6fa8; background: #f0f8ff; }
.enq-chip.enq-chip-on {
  border-color: #1a6fa8;
  background: rgba(26, 111, 168, 0.08);
  color: #1a6fa8;
}
.enq-chip-mark {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid #d0e8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  transition: background 0.2s, border-color 0.2s;
}
.enq-chip.enq-chip-on .enq-chip-mark {
  background: #1a6fa8;
  border-color: #1a6fa8;
  color: #fff;
  font-weight: 700;
}

/* ── INFO NOTE ────────────────────────────────────── */
.enq-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(26, 111, 168, 0.07);
  border: 1px solid rgba(26, 111, 168, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
}
.enq-note svg { flex-shrink: 0; color: #1a6fa8; margin-top: 1px; }

/* ── SUBMIT BUTTONS ───────────────────────────────── */
.enq-submit {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #1a6fa8, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 18px rgba(26, 111, 168, 0.32);
}
.enq-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 111, 168, 0.42);
}
.enq-submit:active { transform: translateY(0); }
.enq-submit svg { flex-shrink: 0; }

.enq-submit-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.28);
}
.enq-submit-wa:hover { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4); }

/* Disabled state */
.enq-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ── TRUST ROW ────────────────────────────────────── */
.enq-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.enq-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  color: #64748b;
}
.enq-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  animation: enqBlink 1.5s ease-in-out infinite;
}
@keyframes enqBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── SUCCESS STATE ────────────────────────────────── */
.enq-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 32px;
}
.enq-success.enq-success-on { display: flex; }

.enq-success-tick {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  animation: enqPopIn 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes enqPopIn {
  from { transform: scale(0) rotate(-20deg); }
  to   { transform: scale(1) rotate(0); }
}
.enq-success h3 {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #0d1e2e;
  margin-bottom: 10px;
}
.enq-success p {
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  line-height: 1.75;
  max-width: 320px;
}
.enq-success p strong { color: #0d1e2e; font-weight: 700; }

.enq-success-close {
  margin-top: 24px;
  padding: 11px 30px;
  background: #f0f8ff;
  border: 1.5px solid #d0e8f8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #1a6fa8;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s;
}
.enq-success-close:hover {
  background: #e8f4fd;
  border-color: #1a6fa8;
}

/* ── DARK MODE ────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .enq-popup { background: #1a2435; border-color: rgba(255,255,255,0.08); }
  .enq-head  { background: #1a2435; border-bottom-color: rgba(255,255,255,0.07); }
  .enq-brand-text strong { color: #f0f8ff; }
  .enq-brand-text span   { color: #94a3b8; }
  .enq-close { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #94a3b8; }
  .enq-close:hover { background: rgba(255,255,255,0.1); color: #f0f8ff; }
  .enq-tab   { color: #94a3b8; }
  .enq-tab.enq-tab-on { color: #4fa3d8; border-bottom-color: #4fa3d8; }
  .enq-fg label { color: #94a3b8; }
  .enq-fi { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: #e8f4fd; }
  .enq-fi::placeholder { color: #64748b; }
  .enq-fi:focus { background: rgba(255,255,255,0.08); border-color: #4fa3d8; box-shadow: 0 0 0 3px rgba(79,163,216,0.15); }
  .enq-chip { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #94a3b8; }
  .enq-chip:hover { border-color: #4fa3d8; color: #4fa3d8; background: rgba(79,163,216,0.08); }
  .enq-chip.enq-chip-on { border-color: #4fa3d8; background: rgba(79,163,216,0.12); color: #4fa3d8; }
  .enq-note { background: rgba(79,163,216,0.08); border-color: rgba(79,163,216,0.2); color: #94a3b8; }
  .enq-trust-item { color: #94a3b8; }
  .enq-success h3 { color: #f0f8ff; }
  .enq-success p  { color: #94a3b8; }
  .enq-success p strong { color: #f0f8ff; }
  .enq-success-close { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #4fa3d8; }
  .enq-success-close:hover { background: rgba(79,163,216,0.1); border-color: #4fa3d8; }
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 540px) {
  .enq-head  { padding: 18px 18px 0; }
  .enq-body  { padding: 18px 18px 22px; }
  .enq-row   { grid-template-columns: 1fr; gap: 0; }
  .enq-tab   { font-size: 11.5px; padding: 10px 4px; }
  .enq-popup { border-radius: 16px; max-height: 95vh; }
  .enq-success { padding: 32px 16px 24px; }
  .enq-trust { gap: 12px; }
}

@media (max-width: 380px) {
  .enq-tabs         { flex-direction: column; gap: 0; }
  .enq-tab          { border-bottom: none; border-left: 2px solid transparent; text-align: left; padding: 9px 12px; }
  .enq-tab.enq-tab-on { border-left-color: #1a6fa8; border-bottom: none; background: rgba(26,111,168,0.05); }
  .enq-chip-grid    { gap: 6px; }
}
