/* YDHN – Đăng ký tư vấn: tông màu theo trang chủ yduochanoi.edu.vn */
.ydhn-tv-box{--tv:#1572ac;--tv-d:#145289;--tv-n:#003366;background:#fff;border-radius:10px;overflow:hidden;font-family:Roboto,sans-serif;color:#555}
.ydhn-tv-head{background:linear-gradient(120deg,var(--tv-n),var(--tv-d) 55%,var(--tv));color:#fff;padding:22px 26px 18px}
.ydhn-tv-title{font-family:"Roboto Slab",serif;color:#fff!important;font-size:22px;margin:0 0 4px;text-transform:uppercase}
.ydhn-tv-sub{margin:0;font-size:14px;color:rgba(255,255,255,.88)}
.ydhn-tv-form{padding:20px 26px 22px;margin:0}
.ydhn-tv-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.ydhn-tv-full{grid-column:1/-1}
.ydhn-tv-field{margin-bottom:10px;min-width:0}
.ydhn-tv-label{display:block;font-weight:600;font-size:14px;color:var(--tv-n);margin-bottom:5px}
.ydhn-tv-req{color:#d63638}
.ydhn-tv-form input[type=text],.ydhn-tv-form input[type=tel],.ydhn-tv-form input[type=email],.ydhn-tv-form select,.ydhn-tv-form textarea{width:100%;margin:0;border:1px solid #d5dde6;border-radius:8px;box-shadow:none;height:42px;padding:0 12px;font-size:15px;background-color:#fff}
.ydhn-tv-form textarea{height:auto;padding:10px 12px;min-height:80px}
.ydhn-tv-form input:focus,.ydhn-tv-form select:focus,.ydhn-tv-form textarea:focus{border-color:var(--tv);box-shadow:0 0 0 3px rgba(21,114,172,.15);outline:0}
.ydhn-tv-form select:disabled{background-color:#f3f5f8;color:#999;cursor:not-allowed}
.ydhn-tv-choices{display:flex;flex-wrap:wrap;gap:8px}
.ydhn-tv-chip{position:relative;margin:0!important;cursor:pointer;font-weight:400}
.ydhn-tv-chip input{position:absolute;opacity:0;pointer-events:none}
.ydhn-tv-chip span{display:inline-block;border:1px solid #d5dde6;border-radius:99px;padding:7px 14px;font-size:14px;line-height:1.3;color:#444;background:#fff;transition:.15s}
.ydhn-tv-chip:hover span{border-color:var(--tv)}
.ydhn-tv-chip input:checked+span{background:var(--tv);border-color:var(--tv);color:#fff}
.ydhn-tv-chip input:checked+span:before{content:"✓ "}
.ydhn-tv-chip input:focus-visible+span{box-shadow:0 0 0 3px rgba(21,114,172,.25)}
.ydhn-tv-consent{display:flex;gap:8px;align-items:flex-start;font-size:13px;font-weight:400;margin:6px 0 10px;color:#666}
.ydhn-tv-consent input{margin:3px 0 0!important}
.has-error input,.has-error select,.has-error textarea{border-color:#d63638!important}
.has-error .ydhn-tv-chip span{border-color:#e8a0a0}
.ydhn-tv-err{color:#d63638;font-size:12.5px;margin-top:4px;width:100%}
.ydhn-tv-msg{font-size:14px;margin:4px 0 10px}
.ydhn-tv-msg:empty{display:none}
.ydhn-tv-msg.is-error{color:#d63638}
.ydhn-tv-msg.is-ok{color:#1a7f37}
.ydhn-tv-submit{width:100%;margin:0!important}
.ydhn-tv-submit.is-loading{opacity:.7;pointer-events:none}
.ydhn-tv-submit.is-loading span:after{content:" …"}
.ydhn-tv-hotline{text-align:center;font-size:13px;margin:10px 0 0;color:#777}
.ydhn-tv-hotline a{color:var(--tv-d);font-weight:700}
.ydhn-tv-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.ydhn-tv-done{padding:40px 26px;text-align:center}
.ydhn-tv-check{width:64px;height:64px;line-height:64px;border-radius:50%;margin:0 auto 14px;background:rgba(21,114,172,.12);color:var(--tv);font-size:32px;font-weight:700}
.ydhn-tv-done p{font-size:16px;color:var(--tv-n);margin:0}
.ydhn-tv-inline .ydhn-tv-box{box-shadow:0 2px 12px rgba(0,0,0,.08);margin:0 auto}
.ydhn-tv-builder-note{background:#fff8e5;border:1px dashed #dba617;color:#7a5b00;padding:8px 12px;border-radius:6px;font-size:13px;margin:0 auto 8px;max-width:640px}
.lightbox-content .ydhn-tv-popup .ydhn-tv-box{border-radius:0}
/* dự phòng (không có Flatsome) */
.ydhn-tv-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99999;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:40px 12px}
.ydhn-tv-modal[hidden]{display:none}
.ydhn-tv-modal-inner{position:relative;width:100%;border-radius:10px;overflow:hidden}
.ydhn-tv-close{position:absolute;right:8px;top:6px;z-index:2;background:none;border:0;color:#fff;font-size:28px;cursor:pointer}
@media (max-width:549px){.ydhn-tv-grid{grid-template-columns:1fr}.ydhn-tv-form{padding:16px}.ydhn-tv-head{padding:18px 16px 14px}.ydhn-tv-title{font-size:19px}}
