:root {
    --color-highlight: #058DC2;
    --color-main: #4ABAB9;
    --color-text: #00172E;
    --color-black: #252525;
    --white: #fff;
    --black: #000;
    --light: #F4F5F6;
    --color-main-dark: #38a09f;
    --color-main-light: #eaf7f7;
    --color-highlight-light: #e8f4fb;
    --red: #e8261a;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --radius: 5px;
}
.select2-container--default .select2-selection--single {
    height: 40px;
    border-radius:5px;
    width:100%;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 40px;
}
span.select2.select2-container.select2-container--default {
    display: block;
    padding-bottom: 0;
}

span.select2.select2-container.select2-container--default span {
    display: block;
    padding-bottom: 0;
    font-size: 14px;
}
.section-login .info-form{
    display: block;
    height: 100%;

}
@media(min-width: 992px){
    .section-login .info-form{
       padding-top: 50px;

    }
}
.section-login .item-login-left{
    
}
.section-login .info-form .form-group input{
    height: 40px;
    font-size: 14px;
    padding: 10px;
    border:1px solid #aaa;
    background: #fff;

}
.section-login .info-form .form-group email{
    height: 40px;
    font-size: 14px;
    padding: 10px;
    border:1px solid #aaa;
    background: #fff;

}
.section-login .info-form .form-group select{
    height: 40px;
    font-size: 14px;
    padding: 10px;
    background: #fff;

}
.section-login .info-form form{
    margin: auto;
}
.section-login .info-form .form-group label{
    color: var(--color-text);
    margin-bottom: 5px;
    font-size: 14px;
}
.section-login .info-form form{
    max-width: 500px;
}
.section-login .info-form .form-group{
    margin-bottom: 10px;
}
.agree-item label {
    margin: 0;
}
/* ── Radio selector ── */
.type-selector {
    display: flex;
    width: 100%;
    gap: 12px;
    margin-bottom: 10px;
}
.type-option {
    flex: 1;
    position: relative;
}
.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition:
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
    text-align: center;
    background: var(--light);
    user-select: none;
}
.type-label .type-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    flex-shrink: 0;
}
.type-label .type-icon svg {
    color: var(--gray-500);
    transition: color 0.18s;
}
.type-label .type-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-500);
    transition: color 0.18s;
    line-height: 1.2;
}
.type-label .type-desc {
    font-size: 11.5px;
    color: var(--gray-400);
    line-height: 1.4;
    transition: color 0.18s;
}
.type-option input[type="radio"]:checked + .type-label {
    border-color: var(--color-main);
    background: var(--color-main-light);
    box-shadow: 0 0 0 3px rgba(74, 186, 185, 0.14);
}
.type-option input[type="radio"]:checked + .type-label .type-icon {
    background: var(--color-main);
}
.type-option input[type="radio"]:checked + .type-label .type-icon svg {
    color: #fff;
}
.type-option input[type="radio"]:checked + .type-label .type-name {
    color: var(--color-main-dark);
}
.type-option input[type="radio"]:checked + .type-label .type-desc {
    color: var(--color-main-dark);
    opacity: 0.75;
}
.type-label:hover {
    border-color: var(--color-main);
    background: var(--color-main-light);
}

/* ── Panels ── */
.form-wrap {
    width: 100%;
}
.reg-panel {
    display: none;
}
.reg-panel.active {
    display: block;
}

/* ── Org inner tabs ── */
.inner-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 20px;
}
.inner-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-400);
    position: relative;
    transition: color 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inner-tab-btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-main);
    transform: scaleX(0);
    transition: transform 0.2s;
}
.inner-tab-btn.active {
    color: var(--color-main);
}
.inner-tab-btn.active::after {
    transform: scaleX(1);
}
.inner-tab-btn:hover {
    color: var(--color-main-dark);
}
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-500);
    flex-shrink: 0;
    transition:
        background 0.15s,
        color 0.15s;
}
.inner-tab-btn.active .step-badge {
    background: var(--color-main);
    color: #fff;
}
.inner-tab-btn.done .step-badge {
    background: #22c55e;
    color: #fff;
}
.inner-tab-btn.done {
    color: var(--gray-500);
}
.inner-tab-btn.done::after {
    background: #22c55e;
    transform: scaleX(1);
}
.inner-panel {
    display: none;
}
.inner-panel.active {
    display: block;
}

/* ── Form fields ── */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.form-group label .req {
    color: var(--red);
    margin-left: 2px;
}

/* === ĐỒNG BỘ CSS TRANG GỐC === */
.form-control {
    width: 100%;
    
    border: 1.5px solid var(--gray-200);
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    color: var(--color-black);
    background: #f5f6f6;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.form-control::placeholder {
    color: var(--gray-400);
}
.form-control:focus {
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(74, 186, 185, 0.13);
    background: var(--white);
}
.form-control.error {
    border-color: var(--red);
    background: #fff8f8;
}
select.form-control {
    appearance: none;
    background-color: #f5f6f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 38px;
    cursor: pointer;
}
select.form-control:focus {
    background-color: var(--white);
}

/* ── Address block ── */
.address-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.address-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Phone ── */
.phone-field {
    position: relative;
}
.phone-field .form-control {
    padding-right: 80px;
}
.phone-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    display: none;
}
.phone-status.ok {
    color: #16a34a;
    display: block;
}
.phone-status.err {
    color: var(--red);
    display: block;
}

/* ── Notes ── */
.note-cccd {
    font-size: 12px;
    font-style: italic;
    margin-top: 6px;
    background: #fff5f5;
    border-left: 3px solid var(--red);
    color: var(--red);
    padding: 6px 10px;
    border-radius: 3px;
    line-height: 1.5;
}
.note-cccd b {
    font-weight: 700;
}
.note-info {
    font-size: 12px;
    margin-top: 6px;
    background: var(--color-highlight-light);
    border-left: 3px solid var(--color-highlight);
    color: #045a82;
    padding: 6px 10px;
    border-radius: 3px;
    line-height: 1.5;
}

/* ── Divider ── */
.sec-div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 18px 0 14px;
}
.sec-div::before,
.sec-div::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ── Err msg ── */
.err-msg {
    display: none;
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
}

/* ── Nav buttons ── */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-prev {
    flex: 1;
    height: 46px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--light);
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.15s;
}
.btn-prev:hover {
    background: var(--gray-200);
}
.btn-next-step {
    flex: 2;
    height: 46px;
    border: none;
    border-radius: var(--radius);
    background: var(--color-main);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.15s;
}
.btn-next-step:hover {
    background: var(--color-main-dark);
}

/* ── Agree ── */
.agree-block {
    margin-top: 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--light);
}
.agree-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}
.agree-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.55;

}
.agree-item:last-child {
    margin-bottom: 0;
}
.agree-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    accent-color: var(--color-main);
    cursor: pointer;
    flex-shrink: 0;
}
.agree-item a {
    color: var(--color-highlight);
    font-weight: 600;
    text-decoration: none;
}
.agree-item a:hover {
    text-decoration: underline;
}

/* ── Submit ── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-top: 18px;
    border: none;
    border-radius: var(--radius);
    background: var(--color-main);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.1s;
}
.btn-submit:hover {
    background: var(--color-main-dark);
}
.btn-submit:active {
    transform: scale(0.99);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--gray-500);
}
.login-link a {
    color: var(--color-main);
    font-weight: 600;
    text-decoration: none;
}
.login-link a:hover {
    text-decoration: underline;
}
.section-login .info-form .form-group label{
    font-weight: bold;
}
.flatpickr-current-month {
    font-size: 115% !important;
}
@media (max-width: 992px) {
    .login-header {
        text-align: center;
    }
    label.type-label {
        gap: 4px;
        padding: 10px 5px;
    }
    .inner-tab-btn{
        padding: 10px;
    }
    
    .address-row2 span.select2.select2-container.select2-container--default{
        overflow: hidden;
    }
}