/* Отказ от договора – прозорец и форма  */

/* ---------- Изскачащ прозорец ---------- */
html.wd-lock,html.wd-lock body{overflow:hidden}
.wd-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100000;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.wd-modal[hidden]{display:none}
.wd-modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.55)}
.wd-modal__panel{position:relative;width:100%;max-width:790px;margin:auto;padding:26px 32px 30px;background:#fff;border-radius:4px;box-shadow:0 20px 60px rgba(0,0,0,.35);outline:0;text-align:left}
.wd-modal__close{position:absolute;top:8px;right:8px;z-index:1;width:44px;height:44px;margin:0;padding:10px;border:0;border-radius:4px;background:none;color:#000;cursor:pointer;line-height:0}
.wd-modal__close:hover,.wd-modal__close:focus{background:#f1f2f4}
.wd-modal__close svg{width:24px;height:24px}
.wd-modal__loading{display:flex;align-items:center;justify-content:center;min-height:220px}
.wd-modal__loading span{width:34px;height:34px;border:3px solid #d5dae0;border-top-color:#000;border-radius:50%;animation:wd-spin .8s linear infinite}
@keyframes wd-spin{to{transform:rotate(360deg)}}

/* ---------- Отделна страница ---------- */
.wd-page{max-width:790px;margin:0 auto 40px}

/* ---------- Съдържание ---------- */
.wd{font-size:16px;line-height:1.5;color:#111}
.wd .wd-title{margin:0 44px 18px 0;padding:0;border:0;font-size:32px;font-weight:800;line-height:1.15;letter-spacing:0;text-transform:uppercase;color:#000}
.wd .wd-intro{margin:0 0 18px;line-height:1.6;color:#111}
.wd .wd-intro a{font-weight:700;color:#000;text-decoration:none;white-space:nowrap}
.wd .wd-intro a:hover{text-decoration:underline}
.wd .wd-form{margin:0}
.wd .wd-field{position:relative;margin:0 0 16px}
.wd .wd-input{display:block;width:100%;height:auto;min-height:0;box-sizing:border-box;margin:0;padding:13px 38px 13px 13px;border:1px solid #9aa5b1;border-radius:6px;background:#fff;box-shadow:none;font:inherit;font-size:16px;line-height:1.4;color:#111;-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s}
.wd textarea.wd-input{min-height:150px;padding-right:13px;resize:vertical}
.wd .wd-input::placeholder{color:#7a828c;opacity:1}
.wd .wd-input:focus{outline:0;border-color:#000;box-shadow:0 0 0 1px #000}
.wd .wd-req{position:absolute;top:8px;right:12px;font-size:26px;font-weight:700;line-height:1;color:#c9ced6;pointer-events:none}
.wd .wd-field.has-error .wd-input{border-color:#c0392b}
.wd .wd-error{margin-top:5px;font-size:13px;line-height:1.4;color:#c0392b}
.wd .wd-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.wd .wd-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}
.wd .wd-field--check{margin-bottom:12px}
.wd .wd-check{display:flex;align-items:flex-start;gap:9px;margin:0;font-size:14px;font-weight:700;line-height:1.4;color:#000;cursor:pointer}
.wd .wd-check input{flex:0 0 auto;width:16px;height:16px;margin:2px 0 0;-webkit-appearance:auto;appearance:auto}
.wd .wd-check a{color:inherit;text-decoration:none}
.wd .wd-check a:hover{text-decoration:underline}
.wd .wd-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.wd .wd-btn{display:inline-flex;align-items:center;justify-content:center;gap:11px;margin:0;padding:14px 20px;border:1px solid #000;border-radius:6px;background:#000;color:#fff;font:inherit;font-size:14px;font-weight:800;line-height:1.2;letter-spacing:.02em;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:background-color .15s}
.wd .wd-btn:hover,.wd .wd-btn:focus{background:#2b2b2b;border-color:#2b2b2b;color:#fff;text-decoration:none}
.wd .wd-btn:focus-visible{outline:2px solid #000;outline-offset:2px}
.wd .wd-btn[disabled]{opacity:.55;cursor:default}
.wd .wd-btn svg{flex:0 0 auto;width:8px;height:12px}
.wd .wd-btn.wd-btn--ghost{background:#fff;border-color:#9aa5b1;color:#111}
.wd .wd-btn.wd-btn--ghost:hover,.wd .wd-btn.wd-btn--ghost:focus{background:#f1f2f4;border-color:#000;color:#000}
.wd .wd-alert{margin:0 0 16px;padding:12px 14px;border:1px solid #e3b4ae;border-radius:6px;background:#fdf1ef;font-size:14px;color:#8a2a1f}

/* ---------- Потвърждение ---------- */
.wd .wd-done{outline:0}
.wd .wd-title--ok{display:flex;align-items:center;gap:12px;color:#17803a}
.wd .wd-title--ok svg{flex:0 0 auto;width:30px;height:30px}
.wd .wd-done__text{margin:0 0 18px;line-height:1.6}
.wd .wd-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:0 0 18px;padding:16px 18px;border:1px solid #d5dae0;border-radius:6px;background:#f7f8f9}
.wd .wd-dl dt{float:none;width:auto;font-weight:400;color:#4b5563;text-align:left}
.wd .wd-dl dd{margin:0;font-weight:700;word-break:break-word}
.wd .wd-done__mail{margin:0 0 20px;line-height:1.6}
.wd .wd-done__mail strong{word-break:break-all}

@media (max-width:600px){
.wd-modal{padding:0}
.wd-modal__panel{min-height:100%;margin:0;padding:20px 16px 24px;border-radius:0}
.wd-modal__close{top:6px;right:4px}
.wd .wd-title{font-size:24px;margin-bottom:14px}
.wd .wd-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
.wd-modal__loading span{animation-duration:2s}
.wd .wd-input,.wd .wd-btn{transition:none}
}
