/* =============================================================
   Neet Training — Frontend Styles
   ============================================================= */

/* ── Collapsible Block (shared by dates, detail, and sub-accordions) ── */

.neet-tc-block {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.neet-tc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    transition: background 0.15s;
    line-height: 1.4;
}

.neet-tc-toggle:hover {
    background: #f1f5f9;
}

.neet-tc-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: background 0.15s;
    user-select: none;
}

.neet-tc-toggle-icon::before {
    content: '+';
    font-weight: 400;
    position: relative;
    top: -1px;
}

.neet-tc-toggle[aria-expanded="true"] .neet-tc-toggle-icon {
    background: #3b82f6;
    color: #fff;
}

.neet-tc-toggle[aria-expanded="true"] .neet-tc-toggle-icon::before {
    content: '\2212'; /* Unicode minus − not a hyphen, same width as + */
    font-weight: 400;
    top: 0;
}

.neet-tc-body {
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    animation: ntcFadeIn 0.18s ease;
}

@keyframes ntcFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Dates block ── */

.neet-tc-block--dates .neet-tc-toggle {
    background: #f0f9ff;
    color: #0369a1;
}

.neet-tc-block--dates .neet-tc-toggle:hover {
    background: #e0f2fe;
}

.neet-tc-block--dates .neet-tc-toggle-icon {
    background: #bae6fd;
    color: #0369a1;
}

.neet-tc-block--dates .neet-tc-toggle[aria-expanded="true"] .neet-tc-toggle-icon {
    background: #0369a1;
    color: #fff;
}

.neet-tc-dates-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.neet-tc-dates-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.neet-tc-dates-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Detail block ── */

.neet-tc-block--detail .neet-tc-toggle {
    background: #fafaf9;
    color: #292524;
}

/* ── Bullets block ── */

.neet-tc-block--bullets .neet-tc-toggle {
    background: #f0fdf4;
    color: #166534;
}

.neet-tc-block--bullets .neet-tc-toggle:hover {
    background: #dcfce7;
}

.neet-tc-block--bullets .neet-tc-toggle-icon {
    background: #bbf7d0;
    color: #166534;
}

.neet-tc-block--bullets .neet-tc-toggle[aria-expanded="true"] .neet-tc-toggle-icon {
    background: #16a34a;
    color: #fff;
}

/* ── Cost block ── */

.neet-tc-block--cost .neet-tc-toggle {
    background: #fefce8;
    color: #854d0e;
}

.neet-tc-block--cost .neet-tc-toggle:hover {
    background: #fef9c3;
}

.neet-tc-block--cost .neet-tc-toggle-icon {
    background: #fde68a;
    color: #854d0e;
}

.neet-tc-block--cost .neet-tc-toggle[aria-expanded="true"] .neet-tc-toggle-icon {
    background: #ca8a04;
    color: #fff;
}

.neet-tc-cost-inner {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* ── Summary, bullets, cost ── */

.neet-tc-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.neet-tc-summary {
    font-size: 15px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.6;
}

.neet-tc-bullets {
    margin: 8px 0 12px 0;
    padding-left: 20px;
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}

.neet-tc-cost {
    font-size: 15px;
    color: #1e293b;
    margin: 8px 0 12px;
}

/* ── Action buttons ── */

.neet-tc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.neet-tc-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s, transform 0.1s;
    line-height: 1.3;
}

.neet-tc-btn:active {
    transform: scale(0.98);
}

.neet-tc-btn--primary {
    background: #2563eb;
    color: #fff;
}

.neet-tc-btn--primary:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.neet-tc-btn--secondary {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.neet-tc-btn--secondary:hover {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}

/* ── Session catalogue (all sessions list) ── */

.neet-training-sessions {
    max-width: 800px;
}

.neet-ts-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.neet-ts-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.neet-ts-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s;
}

.neet-ts-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.neet-ts-item.is-open {
    box-shadow: 0 2px 10px rgba(37,99,235,0.1);
    border-color: #bfdbfe;
}

.neet-ts-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.neet-ts-toggle:hover {
    background: #f8fafc;
}

.neet-ts-item.is-open .neet-ts-toggle {
    background: #eff6ff;
}

.neet-ts-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
    transition: background 0.15s;
    user-select: none;
}

.neet-ts-toggle-icon::before {
    content: '+';
    font-weight: 400;
    position: relative;
    top: -1px;
}

.neet-ts-item.is-open .neet-ts-toggle-icon {
    background: #2563eb;
    color: #fff;
}

.neet-ts-item.is-open .neet-ts-toggle-icon::before {
    content: '\2212';
    font-weight: 400;
    top: 0;
}

.neet-ts-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.neet-ts-item.is-open .neet-ts-title {
    color: #2563eb;
}

.neet-ts-body {
    padding: 16px 20px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    animation: ntcFadeIn 0.18s ease;
}

.neet-ts-empty {
    color: #64748b;
    font-style: italic;
}

/* ── Single session display ── */

.neet-training-single {
    max-width: 760px;
}

.neet-training-summary,
.neet-training-dates,
.neet-training-detail {
    margin-bottom: 8px;
}

/* ── Modal ── */

.neet-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neet-modal[hidden] {
    display: none;
}

.neet-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.neet-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.neet-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 4px;
}

.neet-modal-close:hover {
    color: #1e293b;
}

/* ── Catalogue download ── */

.neet-catalogue-download {
    max-width: 480px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

.neet-cd-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 8px;
}

.neet-cd-description {
    color: #475569;
    margin-bottom: 16px;
    font-size: 14px;
}

.neet-cd-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.neet-cd-form input[type="text"],
.neet-cd-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.neet-cd-form input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.neet-cd-submit {
    padding: 11px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.neet-cd-submit:hover {
    background: #1d4ed8;
}

.neet-cd-message {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 5px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.neet-cd-message.is-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .neet-ts-toggle,
    .neet-ts-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .neet-tc-actions {
        flex-direction: column;
    }

    .neet-tc-btn {
        text-align: center;
    }
}
