/* ── Enrollment Page — Full-page split layout + Step wizard ─────── */

/* ── Page shell ─────────────────────────────────────── */
.enrol-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 130px; /* clear fixed header */
    background: #042240; /* bleed-match left panel */
}

.enrol-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Full-page split ─────────────────────────────────── */
.enrol-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    flex: 1;
    min-height: calc(100vh - 130px);
}

/* ── Left panel ─────────────────────────────────────── */
.enrol-panel-left {
    background:
        linear-gradient(160deg, rgba(4,34,64,.78) 0%, rgba(2,79,156,.65) 100%),
        url('../images/internship.webp') center / cover no-repeat;
    padding: 52px 56px 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ── Breadcrumb — lives inside left panel on dark bg ─── */
.enrol-breadcrumb {
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.enrol-breadcrumb a           { color: rgba(255,255,255,.7); text-decoration: none; }
.enrol-breadcrumb a:hover     { color: #fff; text-decoration: underline; }
.enrol-breadcrumb span:last-child { color: rgba(255,255,255,.9); }

.enrol-left-logo {
    display: block;
    height: 52px;
    width: auto;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.enrol-left-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.enrol-left-body h2 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 16px;
}

.enrol-left-body p {
    font-size: 15px;
    color: rgba(255,255,255,.75);
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 400px;
}

.enrol-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.enrol-perks li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
}
.enrol-perks li .perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #7dd3fc;
}

.enrol-left-footer {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 18px;
}

/* ── Right panel ─────────────────────────────────────── */
.enrol-panel-right {
    background: #fff;
    padding: 52px 52px 44px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* ── Right panel heading ─────────────────────────────── */
.enrol-heading {
    margin-bottom: 32px;
}
.enrol-heading h1 {
    font-size: 26px;
    font-weight: 800;
    color: #042240;
    margin: 0 0 8px;
    line-height: 1.25;
}
.enrol-heading p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── Step indicator ──────────────────────────────────── */
.enrol-steps {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 0;
}
.enrol-step-item {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}
.enrol-step-item:last-child { flex: none; }

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    flex-shrink: 0;
    transition: all .3s;
    position: relative;
    z-index: 1;
}
.step-circle.active {
    border-color: #024f9c;
    background: #024f9c;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(2,79,156,.15);
}
.step-circle.done {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

.step-label {
    font-size: 11.5px;
    color: #9ca3af;
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .3s;
}
.step-label.active { color: #024f9c; }
.step-label.done   { color: #10b981; }

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 10px;
    transition: background .3s;
}
.step-line.done { background: #10b981; }

/* ── Step panels ─────────────────────────────────────── */
.enrol-step-panel { display: none; flex: 1; flex-direction: column; }
.enrol-step-panel.active { display: flex; }

.enrol-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #042240;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f9;
    display: flex;
    align-items: center;
    gap: 9px;
}

.enrol-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.enrol-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.enrol-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.enrol-field input,
.enrol-field select,
.enrol-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #111;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.enrol-field input:focus,
.enrol-field select:focus,
.enrol-field textarea:focus {
    outline: none;
    border-color: #024f9c;
    box-shadow: 0 0 0 3px rgba(2,79,156,.1);
}
.enrol-field textarea { resize: vertical; min-height: 120px; }

/* ── Nav buttons ─────────────────────────────────────── */
.enrol-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
}

.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border: 2px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.btn-prev:hover {
    border-color: #024f9c;
    color: #024f9c;
}

.btn-next,
.btn-enrol {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #042240, #024f9c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.btn-next:hover,
.btn-enrol:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(2,79,156,.3);
}

/* ── Error / Success ─────────────────────────────────── */
.enrol-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.enrol-success {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}
.enrol-success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}
.enrol-success h2 {
    font-size: 26px;
    font-weight: 800;
    color: #042240;
    margin-bottom: 12px;
}
.enrol-success p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 380px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .enrol-split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .enrol-split {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .enrol-panel-left  { padding: 40px 32px 36px; }
    .enrol-panel-right { padding: 40px 32px 36px; }
    .enrol-left-body h2 { font-size: 24px; }
}

@media (max-width: 600px) {
    .enrol-main         { padding-top: 100px; }
    .enrol-panel-right  { padding: 28px 20px 28px; }
    .enrol-panel-left   { padding: 28px 20px 28px; }
    .enrol-row          { grid-template-columns: 1fr; }
    .step-label         { display: none; }
    .btn-prev,
    .btn-next,
    .btn-enrol          { padding: 11px 16px; font-size: 13px; }
}

@media (max-width: 400px) {
    .enrol-panel-right { padding: 20px 14px 20px; }
    .enrol-panel-left  { padding: 20px 14px 20px; }
}
