/* ── Genel ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F8F6FF;
  color: #4A4458;
  min-height: 100vh;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── Marka başlığı (diğer formlarla aynı ölçü) ── */
.brand-logo {
  display: block;
  max-width: min(260px, 80%);
  width: auto;
  height: auto;
  margin: 0 auto 18px;
}

/* ── Geri butonu ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #7B5FBF;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.back-link:hover {
  color: #6A4FAE;
  text-decoration: underline;
}

/* ── State ekranları ── */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 12px;
}

.state h2 {
  font-size: 20px;
  font-weight: 600;
  color: #4A4458;
}

.state p {
  font-size: 14px;
  color: #8E8A9E;
  max-width: 300px;
}

.hidden {
  display: none !important;
}

/* ── İkonlar ── */
.icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #7BC67E;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.icon-error {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E88B8B;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ── Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E8E5F0;
  border-top-color: #B8A9E8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Form Header ── */
.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #4A4458;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: #8E8A9E;
  line-height: 1.5;
}

/* ── Form alanları ── */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4A4458;
  margin-bottom: 6px;
}

.field .helper-text {
  font-size: 12px;
  color: #8E8A9E;
  margin-bottom: 8px;
  line-height: 1.4;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E8E5F0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4A4458;
  background: #fff;
  transition: border-color 0.2s;
  resize: vertical;
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: #B8A9E8;
  box-shadow: 0 0 0 3px rgba(184, 169, 232, 0.15);
}

.field textarea {
  min-height: 100px;
}

.field .error-text {
  font-size: 12px;
  color: #E88B8B;
  margin-top: 4px;
}

/* ── MultiSelect Chips ── */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border: 1.5px solid #E8E5F0;
  border-radius: 20px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #4A4458;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.chip:hover {
  border-color: #B8A9E8;
}

.chip-selected {
  background: #B8A9E8;
  color: #fff;
  border-color: #B8A9E8;
}

.chip-selected:hover {
  background: #9B89D4;
  border-color: #9B89D4;
}

.chip-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chip-counter {
  font-size: 13px;
  color: #8E8A9E;
  margin-bottom: 10px;
  font-weight: 500;
}

.chip-counter-complete {
  color: #7BC67E;
}

/* ── Gönder butonu ── */
/*
 * Buton iki görsel durum taşır:
 *   varsayılan  = form eksik  → soluk zemin + koyu yazı (kontrast 5,63:1)
 *   .submit-btn-ready = form tam → canlı mor + beyaz yazı (kontrast 5,02:1)
 * Eski hâl tek renkti (#B8A9E8 + beyaz = 2,13:1) — hem "hazır mıyım" bilgisini
 * taşımıyor hem de okunmuyordu. Buton her iki durumda da tıklanabilir kalır.
 */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: #EDE9F7;
  color: #5F5872;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #E2DBF2;
}

.submit-btn-ready {
  background: #7C5CC4;
  color: #fff;
}

.submit-btn-ready:hover {
  background: #6B4FB0;
}

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

/* ── Uygulama markası ── */
.app-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E8E5F0;
  text-decoration: none;
}

.app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-tagline {
  font-size: 12px;
  color: #8E8A9E;
  text-align: center;
  line-height: 1.4;
}
