/* ==================== */
/* KURSEVI PLAN RADA WIDGET */
/* ==================== */

/* Section */
.ks-plan-widget {
    padding: 42px 24px;
    text-align: center;
}

.ks-plan-title {
    font-size: 28px;
    font-weight: normal;
    margin: 0 0 14px;
    color: #1a1a1a;
}

.ks-plan-desc {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    color: #555;
    margin: 0 0 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.ks-plan-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: normal;
    color: #fff;
    background: linear-gradient(135deg, #d75628 0%, #562d6f 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.25s, transform 0.2s;
}

.ks-plan-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* Modal Backdrop */
.ks-plan-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.ks-plan-modal-backdrop.ks-plan-open {
    opacity: 1;
    pointer-events: all;
}

/* Modal Container */
.ks-plan-modal {
    position: relative;
    max-width: 980px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 26px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    padding: 28px;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.ks-plan-open .ks-plan-modal {
    transform: scale(1);
}

/* Modal Header */
.ks-plan-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ks-plan-modal-title {
    font-size: 24px;
    font-weight: normal;
    color: #1a1a1a;
}

.ks-plan-modal-close {
    background: transparent;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    color: #555;
    transition: background 0.25s, color 0.25s;
}

.ks-plan-modal-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* Modal Body */
.ks-plan-modal-body {
    margin-bottom: 0;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

/* Plan Grid */
.ks-plan-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.ks-plan-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.ks-plan-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ks-plan-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Plan Card */
.ks-plan-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.ks-plan-card-title {
    font-size: 18px;
    font-weight: normal;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.ks-plan-card-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.ks-plan-card-list li {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.65;
    color: #555;
    margin-bottom: 6px;
}

.ks-plan-card-list li:last-child {
    margin-bottom: 0;
}

/* Modal Note */
.ks-plan-modal-note {
    background: rgba(215, 86, 40, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}



/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 709px) {
    .ks-plan-grid[data-columns="2"],
    .ks-plan-grid[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .ks-plan-modal {
        padding: 20px;
        border-radius: 20px;
    }

    .ks-plan-modal-title {
        font-size: 20px;
    }

    .ks-plan-card-title {
        font-size: 16px;
    }

    .ks-plan-card {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .ks-plan-title {
        font-size: 24px;
    }

    .ks-plan-desc {
        font-size: 14px;
    }

    .ks-plan-btn {
        font-size: 14px;
        padding: 12px 24px;
    }

    .ks-plan-modal {
        padding: 16px;
        border-radius: 16px;
    }

    .ks-plan-modal-title {
        font-size: 18px;
    }

    .ks-plan-card-title {
        font-size: 15px;
    }

    .ks-plan-card-list li {
        font-size: 14px;
    }

    .ks-plan-modal-note {
        font-size: 14px;
    }
}
