/* ═══════════════════════════════════════════════════════════════
    PRICING PAGE — purple theme
═══════════════════════════════════════════════════════════════ */
:root {
    --primary: #6f54a4;
    --primary-light: rgba(111, 84, 164, .12);
    --primary-border: rgba(111, 84, 164, .30);
    --secondary: #c086c0;
    --savings-green: #22a06b;
    --savings-bg: rgba(34, 160, 107, .08);
    --radius-card: 14px;
    --radius-btn: 9px;
    --transition: 0.22s ease;
}

/* ─── CARD hover ─── */
.pricing-item {
    transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-item:hover {
    border-color: var(--primary-border) !important;
    box-shadow: 0 8px 36px rgba(111, 84, 164, .10) !important;
}

/* ─── OPTION TOGGLE TABS ─── */
.pkg-tabs {
    display: flex;
    gap: 0;
    border-radius: var(--radius-btn);
    border: 1.5px solid rgba(111, 84, 164, .22);
    overflow: hidden;
    margin-bottom: 18px;
}

.pkg-tab-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: .55;
    transition: background var(--transition), opacity var(--transition);
    position: relative;
}

.pkg-tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(111, 84, 164, .22);
}

.pkg-tab-btn.active {
    background: var(--primary);
    color: #fff;
    opacity: 1;
}

.pkg-tab-btn:not(.active):hover {
    background: var(--primary-light);
    opacity: 1;
}

/* ─── FEATURE PANELS ─── */
.pkg-features-panel {
    display: none;
}

.pkg-features-panel.active {
    display: block;
}

/* ─── SAVINGS LABEL ─── */
.pkg-savings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--savings-green);
    background: var(--savings-bg);
    border-radius: 7px;
    padding: 6px 10px;
}

.pkg-savings svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.pkg-onsite-only {
    margin-top: 12px;
    font-size: .72rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: .8;
}

.pkg-onsite-only svg {
    width: 12px;
    height: 12px;
}

/* ─── CTA BUTTON on card ─── */
.pkg-cta-row {
    margin-top: 20px;
}

.pkg-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-btn);
    background: var(--primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.pkg-cta-btn:hover {
    background: #5c4490;
    transform: translateY(-1px);
    color: #fff;
}

/* ─── PRICE shown below tabs ─── */
.pkg-active-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.pkg-active-price sup {
    font-size: .6rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 1px;
    opacity: .8;
}

/* ─── MOBILE ─── */
@media (max-width: 400px) {
    .pkg-tabs {
        flex-direction: column;
    }
}


/* ═══════════════════════════════════════════════════════════════
    MODAL
═══════════════════════════════════════════════════════════════ */
.pkg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 18, 50, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pkg-modal-overlay.active {
    display: flex;
}

.pkg-modal {
    background: #fff;
    border: 1.5px solid var(--primary-border);
    border-radius: 18px;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn .26s cubic-bezier(.34, 1.4, .64, 1);
    box-shadow: 0 24px 80px rgba(111, 84, 164, .20);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pkg-modal::-webkit-scrollbar {
    width: 4px;
}

.pkg-modal::-webkit-scrollbar-thumb {
    background: rgba(111, 84, 164, .25);
    border-radius: 4px;
}

.pkg-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(111, 84, 164, .2);
    background: rgba(111, 84, 164, .06);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 2;
}

.pkg-modal__close:hover {
    background: rgba(111, 84, 164, .14);
}

.pkg-modal__close svg {
    width: 13px;
    height: 13px;
}

/* Header */
.pkg-modal__header {
    background: linear-gradient(135deg, var(--primary) 0%, #9b78c8 100%);
    padding: 28px 30px 22px;
    color: #fff;
}

.pkg-modal__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .30);
    color: #fff;
    margin-bottom: 10px;
}

.pkg-modal__pkg-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.2;
    padding-right: 36px;
}

.pkg-modal__option-name {
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
    margin: 0 0 12px;
}

.pkg-modal__price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pkg-modal__price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.pkg-modal__price-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 600;
}

/* Body */
.pkg-modal__body {
    padding: 22px 30px 28px;
}

/* ─── REGISTRATION FORM ─── */
.pkg-form__title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 16px;
}

.pkg-form__group {
    margin-bottom: 14px;
}

.pkg-form__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.pkg-form__input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e2e2e2;
    border-radius: var(--radius-btn);
    font-size: .875rem;
    color: #333;
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    box-sizing: border-box;
}

.pkg-form__input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(111, 84, 164, .10);
}

.pkg-form__input.error {
    border-color: #e53935;
}

.pkg-form__error {
    font-size: .7rem;
    color: #e53935;
    margin-top: 4px;
    display: none;
}

.pkg-form__error.visible {
    display: block;
}

.pkg-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .pkg-form__row {
        grid-template-columns: 1fr;
    }
}

.pkg-form__submit {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-btn);
    background: var(--primary);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background var(--transition), transform var(--transition);
}

.pkg-form__submit:hover:not(:disabled) {
    background: #5c4490;
    transform: translateY(-1px);
}

.pkg-form__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.pkg-form__cancel {
    display: block;
    width: 100%;
    padding: 11px 20px;
    border-radius: var(--radius-btn);
    background: transparent;
    color: #999;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    border: 1.5px solid #e8e8e8;
    cursor: pointer;
    margin-top: 9px;
    transition: border-color var(--transition), color var(--transition);
}

.pkg-form__cancel:hover {
    border-color: #ccc;
    color: #555;
}

/* Success state */
.pkg-form__success {
    display: none;
    text-align: center;
    padding: 20px 10px 10px;
}

.pkg-form__success.visible {
    display: block;
}

.pkg-form__success-icon {
    width: 52px;
    height: 52px;
    background: rgba(34, 160, 107, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.pkg-form__success-icon svg {
    width: 24px;
    height: 24px;
    color: var(--savings-green);
}

.pkg-form__success h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 6px;
}

.pkg-form__success p {
    font-size: .85rem;
    color: #777;
    margin-bottom: 18px;
}

/* Mobile */
@media (max-width: 575px) {
    .pkg-modal {
        border-radius: 14px;
    }

    .pkg-modal__header,
    .pkg-modal__body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pkg-modal__price {
        font-size: 1.8rem;
    }
}