/* Colluoğlu tarzına yakın, sade ve modern form stilleri */
:root{
  --bg:#ffffff;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#1f2937;
  --primary:#ff5a2a;    /* marka turuncu */
  --ring:#7c3aed;
  --error:#ef4444;
  --border:#e5e7eb;
  --fieldTall:220px;    /* notlar ve yükleme alanı için eş yükseklik */
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.container{max-width:960px;margin:40px auto;padding:0 16px}
.form-card{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.form-head{padding:24px 24px 0}
.form-head h1{margin:0 0 6px;font-size:28px;letter-spacing:.2px}
.form-head p{margin:0 0 12px;color:var(--muted)}

.grid{display:grid;gap:18px;padding:24px}
.grid .full{grid-column:1/-1}
@media(min-width:768px){
  .grid{grid-template-columns:1fr 1fr}
}

.field label{display:block;margin:0 0 8px;font-weight:600}
input,textarea{
  width:100%;
  padding:14px 12px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--text);
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
/* Checkbox & radio should not be full width */
input[type="checkbox"],
input[type="radio"]{
  width:auto;
  height:auto;
  padding:0;
}
input:focus,textarea:focus{border-color:var(--ring);box-shadow:0 0 0 3px #7c3aed33}
.small{font-size:12px}
.error{color:var(--error);min-height:18px;display:block;margin-top:4px}
.checkbox-list{display:grid;gap:8px}
.checkbox-list .check{display:flex;align-items:center;gap:10px;user-select:none}
.checkbox-list input[type="checkbox"]{width:18px;height:18px}

/* Terms consent row: keep checkbox next to text */
.terms .check{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0; /* override label default margin */
  flex-wrap:wrap;
}
.terms .check input[type="checkbox"]{
  width:18px;
  height:18px;
  flex:0 0 auto;
  margin:0;
}

.colors .color-row{display:flex;gap:10px;align-items:center}
.colors .picker{
  width:52px;
  height:48px; /* yaklaşık olarak text input yüksekliği */
  padding:0;
  border:1px solid var(--border);
  background:#0f1117;
  border-radius:10px;
}
/* WebKit ve Firefox için iç swatch düzeni */
.colors .picker::-webkit-color-swatch-wrapper{padding:4px;border-radius:10px}
.colors .picker::-webkit-color-swatch{border:none;border-radius:8px}
.colors .picker::-moz-color-swatch{border:none;border-radius:8px}
.colors .color-grid{display:grid;gap:10px}
@media(min-width:640px){
  .colors .color-grid{grid-template-columns:1fr 1fr}
}

.dropzone{
  border:1.5px dashed #d1d5db;
  border-radius:12px;
  padding:16px;
  background:#fafafa;
}
.dropzone.hover{border-color:var(--ring); box-shadow:0 0 0 3px #3b82f633}
.dropzone:focus{outline:none;box-shadow:0 0 0 3px #3b82f633}
.dz-inner{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dz-inner .button{
  color:#111827;
  background:#e5e7eb;
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}
.hint{display:block;color:#6b7280;margin-top:6px}
.file-list{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.file-list li{background:#f9fafb;border:1px solid var(--border);border-radius:8px;padding:8px;display:flex;justify-content:space-between;gap:6px;align-items:center}
.file-list button{background:none;border:none;color:var(--muted);cursor:pointer}

/* Notes + Upload aynı yükseklik */
@media(min-width:768px){
  #notes{min-height:var(--fieldTall)}
  .dropzone{min-height:var(--fieldTall)}
}

.actions{display:flex;gap:12px;align-items:center}
button.primary{
  background:var(--primary);
  color:#ffffff;
  padding:14px 24px;
  border:none;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.actions .secondary{
  background:transparent;
  color:var(--text);
  padding:12px 18px;
  border:1px solid var(--border);
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
}
.actions .secondary:hover{border-color:#3b3f55}
.status{color:var(--muted)}
.success{color:#4ade80}
.fail{color:var(--error)}
.terms a{color:var(--primary);text-decoration:none;font-weight:600}
.terms a:hover{text-decoration:underline}
.hp-wrap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hp{opacity:0}

/* Fancy divider for <hr> inside the card */
.form-card hr{
  border:none;
  height:2px;
  margin:12px 24px 24px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent 0%, #7c3aed33 15%, var(--primary) 50%, #7c3aed33 85%, transparent 100%);
  box-shadow:0 2px 10px rgba(255,90,42,.22);
  opacity:1;
}

/* Modal (KVKK & Çerez Politikası) */
body.modal-open{overflow:hidden}
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45);
  padding:24px; z-index:1000;
}
.modal.open{display:flex}
.modal-dialog{
  width:min(900px, 92vw);
  max-height:88vh;
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 20px 60px rgba(15,23,42,.25);
  display:flex; flex-direction:column; overflow:hidden;
}
.modal-header{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border)}
.modal-title{margin:0; font-size:18px; font-weight:700}
.modal-close{appearance:none; background:transparent; border:none; color:var(--muted); font-size:22px; line-height:1; cursor:pointer; padding:4px 8px; border-radius:8px}
.modal-close:hover{background:#f3f4f6}
.modal-body{padding:12px 16px; overflow:auto}
.modal-body h1,.modal-body h2,.modal-body h3{margin-top:0}
.modal-body a{color:var(--primary)}
