/* Mobile-first base styles. Bootstrap handles grid/breakpoints; this file only adds
   ClassConnect-specific touches on top. */

:root {
    --cc-primary: #2451B4;
    --cc-primary-dark: #1a3a86;
}

body {
    background-color: #f5f7fb;
}

.navbar-brand, .btn-primary, .bg-primary {
    --bs-primary: var(--cc-primary);
}

.btn-primary {
    background-color: var(--cc-primary);
    border-color: var(--cc-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
}

.sidebar {
    width: 250px;
}

@media (min-width: 768px) {
    .sidebar {
        min-height: 100vh;
    }
}

.hero-section {
    background: linear-gradient(135deg, var(--cc-primary) 0%, #4361ee 100%);
    color: #fff;
}

.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.course-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: 100%;
}

/* Root gateway page: role cards, icon circles, step badges. */
.role-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(36, 81, 180, 0.14);
}

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(36, 81, 180, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-circle i {
    color: var(--cc-primary);
}

.icon-circle-sm {
    width: 44px;
    height: 44px;
    margin: 0;
}

.icon-circle-sm i {
    font-size: 0.95rem;
}

.contact-info-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.contact-form-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(36, 81, 180, 0.25);
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 28px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(to right, #cfd8ea 0, #cfd8ea 6px, transparent 6px, transparent 12px);
        z-index: 0;
    }

    .step-item:last-child .step-connector {
        display: none;
    }

    .step-item {
        position: relative;
    }

    .step-item .step-circle {
        position: relative;
        z-index: 1;
    }
}

/* Checkout flow: enroll.php, pay-session.php, payment-callback.php. */
.checkout-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.checkout-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 28px rgba(20, 30, 60, 0.08);
    overflow: hidden;
}

.checkout-card .checkout-header {
    background: linear-gradient(135deg, var(--cc-primary) 0%, #4361ee 100%);
    color: #fff;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.checkout-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.4rem;
}

.checkout-body {
    padding: 1.75rem 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: #495057;
    border-bottom: 1px solid #eef1f6;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row .label {
    color: #6c757d;
}

.summary-row.total {
    border-top: 2px solid #eef1f6;
    border-bottom: none;
    margin-top: 0.25rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c2333;
}

.trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #8891a0;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.result-icon-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.1rem;
}

.result-icon-circle.success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.result-icon-circle.fail {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Keep touch targets comfortably large on small screens */
.nav-link, .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.form-label {
    font-weight: 500;
}
