/*---------------------------------------
  CONTACT MODAL - BAŞLANGIÇ
-----------------------------------------*/

/* Modal Overlay */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.contact-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Modal Container */
.contact-modal-container {
  position: relative;
  z-index: 10000;
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  animation: slideDown 0.4s ease-out;
  margin: 20px auto;
}

/* Scrollbar styling */
.contact-modal-container::-webkit-scrollbar {
  width: 8px;
}

.contact-modal-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.contact-modal-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.contact-modal-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Modal Content */
.contact-modal-content {
  background: var(--white-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
.contact-modal-header {
  background: linear-gradient(135deg, rgba(25, 178, 192, 0.95) 0%, rgba(72, 192, 179, 0.95) 50%, rgba(25, 178, 192, 0.95) 100%);
  color: var(--white-color);
  padding: 35px 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid #ffd700;
  box-shadow:
    0 15px 50px rgba(25, 178, 192, 0.3),
    inset 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.contact-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.contact-modal-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.modal-title {
  color: var(--white-color);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 2px;
  text-shadow:
    0 3px 15px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 215, 0, 0.2);
  text-transform: uppercase;
  text-align: center;
}

.modal-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, transparent);
  margin: 15px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  text-align: center;
}

/* Close Button */
.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.contact-modal-close i {
  font-size: 1.2rem;
}

/* Modal Body */
.contact-modal-body {
  padding: 30px 40px;
}

/* Form Styles */
.modal-contact-form .form-control {
  border: 2px solid rgba(25, 178, 192, 0.2);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.modal-contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 178, 192, 0.25);
  outline: none;
}

.modal-contact-form select.form-control {
  cursor: pointer;
}

.modal-contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.modal-contact-form .custom-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-contact-form .custom-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(25, 178, 192, 0.3);
}

.modal-contact-form .custom-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Checkbox Styles */
.modal-contact-form .form-check {
  padding: 12px;
  background: rgba(25, 178, 192, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-contact-form .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  cursor: pointer;
  border: 2px solid rgba(25, 178, 192, 0.3);
}

.modal-contact-form .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-contact-form .form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 178, 192, 0.25);
}

.modal-contact-form .form-check-label {
  font-size: 0.9rem;
  color: var(--dark-color);
  line-height: 1.5;
  cursor: pointer;
  margin-left: 0.5rem;
}

.modal-contact-form .form-check-label a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.modal-contact-form .form-check-label a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Form Validation - Scoped to Modal */
.contact-modal .form-control.is-valid {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 178, 192, 0.25);
}

.contact-modal .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Alert Styles */
.contact-modal-body .alert {
  border-radius: 15px;
  border: none;
  padding: 20px;
  margin-bottom: 25px;
  font-weight: 500;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-modal .alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  color: #155724;
  border-left: 4px solid #28a745;
}

.contact-modal .alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.contact-modal .alert-info {
  background: linear-gradient(135deg, rgba(25, 178, 192, 0.1), rgba(25, 178, 192, 0.05));
  color: #0c5460;
  border-left: 4px solid var(--primary-color);
}

.contact-modal .d-none {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-modal-container {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .contact-modal-container {
    width: 98%;
    max-height: 98vh;
  }

  .contact-modal-header {
    padding: 30px 25px;
  }

  .modal-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .modal-title::after {
    width: 60px;
    height: 3px;
  }

  .modal-subtitle {
    font-size: 0.95rem;
  }

  .contact-modal-body {
    padding: 25px 20px;
  }

  .modal-contact-form .form-control {
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .contact-modal-header {
    padding: 35px 20px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-title::after {
    width: 50px;
    margin-top: 12px;
  }

  .contact-modal-body {
    padding: 25px 15px;
  }

  .contact-modal-close {
    width: 35px;
    height: 35px;
    top: 15px;
    right: 15px;
  }

  .contact-modal-close i {
    font-size: 1rem;
  }
}

/*---------------------------------------
  CONTACT MODAL - BİTİŞ
-----------------------------------------*/
