/* Welcome Modal Styles */
.welcome-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.welcome-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-modal {
  position: relative;
  background: #fff;
  border-radius: 15px;
  max-width: 750px;
  width: 90%;
  max-height: fit-content;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #2c3e50;
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: #fff;
  transform: rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-image-section {
  position: relative;
  background: url("https://images.unsplash.com/photo-1600210492493-0946911123ea?w=600&h=800&fit=crop")
    center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  color: #fff;
  min-height: 500px;
}

.modal-image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgb(116 168 216 / 56%) 0%,
    rgb(134 171 197 / 50%) 100%
  );
  z-index: 0;
}

.modal-image-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.modal-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

.modal-image-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  font-weight: bold;
}

.modal-form-section {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-form-section h3 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.modal-form-section .subtitle {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.modal-form-group {
  margin-bottom: 0.9rem;
}

.modal-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.modal-input-wrapper {
  position: relative;
}

.modal-input-wrapper i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #1e73be;
  font-size: 1rem;
}

.modal-form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.6rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s;
}

.modal-form-group input:focus {
  outline: none;
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.modal-form-group input::placeholder {
  color: #999;
}

.modal-form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #999;
  font-size: 0.75rem;
}

.modal-submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #1e73be, #155a8a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(30, 115, 190, 0.3);
  margin-top: 0.3rem;
}

.modal-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 115, 190, 0.4);
}

.modal-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.modal-success-message {
  display: none;
  background: #27ae60;
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  animation: slideUp 0.3s ease;
}

.modal-success-message.active {
  display: block;
}

.modal-error-message {
  display: none;
  background: #e74c3c;
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  animation: slideUp 0.3s ease;
}

.modal-error-message.active {
  display: block;
}

.modal-privacy {
  margin-top: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
}

.modal-privacy i {
  color: #1e73be;
  margin-right: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .welcome-modal {
    grid-template-columns: 1fr;
    max-width: 95%;
  }

  .modal-image-section {
    padding: 1.5rem 1rem;
    min-height: 150px;
  }

  .modal-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.7rem;
  }

  .modal-image-section h2 {
    font-size: 1.3rem;
  }

  .modal-form-section {
    padding: 1.5rem 1.2rem;
  }

  .modal-form-section h3 {
    font-size: 1.4rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .welcome-modal {
    max-width: 95%;
  }

  .modal-form-group input {
    padding: 0.7rem 0.8rem 0.7rem 2.5rem;
    font-size: 0.9rem;
  }

  .modal-input-wrapper i {
    left: 0.7rem;
    font-size: 0.95rem;
  }

  .modal-form-section h3 {
    font-size: 1.3rem;
  }
}
