@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --primary-green: #2d5a27;
  --accent-green: #4caf50;
  --white: #ffffff;
  --bg-soft: #f1f5f1;
  --error: #e74c3c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  margin: 0;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 25px 15px;
  text-align: center;
  color: white;
}
.basar-header {
  background: linear-gradient(135deg, #2d5a27, #4caf50);
}
.kummer-header {
  background: linear-gradient(135deg, #1b3817, #2d5a27);
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.header p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.form-content {
  padding: 20px;
}
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--primary-green);
}

.required {
  color: var(--error);
  margin-left: 3px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Anonym Switch */
/* Switch Kapsayıcısı */
.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8faf8;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer; /* Tüm kutu el ikonu olur */
  border: 1px solid #edf2ed;
  user-select: none; /* Metnin seçilmesini engeller */
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}

.switch-container:hover {
  background: #f0f4f0;
}

.switch-container:active {
  background: #e6eee6; /* Basıldığında hafif koyulaşır */
}

/* Switch Butonu Görseli */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none; /* Tıklamayı kapsayıcı div (container) yönetsin */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Personal Info Animation */
#personalInfo {
  transition: all 0.3s ease;
  overflow: hidden;
}
#personalInfo.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-bottom: 0;
}

/* Image Preview */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.preview-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}
.preview-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--accent-green);
}
.remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid white;
}
.upload-btn {
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--primary-green);
  color: white;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#customUploadBtn {
  background: #f1f5f1;
  color: var(--primary-green);
  border: 2px dashed var(--accent-green);
  padding: 12px;
  border-radius: 10px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
#customUploadBtn:hover {
  background: #e8f5e8;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary-green);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 15px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.success-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}
.visually-hidden {
  display: none;
}
