:root {
    --pk-green: #006633;
    --pk-green-dark: #004d26;
    --pk-green-light: #f2f9f5;
    --pk-gold: #d4af37;
    --pk-bg: #f8f9fa;
}

body {
    background-color: var(--pk-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gov-header {
    background-color: var(--pk-green);
    color: #ffffff;
    border-bottom: 4px solid var(--pk-gold);
    padding: 12px 0;
}

.card-gov {
    border: 1px solid #dee2e6;
    border-top: 4px solid var(--pk-green);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.btn-gov {
    background-color: var(--pk-green);
    color: #fff;
    font-weight: 600;
}

    .btn-gov:hover {
        background-color: var(--pk-green-dark);
        color: #fff;
    }

.wizard-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}
/* Elegant Stepper Indicator Styling */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 35px;
    padding: 0 20px;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 8px auto;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
}

/* Completed Step State (Prominent Green) */
.step-item.completed .step-circle {
    background-color: #006633;
    color: #ffffff;
    border-color: #006633;
}

.step-item.completed .step-title {
    color: #006633;
}

/* Active Step State (Pakistan Gold / Green Outline) */
.step-item.active .step-circle {
    background-color: #ffffff;
    color: #006633;
    border-color: #006633;
    box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.15);
}

.step-item.active .step-title {
    color: #006633;
    font-weight: 700;
}
/* Placeholder text styling - lighter gray so it doesn't look like typed text */
.form-control-gov::placeholder,
.form-control::placeholder {
    color: #a0a0a0 !important;
    opacity: 0.8 !important;
    font-weight: 400;
}

.form-control-gov:-ms-input-placeholder {
    color: #a0a0a0 !important;
}

.form-control-gov::-ms-input-placeholder {
    color: #a0a0a0 !important;
}

/* Focused input highlight in Pakistan Green */
.form-control-gov:focus {
    border-color: #006633;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 51, 0.15);
}

/* Clickable stepper (steps already reached) */
.step-item.clickable { cursor: pointer; }
.step-item.clickable:hover .step-circle { box-shadow: 0 0 0 4px rgba(0, 102, 51, 0.12); }

/* Step 4 review cards */
.review-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
    overflow: hidden;
}
.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pk-green-light);
    border-bottom: 1px solid #dee2e6;
    padding: 10px 16px;
    font-weight: 700;
    color: var(--pk-green);
}
.review-list { padding: 12px 16px 4px; margin: 0; }
.review-list dt { color: #6c757d; font-weight: 600; padding-bottom: 8px; }
.review-list dd { padding-bottom: 8px; margin-bottom: 0; word-break: break-word; }

/* Floating toast messages (auto-hide after 5 seconds, see site.js) */
.toast-host {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 520px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast-host .toast-msg { pointer-events: auto; margin: 0; display: flex; align-items: center; }
.toast-host .toast-msg .btn-close { margin-left: auto; position: static; padding: .5rem; }

/* Result card used by the e-mail verification page */
.verify-icon { font-size: 4rem; line-height: 1; }

/* Logo */
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.logo-badge img { height: 44px; width: auto; display: block; }
.header-sub { color: #d9eee3; letter-spacing: 0.4px; }
.portal-logo { height: 84px; width: auto; }

/* Back button: green outline instead of the grey default */
.btn-outline-gov {
    color: var(--pk-green);
    background-color: #ffffff;
    border: 1.5px solid var(--pk-green);
    font-weight: 600;
}
.btn-outline-gov:hover,
.btn-outline-gov:focus {
    background-color: var(--pk-green);
    color: #ffffff;
    border-color: var(--pk-green);
}
.btn-outline-gov:focus-visible { box-shadow: 0 0 0 0.25rem rgba(0, 102, 51, 0.25); }

/* Application window banner */
.schedule-card {
    border: 1px solid #cfe5d8;
    border-left: 5px solid var(--pk-green);
    border-radius: 8px;
    background: var(--pk-green-light);
    overflow: hidden;
}
.schedule-card-head {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-weight: 700;
    color: var(--pk-green);
    border-bottom: 1px solid #cfe5d8;
}
.schedule-card-body { padding: 4px 16px 8px; }
.schedule-row { padding: 10px 0; border-bottom: 1px dashed #cfe5d8; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-duty { font-weight: 700; color: #212529; }
.schedule-dates { font-size: 0.85rem; }
.schedule-last { margin-top: 2px; }
.schedule-closed { background: #fdf3f2; border-color: #f1c9c5; border-left-color: #b02a37; }
.schedule-closed .schedule-card-head { color: #b02a37; border-bottom-color: #f1c9c5; }

/* Radios / checkboxes in portal green */
.form-check-input:checked {
    background-color: var(--pk-green);
    border-color: var(--pk-green);
}
.form-check-input:focus {
    border-color: var(--pk-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 51, 0.2);
}

/* Login: tighter spacing on laptops/desktops so the schedule card does not push the form too far down */
@media (min-width: 992px) {
    .schedule-card .schedule-row { padding: 7px 0; }
    .schedule-card-head { padding-top: 8px; padding-bottom: 8px; }
    .portal-logo { max-height: 64px; }
}
