/* VPS Plan Grid */

.plan-grid-wrapper {
    margin-bottom: 20px;
}

.plan-group {
    margin-bottom: 18px;
}

.plan-group .fw-bold {
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    justify-items: center;
}

.btn-plan {
    /* min-height: 54px; */
    font-size: 14px;
    border-radius: 1.7rem;
    transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
    border: 2px solid #e3e6ea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.btn-plan.active,
.btn-plan.btn-primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.10);
}

.btn-plan:hover {
    border-color: #0d6efd;
    background: #f0f8ff;
    color: #0d6efd;
}

.btn-plan i {
    font-size: 14px;
}


/* OS + Billing 2 cột layout */


/* OS Grid đẹp, card đều, responsive */

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 8px;
    justify-items: center;
}

.btn-os {
    background: #fff;
    border-radius: 1.3rem;
    border: 2px solid #e3e6ea;
    /* min-height: 90px;
        min-width: 170px;
        max-width: 220px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    word-break: break-all;
    white-space: normal;
    line-height: 1.3;
}

.btn-os span {
    font-size: 14px;
    font-weight: 500;
    max-width: 180px;
    overflow-wrap: break-word;
    word-break: break-all;
    display: block;
}

.btn-os i {
    font-size: 14px;
    margin-bottom: 6px;
}

.btn-os.active,
.btn-os:focus {
    border-color: #198754;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.12);
    background: #e9fbe7;
    color: #198754;
}

.btn-os:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.10);
    background: #f0f8ff;
    color: #0d6efd;
}


/* Billing Grid đẹp, card đều, responsive, căn giữa */


/* .billing-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        align-items: stretch;
        justify-items: center;
        margin-bottom: 8px;
    }
    
    @media (max-width: 1100px) {
        .billing-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @media (max-width: 700px) {
        .billing-grid {
            grid-template-columns: 1fr;
        }
    } */

.btn-billing {
    /* min-width: 150px;
        min-height: 70px;
        border-radius: 2rem;
        font-size: 14px;
        font-weight: 600;
        border: 2px solid #e3e6ea;
        background: #fff;
        transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #222;
        letter-spacing: 0.2px;
        padding: 0.7rem 0.5rem; */
}

.btn-billing span.billing-label {
    /* font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px; */
}

.btn-billing span.billing-price {
    /* font-size: 1.1em;
        color: #198754;
        font-weight: 700;
        margin-bottom: 0; */
}

.btn-billing.active,
.btn-billing.btn-success {
    /* background: #198754;
        color: #fff;
        border-color: #198754;
        box-shadow: 0 4px 16px rgba(25, 135, 84, 0.12); */
}

.btn-billing.active span.billing-price,
.btn-billing.btn-success span.billing-price {
    /* color: #fff; */
}

.btn-billing:hover {
    /* border-color: #0d6efd;
        background: #f0f8ff;
        color: #0d6efd; */
}

#os-dropdown {
    position: absolute;
    z-index: 1050;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 10px;
    max-width: 100%;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

#os-dropdown.show {
    display: block;
}

#os-dropdown .os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-os {
    background: #fff;
    border-radius: 1rem;
    border: 2px solid #dee2e6;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.btn-os i {
    font-size: 14px;
    margin-bottom: 4px;
}

.btn-os.active,
.btn-os:focus {
    border-color: #198754;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.10);
    background: #e9fbe7;
    color: #198754;
}

.btn-os:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.10);
    background: #f0f8ff;
    color: #0d6efd;
}

.os-input-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1.5px solid #dee2e6;
    padding: 10px;
    min-height: 44px;
}

.os-input-selected:hover {
    border-color: #198754;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.billing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-billing {
    background: #fff;
    border-radius: 1rem;
    border: 2px solid #dee2e6;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.btn-billing.active,
.btn-billing:focus {
    border-color: #198754;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.10);
    background: #e9fbe7;
    color: #198754;
}

.btn-billing:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.10);
    background: #f0f8ff;
    color: #0d6efd;
}

.plan-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.plan-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    background: #fff;
    transition: box-shadow 0.2s;
}

.plan-card.active,
.plan-card:hover {
    box-shadow: 0 0 0 2px #0d6efd;
    border-color: #0d6efd;
}

.plan-title {
    font-weight: bold;
}

.plan-spec {
    font-size: 14px;
    color: #666;
}

.plan-price {
    color: #0d6efd;
    font-weight: bold;
}

.plan-grid .btn-plan {
    font-size: 14px;
    border-radius: 2rem;
    transition: box-shadow 0.15s, border-color 0.15s;
    box-shadow: none;
    padding: 10px;
    justify-content: center;
}

.plan-grid .btn-plan.active,
.plan-grid .btn-plan.btn-primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
}

.plan-grid .btn-plan i {
    font-size: 14px;
}

.plan-grid-wrapper {
    min-height: 0;
    margin-bottom: 8px;
}

.vps-section-block {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 10px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vps-section-block .form-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}