/* =========================================================
   Form đăng ký dịch vụ: /Service/Register/{id} (Views/Service/LienHe.cshtml)
   ========================================================= */
.rg { background: #f4f6fa; padding: 32px 0 56px; }
.head-page .left-side .head-page-label { margin: 0; font-size: 18px; font-weight: 500; text-transform: uppercase; }

/* Tóm tắt dịch vụ */
.rg-summary { position: sticky; top: 70px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(23, 64, 149, .08); border-top: 4px solid #008fe2; margin-bottom: 24px; }
.rg-thumb { display: block; position: relative; padding-top: 48%; background: #e6eef8; overflow: hidden; }
.rg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-summary-body { padding: 18px; }
.rg-summary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8a93a6; }
.rg-summary-title { font-size: 19px; font-weight: 700; color: #174095; margin: 4px 0 12px; line-height: 1.35; }
.rg-fee { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff6f2; border: 1px dashed #f6c7b0; }
.rg-fee span { font-size: 14px; color: #5b6475; }
.rg-fee b { font-size: 21px; color: #e2541b; white-space: nowrap; }
.rg-summary .sv-price-note { margin-top: 8px; }
.rg-detail-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: #008fe2; }
.rg-next { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #edf0f5; }
.rg-next li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #4a5568; padding: 4px 0; }
.rg-next li span { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #e6f4fd; color: #008fe2; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Form */
.rg-form { background: #fff; border-radius: 14px; padding: 28px 30px; box-shadow: 0 2px 14px rgba(23, 64, 149, .08); margin-bottom: 24px; }
.rg-head h1 { font-size: 26px; font-weight: 700; color: #1d2b4f; margin: 0 0 6px; }
.rg-head p { color: #6b7487; margin: 0 0 20px; }
.rg-head a { font-weight: 600; color: #008fe2; }
.rg-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: #fdecea; border: 1px solid #f5c2bd; color: #a3261a; margin-bottom: 20px; }
.rg-alert i { font-size: 20px; margin-top: 2px; }
.rg-alert ul { margin: 4px 0 0; padding-left: 18px; }

.rg-step { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.rg-step legend { display: flex; align-items: center; gap: 10px; width: auto; font-size: 17px; font-weight: 700; color: #174095; margin-bottom: 14px; }
.rg-step-no { flex: 0 0 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #008fe2, #174095); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.rg-full { grid-column: 1 / -1; }
.rg-field { margin-bottom: 14px; }
.rg-field > label { display: block; font-size: 14px; font-weight: 600; color: #33405e; margin-bottom: 6px; }
.rg-field > label em { color: #e2541b; font-style: normal; }
.rg-field > label small { font-weight: 400; color: #8a93a6; }
.rg-input {
    display: block; width: 100%; padding: 11px 14px; border: 1.5px solid #dbe4f0; border-radius: 10px;
    font-size: 15.5px; color: #1d2b4f; background: #fff; transition: border-color .2s, box-shadow .2s;
}
select.rg-input { height: 48px; }
.rg-input:focus { outline: 0; border-color: #008fe2; box-shadow: 0 0 0 3px rgba(0, 143, 226, .15); }
.rg-input.is-invalid, .rg-input.input-validation-error { border-color: #e04a3a; background: #fffafa; }
.rg-error { display: block; font-size: 13px; color: #d63a2a; margin-top: 4px; }
.rg-error:empty { display: none; }
.field-validation-valid { display: none; }

/* Lựa chọn dạng thẻ (loại khách hàng, thanh toán) */
.rg-choices { display: grid; gap: 12px; }
.rg-choices-2 { grid-template-columns: 1fr 1fr; }
.rg-choice { position: relative; margin: 0; cursor: pointer; }
.rg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rg-choice-box {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1.5px solid #dbe4f0; border-radius: 12px;
    background: #fff; transition: border-color .2s, background .2s, box-shadow .2s;
}
.rg-choice-box > i { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #f1f6fc; color: #6b7487; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.rg-choice-box b { display: block; font-size: 15px; color: #1d2b4f; }
.rg-choice-box small { display: block; font-size: 13px; color: #6b7487; margin-top: 2px; }
.rg-choice:hover .rg-choice-box { border-color: #9fd3f5; }
.rg-choice input:checked + .rg-choice-box { border-color: #008fe2; background: #f4faff; box-shadow: 0 0 0 3px rgba(0, 143, 226, .12); }
.rg-choice input:checked + .rg-choice-box > i { background: #008fe2; color: #fff; }
.rg-choice input:focus-visible + .rg-choice-box { outline: 2px solid #174095; outline-offset: 2px; }

/* Nhãn CCCD / Mã số thuế theo loại khách hàng */
.rg-when-company { display: none; }
.rg-form.is-company .rg-when-company { display: inline; }
.rg-form.is-company .rg-when-home { display: none; }

/* Gửi */
.rg-submit { padding-top: 20px; border-top: 1px solid #edf0f5; }
.rg-submit .g-recaptcha { margin-bottom: 6px; }
.rg-agree { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; font-size: 14.5px; color: #33405e; cursor: pointer; }
.rg-agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: #008fe2; flex-shrink: 0; }
.rg-agree a { color: #008fe2; font-weight: 600; text-decoration: underline; }
.rg-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 15px 20px;
    border: 0; border-radius: 12px; font-size: 17px; font-weight: 700; color: #fff; cursor: pointer;
    background: linear-gradient(120deg, #008fe2, #174095); box-shadow: 0 10px 24px rgba(0, 143, 226, .3); transition: transform .2s, box-shadow .2s, opacity .2s;
}
.rg-btn small { font-size: 15px; font-weight: 600; opacity: .9; }
.rg-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 143, 226, .38); }
.rg-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.rg-btn.is-loading i { animation: rg-spin 1s linear infinite; }
@keyframes rg-spin { to { transform: rotate(360deg); } }
.rg-secure { text-align: center; font-size: 13px; color: #8a93a6; margin: 10px 0 0; }

@media (max-width: 991px) {
    .rg-summary { position: static; display: flex; align-items: stretch; }
    .rg-thumb { flex: 0 0 34%; padding-top: 0; min-height: 120px; }
    .rg-summary-body { flex: 1; padding: 14px; }
    .rg-summary-title { font-size: 16px; margin-bottom: 8px; }
    .rg-summary .sv-groups, .rg-next, .rg-detail-link { display: none; }
    .rg-fee b { font-size: 18px; }
}
@media (max-width: 575px) {
    .rg { padding: 18px 0 40px; }
    .rg-form { padding: 20px 16px; border-radius: 12px; }
    .rg-head h1 { font-size: 21px; }
    .rg-grid, .rg-choices-2 { grid-template-columns: 1fr; }
    .rg-thumb { display: none; }
    .rg-submit .g-recaptcha { transform: scale(.92); transform-origin: 0 0; }
}
