/* ── High Level Academy Brand Theme ── */
:root {
    --hla-purple-dark: #2a1560;
    --hla-purple: #3d2080;
    --hla-purple-light: #5a35a8;
    --hla-yellow: #f5c518;
    --hla-yellow-hover: #ddb800;
    --hla-white: #ffffff;
    --hla-text-on-dark: rgba(255, 255, 255, 0.85);
    --hla-text-muted-on-dark: rgba(255, 255, 255, 0.6);

    --bs-primary: #3d2080;
    --bs-primary-rgb: 61, 32, 128;
    --bs-success: #2d8a4e;
    --bs-success-rgb: 45, 138, 78;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-pill: 50rem;
}

body {
    font-family: 'Cairo', sans-serif;
}

body.public-theme {
    background: linear-gradient(160deg, var(--hla-purple-dark) 0%, var(--hla-purple) 45%, #1e0d45 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--hla-text-on-dark);
}

/* ── Navbar ── */
.navbar-hla {
    background: rgba(42, 21, 96, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--hla-yellow);
    padding-block: 0.6rem;
}

.navbar-hla .navbar-brand {
    font-size: 1.1rem;
}

.navbar-hla .nav-link {
    color: var(--hla-text-on-dark) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.4rem 0.9rem !important;
    transition: background 0.2s, color 0.2s;
}

.navbar-hla .nav-link:hover,
.navbar-hla .nav-link.active {
    color: var(--hla-yellow) !important;
    background: rgba(245, 197, 24, 0.12);
}

.brand-logo {
    height: 52px;
    width: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.brand-name {
    color: var(--hla-yellow);
    font-weight: 700;
    line-height: 1.2;
}

.brand-tagline {
    color: var(--hla-text-muted-on-dark);
    font-size: 0.72rem;
    font-weight: 400;
}

/* ── Hero ── */
.hero-section {
    padding-block: 1rem 2rem;
}

.hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    margin-bottom: 1rem;
}

.hero-title {
    color: var(--hla-white);
    font-weight: 700;
}

.hero-subtitle {
    color: var(--hla-text-muted-on-dark);
}

.page-title {
    color: var(--hla-white);
    font-weight: 700;
}

.page-subtitle {
    color: var(--hla-text-muted-on-dark);
}

/* ── Form Cover ── */
.form-cover {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -1.5rem;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-cover-overlay {
    background: linear-gradient(
        135deg,
        rgba(42, 21, 96, 0.82) 0%,
        rgba(61, 32, 128, 0.72) 50%,
        rgba(30, 13, 69, 0.88) 100%
    );
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.form-cover-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    margin-bottom: 0.75rem;
}

.form-cover-title {
    color: var(--hla-white);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form-cover-desc {
    color: var(--hla-text-on-dark);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 540px;
    margin-inline: auto;
}

.form-page-content {
    margin-top: -1rem;
    position: relative;
    z-index: 1;
}

/* ── Cards ── */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px !important;
    color: #2c2c2c;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 21, 96, 0.18) !important;
}

.card-title {
    color: var(--hla-purple);
}

/* ── Buttons ── */
.btn-primary {
    background-color: var(--hla-yellow);
    border-color: var(--hla-yellow);
    color: var(--hla-purple-dark);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.5rem 1.25rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--hla-yellow-hover) !important;
    border-color: var(--hla-yellow-hover) !important;
    color: var(--hla-purple-dark) !important;
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}

.btn-success {
    background-color: var(--hla-purple);
    border-color: var(--hla-purple);
    border-radius: 12px;
    font-weight: 600;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--hla-purple-light) !important;
    border-color: var(--hla-purple-light) !important;
}

.btn-outline-secondary {
    border-radius: 12px;
    color: var(--hla-purple);
    border-color: #ccc;
}

.btn-outline-secondary:hover {
    background-color: var(--hla-purple);
    border-color: var(--hla-purple);
    color: var(--hla-white);
}

.text-primary {
    color: var(--hla-purple) !important;
}

.text-on-dark-muted {
    color: var(--hla-text-muted-on-dark);
}

.text-on-dark-muted:hover {
    color: var(--hla-yellow);
}

/* ── Footer ── */
.footer-hla {
    background: rgba(30, 13, 69, 0.85);
    border-top: 2px solid rgba(245, 197, 24, 0.3);
    color: var(--hla-text-muted-on-dark);
}

.footer-hla .footer-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    opacity: 0.85;
}

.footer-hla .footer-link {
    color: var(--hla-white);
    text-decoration: none;
    font-weight: 600;
}

.footer-hla .footer-link:hover {
    color: var(--hla-yellow);
    text-decoration: underline;
}

/* ── Form Wizard ── */
.form-wizard-card:hover {
    transform: none;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
    flex: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ede8f5;
    color: #8a7aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #d5cce8;
}

.wizard-step-indicator.active .wizard-step-circle {
    background: var(--hla-yellow);
    color: var(--hla-purple-dark);
    border-color: var(--hla-yellow);
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.25);
}

.wizard-step-indicator.completed .wizard-step-circle {
    background: var(--hla-purple);
    color: #fff;
    border-color: var(--hla-purple);
}

.wizard-step-label {
    font-size: 0.75rem;
    color: #8a7aaa;
    margin-top: 0.4rem;
    line-height: 1.3;
}

.wizard-step-indicator.active .wizard-step-label {
    color: var(--hla-purple);
    font-weight: 600;
}

.wizard-step-indicator.completed .wizard-step-label {
    color: var(--hla-purple-light);
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: #d5cce8;
    min-width: 20px;
    max-width: 60px;
    margin: 0 0.25rem;
    margin-bottom: 1.5rem;
}

.wizard-step-indicator.completed + .wizard-step-line,
.wizard-step-line.completed {
    background: var(--hla-purple-light);
}

.review-content .table td {
    vertical-align: middle;
}

/* ── Success page ── */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hla-yellow), var(--hla-yellow-hover));
    color: var(--hla-purple-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.4);
}

.reference-box {
    background: linear-gradient(135deg, #f8f5ff, #ede8f5);
    border: 2px solid rgba(61, 32, 128, 0.15);
    border-radius: 12px;
}

.reference-box .reference-number {
    color: var(--hla-purple);
    letter-spacing: 1px;
}

/* ── Form inputs focus ── */
.form-control:focus,
.form-select:focus {
    border-color: var(--hla-purple-light);
    box-shadow: 0 0 0 0.2rem rgba(61, 32, 128, 0.2);
}

/* ── Alerts on dark bg ── */
.alert-danger {
    border-radius: 12px;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 42px;
        width: 42px;
    }

    .hero-logo {
        width: 88px;
        height: 88px;
    }

    .wizard-step-label {
        font-size: 0.65rem;
    }

    .wizard-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .form-cover {
        min-height: 200px;
    }

    .form-cover-overlay {
        padding: 1.75rem 0;
    }

    .form-cover-logo {
        width: 64px;
        height: 64px;
    }

    .form-cover-title {
        font-size: 1.35rem;
    }

    .form-cover-desc {
        font-size: 0.9rem;
    }
}
