/* ============================================
   POPUP CONSULTATION FORM (Vaanya Clinic)
   ============================================ */

:root{
  --bg: #ffffff;
  --text: #101828;
  --muted: #667085;
  --brand: #0ea5e9;
  --brand-dark: #075985;
  --card: #282525;
  --shadow: 0 10px 30px rgba(2,6,23,0.08);
  --ring: rgba(14,165,233,0.35);
}

body{
  margin:0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* Popup Card */
.popup-box {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  max-width: 700px;
  width: 100%;
  padding: 36px 32px 44px;
  animation: popup-fade 0.3s ease-out;
}

@keyframes popup-fade {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--brand-dark);
  color: #f0ebeb;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.popup-close:hover { background: #ef4444; }

/* Headings */
.popup-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 8px;
}
.popup-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}
.form-heading {
  text-align: center;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Form */
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-form input,
.popup-form select {
  width: 100%;
  border: 1px solid #d2d7df;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-form input::placeholder { color: #888; }

.popup-form input:focus,
.popup-form select:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Submit Button */
.popup-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}
.popup-btn:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* Trigger Button */
.open-popup-btn {
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.15s ease;
}
.open-popup-btn:hover { background: var(--brand); color: #0b1220; transform: translateY(-2px); }

.form-message {
  margin-top: 15px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  padding: 12px 18px;
  border-radius: 8px;
  display: none; /* hidden by default */
}

.form-message.success {
  display: block;
  background-color: #e6ffed;
  color: #166534;
  border: 1px solid #22c55e;
}

.form-message.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}


/* Responsive */
@media (max-width: 640px){
  .popup-box { padding: 28px 20px 36px; }
  .form-row { grid-template-columns: 1fr; }
  .popup-btn { font-size: 15px; }
}
