/* modal.css dosyasının en üstüne ekle */
@import url("https://cdn.jsdelivr.net/npm/intl-tel-input@17/build/css/intlTelInput.min.css");

:root {
  --primary: #f04843;
  --primary-dark: #0056b3;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f9f9f9;
  --radius: 10px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: flex-start; /* üstte hizala */
  padding-top: 50px;
  z-index: 1000;
  overflow-y: auto;
}

.modal {
  background: white;
  padding: 2rem;
  max-width: 400px;
  border-radius: 8px;
  position: relative;

  max-height: 80vh; /* yüksekliği sınırla */
  overflow-y: auto; /* içerik taşarsa scroll ver */
}

.modal h2 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  text-align: center;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.checkboxes {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.checkboxes label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
  color: var(--text-light);
}

input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-footer {
  margin-top: 2rem;
  text-align: center;
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 480px) {
  .modal {
    padding: 1.5rem 1rem;
  }

  .modal h2 {
    font-size: 1.4rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    font-size: 1rem;
  }

  button {
    width: 100%;
    padding: 1rem;
  }
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1.2rem;
  border: 1px solid #ccc;
  border-radius: 9999px; /* oval şekil */
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal input[type="tel"]:focus {
  border-color: #f04843;
  box-shadow: 0 0 0 3px rgba(240, 72, 67, 0.3);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #eee;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.checkboxes input[type="checkbox"] {
  accent-color: var(--primary);
  transform: scale(2);
  transform-origin: top left;
  margin-right: 1rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked {
  background-color: #f04843;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  position: absolute;
  top: 2px;
  left: 8px;
  font-size: 24px;
  font-weight: bold;
}

.checkbox-group label {
  font-size: 1.3rem;
}

/* Başlık için soft kırmızı renk */
.modal h2 {
  color: #d9534f;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #302323;
  cursor: pointer;
  z-index: 1100;
}

.close-btn:hover {
  color: #f04843;
}
@media (max-width: 480px) {
  .close-btn {
    top: -20px; /* Üstten biraz içeride */
    right: -180px; /* Sağdan biraz içeride */
  }
}

.radio-group {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.radio-option {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc; /* Açık gri halka */
  border-top: 5px solid #333; /* Dönen üst halka */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
