/* ============================================================
   LWE Patient Care - Visa Invitation Letter Modal Overlay Styles
   ============================================================ */

/* Overlay Background */
.visa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.visa-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Content Card */
.visa-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(132, 0, 20, 0.4);
  overflow: hidden;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.visa-modal-overlay.active .visa-modal-card {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.visa-modal-header {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #ffffff;
  padding: 24px 28px 20px;
  position: relative;
}

.visa-modal-header .modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.visa-modal-header h3 {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.visa-modal-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
}

/* Close Button */
.visa-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.visa-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body / Form */
.visa-modal-body {
  padding: 24px 28px 28px;
}

.visa-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visa-form-group.full-width {
  grid-column: span 2;
}

.visa-form-group {
  display: flex;
  flex-direction: column;
}

.visa-form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.visa-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.visa-input-wrap i {
  position: absolute;
  left: 14px;
  color: #d32f2f;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
}

.visa-input-wrap .form-control-modal {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.visa-input-wrap select.form-control-modal {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%3Cd32f2f' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.visa-input-wrap textarea.form-control-modal {
  padding-left: 40px;
  min-height: 80px;
  resize: vertical;
}

.visa-input-wrap .form-control-modal:focus {
  background-color: #ffffff;
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

/* Submit Button */
.visa-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #2ed176 0%, #1db965 100%);
  color: #ffffff !important;
  border: none;
  padding: 14px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(29, 185, 101, 0.3);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.visa-btn-submit:hover {
  background: linear-gradient(135deg, #1db965 0%, #159e53 100%);
  box-shadow: 0 8px 25px rgba(29, 185, 101, 0.45);
  transform: translateY(-2px);
}

.visa-btn-submit i {
  font-size: 1.25rem;
}

.visa-modal-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 576px) {
  .visa-form-grid {
    grid-template-columns: 1fr;
  }
  .visa-form-group.full-width {
    grid-column: span 1;
  }
  .visa-modal-card {
    border-radius: 16px;
  }
  .visa-modal-header {
    padding: 20px;
  }
  .visa-modal-body {
    padding: 20px;
  }
}
