/* Form đăng ký xét tuyển – đổi màu chủ đạo tại --ydhn-primary */
.ydhn-form, .ydhn-success { --ydhn-primary: var(--fs-color-primary, #1572ac); --ydhn-border: #d6dde3; max-width: 820px; margin: 0 auto; font-size: 16px; }
.ydhn-form fieldset { border: 1px solid var(--ydhn-border); border-radius: 10px; padding: 20px 22px 8px; margin: 0 0 20px; background: #fff; }
.ydhn-form legend { font-weight: 700; font-size: 18px; padding: 0 8px; display: flex; align-items: center; gap: 8px; }
.ydhn-form legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ydhn-primary); color: #fff; font-size: 14px; }
.ydhn-form legend small { font-weight: 400; font-size: 13px; color: #667; }
.ydhn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ydhn-grid .full { grid-column: 1 / -1; }
.ydhn-form p { margin: 0 0 14px; }
.ydhn-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ydhn-form input[type=text], .ydhn-form input[type=tel], .ydhn-form input[type=email], .ydhn-form input[type=date], .ydhn-form input[type=number],
.ydhn-form select, .ydhn-form textarea { width: 100%; height: 44px; padding: 8px 12px; border: 1px solid var(--ydhn-border); border-radius: 8px; font-size: 16px; box-sizing: border-box; margin: 0; }
.ydhn-form textarea { height: auto; }
.ydhn-form input:focus, .ydhn-form select:focus, .ydhn-form textarea:focus { outline: 2px solid var(--ydhn-primary); border-color: var(--ydhn-primary); }
.ydhn-form .hint { font-size: 13px; color: #667; margin-top: -6px; }
.ydhn-consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.ydhn-btn { width: 100%; padding: 14px; border: 0; border-radius: 8px; background: var(--ydhn-primary); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.ydhn-btn:hover { filter: brightness(1.1); }
.ydhn-error { background: #fdecea; color: #8a1c1c; border-left: 4px solid #d93025; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.ydhn-success { background: #e8f5ee; border: 1px solid #9fd3b7; border-radius: 10px; padding: 24px; text-align: center; }
.ydhn-hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .ydhn-grid { grid-template-columns: 1fr; } .ydhn-form fieldset { padding: 16px 14px 4px; } }
/* tra cứu */
.ydhn-lookup .ydhn-btn { width: auto; padding: 12px 32px; }
.ydhn-result { margin-top: 10px; padding: 18px; border: 1px solid var(--ydhn-border, #d6dde3); border-radius: 10px; }
.ydhn-track { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: tr; }
.ydhn-track li { margin: 0; text-align: center; font-size: 13px; color: #889; padding-top: 34px; position: relative; }
.ydhn-track li:before { counter-increment: tr; content: counter(tr); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #dde3ea; color: #fff; display: grid; place-items: center; font-weight: 700; }
.ydhn-track li.done { color: #0f5132; font-weight: 700; }
.ydhn-track li.done:before { content: "✓"; background: #22a35a; }
/* ===== v1.2 ===== */
.ydhn-form legend { text-transform: none; color: #1f2d3d; }
.ydhn-req { color: #d93025; text-decoration: none; border: 0; }
.ydhn-form input, .ydhn-form select, .ydhn-form textarea { box-shadow: none; background: #fff; }
.ydhn-form input[type=file] { height: auto; padding: 8px; border: 1px dashed var(--ydhn-border); border-radius: 8px; width: 100%; font-size: 14px; background: #fafcfe; }
.ydhn-has-err input, .ydhn-has-err select, .ydhn-has-err textarea { border-color: #d93025 !important; background: #fff8f7; }
.ydhn-msg { display: block; color: #c5221f; font-size: 13px; margin-top: 4px; }
.ydhn-pv { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ydhn-pv img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ydhn-border); }
.ydhn-pv small { color: #555; word-break: break-all; }
.ydhn-intro { background: #eef5fb; border-left: 4px solid var(--ydhn-primary); padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; }
.ydhn-intro p:last-child { margin: 0; }
.ydhn-consent { background: #f7f9fb; border-radius: 8px; padding: 12px 14px; }
.ydhn-consent input { margin: 3px 0 0; flex: none; }
.ydhn-btn { text-transform: none; letter-spacing: 0; line-height: 1.3; min-height: 50px; margin: 0; }
.ydhn-btn[disabled] { opacity: .7; cursor: wait; }
.ydhn-btn-inline { display: inline-block; width: auto; padding: 12px 24px; text-decoration: none !important; color: #fff !important; margin: 4px; }
.ydhn-btn-ghost { background: #fff !important; color: var(--ydhn-primary) !important; border: 2px solid var(--ydhn-primary); }
.ydhn-help { text-align: center; font-size: 14px; color: #667; margin: 6px 0 0 !important; }
.ydhn-help a { font-weight: 700; }
.ydhn-success-icon { width: 64px; height: 64px; border-radius: 50%; background: #22a35a; color: #fff; font-size: 34px; line-height: 64px; margin: 0 auto 10px; }
.ydhn-success h3 { color: #0f5132; margin-bottom: 6px; }
.ydhn-code { font-family: "Roboto Slab", serif; font-size: 30px; font-weight: 700; letter-spacing: 2px; color: var(--ydhn-primary); background: #fff; display: inline-block; padding: 6px 18px; border-radius: 8px; border: 2px dashed #9fd3b7; margin: 0 0 6px !important; }
.ydhn-small { font-size: 13px; color: #555; }
.ydhn-next { text-align: left; max-width: 480px; margin: 14px auto; padding-left: 22px; }
.ydhn-next li { margin-bottom: 6px; }
.ydhn-closed { text-align: center; background: #fff7e6; border: 1px solid #f5d38a; border-radius: 10px; padding: 24px; }
.ydhn-closed h3 { color: #8a5a00; }
.ydhn-builder-note { background: #fff3b0; border: 1px dashed #d4a800; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
@media (max-width: 640px) { .ydhn-code { font-size: 24px; } }
