/* =========================================================
   POPUP CONTACT FORM
   ========================================================= */

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 58, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.active { display: flex; opacity: 1; }

.popup-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  border: 1px solid rgba(31,182,182,0.2);
  animation: popupSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Inter', Arial, sans-serif;
}
@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-header {
  background: linear-gradient(135deg, #0B1E3A 0%, #132B4F 100%);
  padding: 24px 30px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.popup-header::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(31,182,182,0.35) 0%, transparent 70%);
  top: -90px; right: -70px;
  border-radius: 50%;
}
.popup-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1FB6B6, #4DD0D0, #D4AF37, #4DD0D0, #1FB6B6);
}
.popup-header h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.popup-header h3 i { color: #4DD0D0; }
.popup-header p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  margin: 0;
  position: relative;
  z-index: 2;
}
.popup-close {
  position: absolute;
  top: 16px; right: 18px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 3;
  font-family: inherit;
}
.popup-close:hover { background: #1FB6B6; transform: rotate(90deg); }

.popup-body {
  padding: 24px 30px 28px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.popup-body::-webkit-scrollbar { display: none; }

.popup-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.popup-body .form-group { margin-bottom: 14px; }
.popup-body .form-row .form-group { margin-bottom: 0; }
.popup-body .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0B1E3A;
  margin-bottom: 6px;
}
.popup-body .form-group label .req { color: #1FB6B6; }
.popup-body .form-group input,
.popup-body .form-group select,
.popup-body .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E9ECF0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1A1F2B;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
  box-sizing: border-box;
}
.popup-body .form-group input:focus,
.popup-body .form-group select:focus,
.popup-body .form-group textarea:focus {
  border-color: #1FB6B6;
  box-shadow: 0 0 0 3px rgba(31,182,182,0.15);
  background: #E6F7F7;
}
.popup-body .form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.popup-body .btn-submit {
  background: #1FB6B6;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(31,182,182,0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.popup-body .btn-submit:hover:not(:disabled) {
  background: #17a3a3;
  transform: translateY(-2px);
}
.popup-body .btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.popup-body .form-success {
  display: none;
  text-align: center;
  padding: 40px 20px 30px;
}
.popup-body .form-success.show {
  display: block !important;
  animation: fadeInUp 0.5s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.popup-body .success-icon {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #E6F7F7 0%, #d0f0f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: #1FB6B6;
  font-size: 42px;
  box-shadow: 0 10px 30px rgba(31,182,182,0.25);
}
.popup-body .form-success h3 {
  color: #0B1E3A;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
.popup-body .form-success p {
  color: #5B6778;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.popup-body .form-success p strong { color: #0B1E3A; }
.popup-body .success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.popup-body .btn-again,
.popup-body .btn-close-success {
  padding: 12px 28px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}
.popup-body .btn-again {
  background: #1FB6B6;
  color: #fff;
  border: none;
}
.popup-body .btn-again:hover { background: #17a3a3; transform: translateY(-2px); }
.popup-body .btn-close-success {
  background: transparent;
  color: #0B1E3A;
  border: 1.5px solid #E9ECF0;
}
.popup-body .btn-close-success:hover { border-color: #1FB6B6; color: #1FB6B6; }

@media (max-width: 560px) {
  .popup-modal { border-radius: 20px; }
  .popup-header { padding: 20px 22px 16px; }
  .popup-header h3 { font-size: 18px; }
  .popup-header p { font-size: 13px; }
  .popup-body { padding: 20px 22px 24px; }
  .popup-body .form-row { grid-template-columns: 1fr; gap: 0; }
  .popup-body .form-row .form-group { margin-bottom: 14px; }
  .popup-body .form-success h3 { font-size: 20px; }
  .popup-body .success-icon { width: 76px; height: 76px; font-size: 34px; }
  .popup-close { top: 14px; right: 16px; width: 34px; height: 34px; font-size: 20px; }
}