/* Plans cart — global AISEK site */

.navbar .nav-item--cart {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 6;
}

.btn-plans-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-plans-cart:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.plans-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: #fff;
    color: #141414;
    font-size: 0.65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Equal-height cards — cart button pinned to bottom */
.hub-block__plans .row.g-4 > [class*="col-"],
#plans .row.g-4 > [class*="col-"] {
    display: flex;
}

.hub-block__plans .row.g-4 > [class*="col-"] .plan-card,
#plans .row.g-4 > [class*="col-"] .plan-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
}

.plan-card .plan-feature-list {
    flex: 1 1 auto;
}

.plan-card__cart-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.plan-card__cart-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.plan-card__cart-btn i {
    font-size: 0.8rem;
    line-height: 1;
}

.plan-card__cart-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.plan-card__cart-btn.is-in-cart {
    background: rgba(40, 167, 69, 0.18);
    border-color: rgba(40, 167, 69, 0.45);
    color: #7dffb0;
}

.plan-card__cart-btn.is-added {
    background: rgba(40, 167, 69, 0.35);
    border-color: #28a745;
    color: #fff;
}

.plans-cart-modal,
.plans-inquiry-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1080;
}

.plans-cart-modal.show,
.plans-inquiry-modal.show {
    display: flex;
}

.plans-cart-modal__content,
.plans-inquiry-modal__content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plans-inquiry-modal__content {
    max-width: 560px;
    overflow-y: auto;
    padding: 2rem;
}

.plans-cart-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plans-cart-modal__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.plans-cart-modal__close,
.plans-inquiry-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.plans-cart-modal__close:hover,
.plans-inquiry-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.plans-cart-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.plans-cart-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.plans-cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.plans-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#plansCartList:empty {
    display: none !important;
}

.plans-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.plans-cart-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
}

.plans-cart-item__details {
    flex: 1;
    min-width: 0;
}

.plans-cart-item__details h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: #fff;
}

.plans-cart-item__tier {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.plans-cart-item__remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 34px;
    height: 34px;
    padding: 0 0.65rem;
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.15);
    color: #ff8a95;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.plans-cart-item__remove span {
    line-height: 1;
}

.plans-cart-item__remove:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.55);
    color: #ffb3ba;
}

.plans-cart-modal {
    z-index: 1100;
}

.plans-inquiry-modal {
    z-index: 1110;
}

.plans-cart-modal__footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plans-cart-modal__total {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.plans-cart-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.plans-cart-modal__actions .btn {
    flex: 1;
    min-width: 140px;
}

.plans-inquiry-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.plans-inquiry-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.plans-inquiry-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.plans-inquiry-summary {
    text-align: left;
    margin-bottom: 1.25rem;
}

.plans-inquiry-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plans-inquiry-summary li {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.plans-replace-message {
    text-align: left;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.28);
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.plans-replace-message p {
    margin: 0 0 0.75rem;
}

.plans-replace-message p:last-child {
    margin-bottom: 0;
}

.plans-replace-message strong {
    color: #fff;
}

.plans-inquiry-note {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.plans-inquiry-form .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.plans-inquiry-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.plans-inquiry-form .form-select {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #b0b0b0;
}

.plans-inquiry-form .form-select:focus,
.plans-inquiry-form .form-select:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #b0b0b0;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.plans-inquiry-form .form-select option {
    background: #1f1f1f;
    color: #b0b0b0;
}

.plans-inquiry-form .form-floating {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.plans-inquiry-form .form-floating > label {
    color: rgba(255, 255, 255, 0.55);
}

/* Bootstrap form-floating label cutout — default is white (--bs-body-bg) */
.plans-inquiry-form .form-floating > label::after {
    background-color: transparent;
}

.plans-inquiry-form .form-floating > .form-select {
    background-color: rgba(255, 255, 255, 0.06);
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.plans-inquiry-form .form-check-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}

.plans-inquiry-form .form-check-label a {
    color: #fff;
}

.plans-cart-limit-msg {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffd666;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .plans-cart-modal__actions {
        flex-direction: column;
    }

    .plans-cart-modal__actions .btn {
        width: 100%;
    }
}
