/* Demo formu modalı (footer.php #demo-modal). Kaydırma gerektirmeden ekrana sığacak şekilde tasarlandı. */
#demo-modal{padding:16px}
#demo-modal .dm-dialog{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;border-radius:22px;box-shadow:0 40px 90px -24px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.04);animation:dm-in .38s cubic-bezier(.2,.9,.25,1.15)}
@keyframes dm-in{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}

/* Başlık alanı (sade, beyaz) */
#demo-modal .dm-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px 0}
#demo-modal .dm-title{margin:0;font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.6px;color:#202122}
#demo-modal .dm-close{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#f3f3f2;color:#55585a;cursor:pointer;transition:background .2s,color .2s}
#demo-modal .dm-close:hover{background:#e8e8e7;color:#202122}
#demo-modal .dm-close svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* Form */
#demo-modal .dm-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;padding:24px 28px 26px}
#demo-modal .dm-full{grid-column:1/-1}
#demo-modal .dm-field{display:block;margin:0}
#demo-modal .dm-field>span:first-child{display:block;margin-bottom:6px;font-size:12px;font-weight:600;color:#55585a;letter-spacing:.1px}
#demo-modal .dm-field input,#demo-modal .dm-field select,#demo-modal .dm-field textarea{display:block;width:100%;height:46px;margin:0;padding:0 14px;border:1px solid #e6e6e5;border-radius:12px;background:#f6f6f5;color:#202122;font:inherit;font-size:15px;box-shadow:none;outline:none;-webkit-appearance:none;appearance:none;transition:border-color .2s,background .2s,box-shadow .2s}
#demo-modal .dm-field textarea{height:auto;min-height:78px;padding:11px 14px;line-height:1.5;resize:none}
#demo-modal .dm-field input::placeholder,#demo-modal .dm-field textarea::placeholder{color:#a3a4a5;opacity:1}
@media(min-width:601px){#demo-modal .dm-field textarea::placeholder{color:transparent}} /* masaüstünde başlık zaten görünüyor */
#demo-modal .dm-field input:hover,#demo-modal .dm-field select:hover,#demo-modal .dm-field textarea:hover{border-color:#d4d4d3}
#demo-modal .dm-field input:focus,#demo-modal .dm-field select:focus,#demo-modal .dm-field textarea:focus{border-color:#ff3011;background:#fff;box-shadow:0 0 0 4px rgba(255,48,17,.12)}
#demo-modal .dm-select{position:relative;display:block}
#demo-modal .dm-select::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid #7c7e80;border-bottom:2px solid #7c7e80;transform:rotate(45deg);pointer-events:none}
#demo-modal .dm-select select{padding-right:40px;cursor:pointer}

/* KVKK onayı */
#demo-modal .dm-consent{display:flex;align-items:flex-start;gap:10px;margin-top:2px}
#demo-modal .dm-consent input[type="checkbox"]{-webkit-appearance:auto;appearance:auto;display:inline-block;flex:0 0 16px;width:16px;height:16px;margin:2px 0 0;border:0;background:none;transform:none;accent-color:#ff3011;cursor:pointer}
#demo-modal .dm-consent input[type="checkbox"]::before{content:none}
#demo-modal .dm-consent label{margin:0;font-size:12px;line-height:1.55;color:#7c7e80;cursor:pointer}
#demo-modal .dm-consent a{color:#202122;text-decoration:underline;text-underline-offset:2px}

/* Gönder */
#demo-modal .dm-submit{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:52px;margin-top:4px;padding:0 20px;border:0;border-radius:12px;background:#ff3011;color:#fff;font:inherit;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 16px 30px -14px rgba(255,48,17,.8);transition:background .2s,transform .2s,box-shadow .2s}
#demo-modal .dm-submit:hover{background:#e82a0c;transform:translateY(-1px);box-shadow:0 20px 34px -14px rgba(255,48,17,.9)}
#demo-modal .dm-submit:disabled{opacity:.6;cursor:default;transform:none}
#demo-modal .dm-submit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s}
#demo-modal .dm-submit:hover svg{transform:translateX(3px)}

/* Arka plan */
[modal-backdrop]{background:rgba(14,15,16,.55)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* Mobil ve kısa ekranlar */
@media(max-width:600px){
  #demo-modal{padding:12px}
  #demo-modal .dm-dialog{border-radius:18px;max-height:calc(100dvh - 24px)}
  #demo-modal .dm-head{padding:18px 20px 0}
  #demo-modal .dm-title{font-size:21px}
  #demo-modal .dm-close{flex-basis:34px;width:34px;height:34px}
  #demo-modal .dm-form{grid-template-columns:1fr;gap:10px;padding:16px 20px 18px}
  /* Mobilde alan başlıkları görsel olarak gizlenir (ekran okuyucular için kalır); placeholder'lar yol gösterir */
  #demo-modal .dm-field>span:first-child{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #demo-modal .dm-field input,#demo-modal .dm-field select{height:46px;font-size:16px}
  #demo-modal .dm-field textarea{min-height:52px;font-size:16px}
  #demo-modal .dm-consent label{font-size:11px;line-height:1.5}
}
@media(max-height:680px){
  #demo-modal .dm-head{padding-top:18px}
  #demo-modal .dm-form{gap:10px 12px;padding-top:18px;padding-bottom:20px}
  #demo-modal .dm-field textarea{min-height:56px}
}
@media(prefers-reduced-motion:reduce){
  #demo-modal .dm-dialog{animation:none}
}
