/* Global Popup Modal Styles */
.tnm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tnm-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.tnm-modal-container {
  background: #fff;
  width: 90%;
  max-width: 900px;
  height: auto;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  color: #333;
}

.tnm-modal-overlay.active .tnm-modal-container {
  transform: scale(1);
}

.tnm-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.3s ease;
}

.tnm-modal-close:hover {
  background: #f8f9fa;
  transform: rotate(90deg);
}

/* Left side: Image */
.tnm-modal-image {
  flex: 1;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  display: block;
}

/* Right side: Form */
.tnm-modal-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.tnm-modal-header h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #090b0e;
}

.tnm-modal-header p {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.tnm-form-group {
  margin-bottom: 18px;
  position: relative;
}

.tnm-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.tnm-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.tnm-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tnm-error-msg {
  color: #dc3545;
  font-size: 11px;
  margin-top: 4px;
  display: none;
}

.tnm-submit-btn {
  background: #090b0e;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.tnm-submit-btn:hover {
  background: #23272b;
  transform: translateY(-2px);
}

.tnm-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.tnm-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: tnm-spin 0.8s linear infinite;
  display: none;
}

@keyframes tnm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Message */
.tnm-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.tnm-success-icon {
  width: 64px;
  height: 64px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .tnm-modal-container {
    flex-direction: column;
    max-width: 450px;
  }
  .tnm-modal-image {
    height: 200px;
  }
  .tnm-modal-content {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .tnm-modal-container {
    width: 95%;
  }
  .tnm-modal-content {
    padding: 20px;
  }
  .tnm-modal-header h2 {
    font-size: 22px;
  }
}
