:root {
    --lam-navy: #1f4e79;
    --lam-navy-dark: #163a5c;
    --lam-gold: #e6a817;
    --lam-bg: #eef2f8;
    --lam-border: #e3e9f2;
    --lam-text: #2c3e50;
    --lam-muted: #6b7686;
    --lam-success: #16a34a;
}

html,
body {
    height: auto;
}

body#isi {
    background: linear-gradient(160deg, #eef2f8 0%, #f7f9fc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--lam-text);
    padding: 28px 16px;
}

body#isi > .col-md-8 {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 1020px;
    padding-left: 0;
    padding-right: 0;
}

/* ---- Hero header ---- */
.lam-header {
    background: linear-gradient(135deg, var(--lam-navy-dark) 0%, var(--lam-navy) 55%, #2a5c8f 100%);
    border-radius: 16px;
    color: #fff;
    padding: 26px 30px 22px;
    box-shadow: 0 10px 30px rgba(31, 78, 121, 0.28);
    position: relative;
    overflow: hidden;
}

.lam-header::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.lam-header-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

#img1.lam-logo {
    width: auto;
    height: 88px;
    max-width: 240px;
    object-fit: contain;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px 10px;
}

.lam-header-title {
    flex: 1;
    min-width: 220px;
}

.lam-header-title h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.lam-header-title p {
    margin: 0;
    color: #d6e4f3;
    font-size: 14px;
}

#btnKosongkan {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
}

#btnKosongkan:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.lam-welcome {
    margin: 20px 0 14px;
    line-height: 1.75;
    color: #e8f0f9;
    font-size: 14px;
    max-width: 820px;
}

.lam-contact {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.lam-contact li a {
    color: #cfe0f2;
    font-size: 13px;
}

.lam-contact li a:hover {
    color: #fff;
    text-decoration: none;
}

/* ---- Stepper ---- */
.lam-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px auto 10px;
    max-width: 560px;
}

.lam-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 160px;
}

.lam-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    background: #fff;
    color: var(--lam-muted);
    border: 2px solid #cfd8e3;
    transition: all 0.25s ease;
}

.lam-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lam-muted);
    text-align: center;
}

.lam-step-line {
    flex: 1;
    height: 3px;
    min-width: 40px;
    background: #cfd8e3;
    border-radius: 3px;
    margin: -18px 12px 0;
}

.lam-step.active .lam-step-circle {
    border-color: var(--lam-navy);
    color: var(--lam-navy);
    box-shadow: 0 0 0 5px rgba(31, 78, 121, 0.12);
}

.lam-step.active .lam-step-label {
    color: var(--lam-navy);
}

.lam-step.done .lam-step-circle {
    background: var(--lam-navy);
    border-color: var(--lam-navy);
    color: #fff;
}

.lam-step.done .lam-step-label {
    color: var(--lam-navy);
}

#lamSteps.step-done .lam-step-line {
    background: var(--lam-navy);
}

/* ---- Warning banner ---- */
#warningchrome {
    display: block;
    background: #fff7e0;
    border: 1px solid #f2d47c;
    color: #8a6d1d;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- Section cards ---- */
body#isi .box {
    border-radius: 14px;
    border: 1px solid var(--lam-border);
    box-shadow: 0 6px 24px rgba(31, 45, 80, 0.07);
    margin-bottom: 20px;
    background: #fff;
}

body#isi .box.box-info {
    border-top: 3px solid #7bb3e4;
}

body#isi .box.box-success {
    border-top: 3px solid #7bc4a8;
}

body#isi .box.box-warning {
    border-top: 3px solid #ecc977;
}

body#isi .box-header.with-border {
    border-bottom: 1px solid #eef2f8;
    border-radius: 14px 14px 0 0;
    background: #fbfcfe;
    padding: 14px 18px;
}

body#isi .box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--lam-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

body#isi .box-title i {
    color: var(--lam-gold);
}

body#isi .box-body {
    padding: 18px 20px;
}

/* ---- Form controls ---- */
body#isi .form-control {
    border-radius: 8px;
    border: 1px solid #d4dde9;
    height: 38px;
    font-size: 14px;
    color: var(--lam-text);
    box-shadow: none;
}

body#isi .form-control:focus {
    border-color: var(--lam-navy);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}

body#isi textarea.form-control {
    height: auto;
}

body#isi .control-label {
    font-weight: 600;
    color: #40536b;
    font-size: 14px;
    padding-top: 9px;
}

body#isi .required {
    color: #e11d48;
    margin-left: 2px;
}

body#isi .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

body#isi .input-group-addon {
    border-radius: 0 8px 8px 0;
    border-color: #d4dde9;
    background: #f4f7fb;
}

/* ---- Select2 ---- */
body#isi .select2-container .select2-selection--multiple {
    border: 1px solid #d4dde9;
    border-radius: 8px;
    min-height: 38px;
}

body#isi .select2-container .select2-selection__choice {
    background: #e8f1fb;
    border: 1px solid #bcd4ec;
    border-radius: 6px;
    color: var(--lam-navy);
    font-size: 13px;
}

/* ---- Buttons ---- */
body#isi .btn {
    border-radius: 8px;
    font-weight: 600;
}

body#isi .btn-success {
    background: var(--lam-success);
    border-color: var(--lam-success);
}

body#isi .btn-success:hover,
body#isi .btn-success:focus {
    background: #12813d;
    border-color: #12813d;
}

body#isi .btn-info {
    background: var(--lam-navy);
    border-color: var(--lam-navy);
}

body#isi .btn-info:hover,
body#isi .btn-info:focus {
    background: var(--lam-navy-dark);
    border-color: var(--lam-navy-dark);
}

body#isi .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
}

body#isi .btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* ---- Upload cards ---- */
body#isi #formuploadfoto .col-md-4 .form-group {
    background: #fafcff;
    border: 1.5px dashed #c3d3e6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body#isi #formuploadfoto label {
    font-weight: 700;
    color: var(--lam-navy);
    font-size: 14px;
}

body#isi #formuploadfoto .help-block {
    color: var(--lam-muted);
    font-size: 12px;
    margin: 8px 0 0;
}

body#isi #filefoto,
body#isi #fileijazah,
body#isi #filecv {
    font-size: 13px;
    color: var(--lam-muted);
}

body#isi #filefoto::file-selector-button,
body#isi #fileijazah::file-selector-button,
body#isi #filecv::file-selector-button {
    background: #eef4fb;
    border: 1px solid #c3d3e6;
    color: var(--lam-navy);
    border-radius: 6px;
    padding: 6px 12px;
    margin-right: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ---- DataTable ---- */
body#isi .table-bordered > thead > tr > th {
    background: #f4f8fc;
    color: var(--lam-navy);
    font-weight: 700;
    border-color: var(--lam-border);
}

/* ---- Misc ---- */
body#isi > .col-md-8 > hr {
    border-top: 1px solid #dbe3ee;
    margin: 24px 0 0;
}

/* ---- SweetAlert ---- */
.sweet-overlay {
    background: rgba(20, 30, 45, 0.45);
}

.sweet-alert {
    border-radius: 14px;
}

.sweet-alert h2 {
    font-family: inherit;
}

.sweet-alert button {
    border-radius: 8px !important;
    font-family: inherit;
}

/* ---- Datepicker ---- */
body#isi .datepicker table tr td.active,
body#isi .datepicker table tr td.active:hover {
    background: var(--lam-navy) !important;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    body#isi {
        padding: 16px 10px;
    }

    .lam-header {
        padding: 20px;
    }

    #img1.lam-logo {
        height: 64px;
    }

    .lam-step {
        width: 130px;
    }

    .lam-contact {
        gap: 4px 14px;
    }
}
