/* ==========================================================================
   VM THOTTAM ASEEL GROUPS - MODAL DEFENSIVE SYSTEM
   Strict modular rules: <= 300 lines
   Mandatory position: fixed !important; inset: 0 !important;
   display: none; (Zero Leaking Modals Guardrail)
   ========================================================================== */

.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 3, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.0rem;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-container {
  background: #111118;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: #111118;
  z-index: 2;
}

.modal-title {
  font-family: var(--font-tamil);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title i {
  color: var(--accent-gold);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.modal-close-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

.modal-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
}

/* Form Controls Inside Modals */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-tamil);
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d1dc;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-tamil);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--trans-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.form-select option {
  background: #151520;
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}


