/* Shortcode [fas_form_popup_button] — nút + popup form đăng ký nhanh (Template 15). Viết tay, không qua gulp. */
.fas-pb-modal[hidden] { display: none; }
.fas-pb-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fas-pb-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.fas-pb-dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 12px; padding: 32px 28px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.fas-pb-close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; background: none; font-size: 28px; line-height: 1; color: #666; cursor: pointer; }
.fas-pb-close:hover { color: #000; }
.fas-pb-head { margin-bottom: 20px; text-align: center; }
.fas-pb-title { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
.fas-pb-subtitle { margin: 0; color: #666; font-size: 14px; }
.fas-pb-form .fas-item { margin-bottom: 14px; }
.fas-pb-form .fas-item > label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.fas-pb-form select, .fas-pb-form input[type="text"], .fas-pb-form input[type="tel"], .fas-pb-form input[type="email"], .fas-pb-form input[type="number"] { width: 100%; margin: 0; }
.fas-pb-form .fas-item-privacy label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.fas-pb-form .fas-item-privacy input[type="checkbox"] { margin: 3px 0 0; flex: none; }
.fas-pb-form label.error { display: block; margin-top: 4px; color: #d63638; font-size: 12px; font-weight: 400; }
.fas-pb-submit { text-align: center; margin-top: 18px; }
.fas-pb-submit button { min-width: 180px; margin: 0; }
.fas-pb-success { padding: 24px 0 8px; text-align: center; font-size: 16px; }
body.fas-pb-open { overflow: hidden; }

/* ===== Thông báo gửi thành công ===== */
.fas-pb-success[hidden] { display: none; }
.fas-pb-success { padding: 12px 8px 4px; text-align: center; }
.fas-pb-success__icon { display: inline-flex; margin-bottom: 14px; }
.fas-pb-success__circle { stroke: #00539F; stroke-width: 3; fill: #E6EEF5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: fas-pb-draw .6s ease-out forwards; }
.fas-pb-success__check { stroke: #00539F; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: fas-pb-draw .4s .45s ease-out forwards; }
.fas-pb-success__title { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: #002343; }
.fas-pb-success__text { margin: 0 auto 22px; max-width: 340px; font-size: 15px; line-height: 1.55; color: #4a5b6c; }
.fas-pb-success__btn { min-width: 140px; margin: 0; }
@keyframes fas-pb-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fas-pb-success__circle, .fas-pb-success__check { animation: none; stroke-dashoffset: 0; } }

/* ===== Nút mở popup — style mặc định (AGS). Không áp dụng khi shortcode truyền class "button" của Flatsome (button_class="button primary") ===== */
.fas-pb-trigger:not(.button) { display: inline-block; margin: 0; padding: 14px 32px; border: 0; border-radius: 999px; background: #00539F; color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 83, 159, .3); transition: background .2s, transform .2s, box-shadow .2s; }
.fas-pb-trigger:not(.button):hover { background: #003f7a; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 83, 159, .4); }
.fas-pb-trigger:not(.button):focus-visible { outline: 3px solid #FFCA38; outline-offset: 2px; }
.fas-pb-trigger:not(.button):active { transform: none; }

/* Tiêu đề popup dùng <div role="heading"> (không dùng h3/h4 để không lọt vào mục lục) → tự bù style heading */
.fas-pb-title, .fas-pb-success__title { font-weight: 700; color: #002343; }
