/* =========================================================
   MILSERVE PORTAL
   TRANSPORTATION & LOGISTICS
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    background: #080d0a;
    color: #e7eee9;
    line-height: 1.6;
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden-section {
    display: none !important;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    position: relative;
    z-index: 20;

    height: 78px;

    background:
        rgba(7, 12, 9, 0.96);

    border-bottom:
        1px solid rgba(116, 151, 126, 0.18);

    backdrop-filter: blur(12px);
}

.nav-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #18261d;

    border: 1px solid #3c5a45;

    color: #d8e8dc;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.025);
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-text span {
    color: #edf4ef;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.brand-text small {
    margin-top: 5px;

    color: #708076;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2px;
}

.back-link {
    color: #8fa697;

    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-link:hover {
    color: #dce9df;
    transform: translateX(-3px);
}


/* =========================================================
   HERO
   ========================================================= */

.transportation-hero {
    position: relative;

    min-height: 390px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom:
        1px solid rgba(112, 143, 120, 0.12);
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            rgba(10, 18, 13, 0.98),
            rgba(13, 27, 18, 0.86),
            rgba(7, 12, 9, 0.98)
        );

    z-index: 0;
}

.hero-background::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(80, 121, 91, 0.16),
            transparent 35%
        ),
        radial-gradient(
            circle at 25% 75%,
            rgba(43, 83, 55, 0.12),
            transparent 35%
        );
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 7, 0.9),
            rgba(5, 9, 7, 0.45),
            rgba(5, 9, 7, 0.85)
        );

    z-index: 1;
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(115, 147, 123, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(115, 147, 123, 0.08) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 80%,
            transparent
        );

    z-index: 2;
}

.transportation-hero-content {
    position: relative;
    z-index: 3;

    padding: 70px 0;
}

.page-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;

    padding: 7px 12px;

    border:
        1px solid rgba(111, 149, 121, 0.35);

    background:
        rgba(24, 39, 29, 0.65);

    color: #8fae96;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}

.transportation-hero h1 {
    max-width: 760px;

    color: #edf4ef;

    font-size:
        clamp(42px, 7vw, 76px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -2.5px;
}

.transportation-hero h1 span {
    display: block;

    color: #8eaa94;
}

.transportation-hero p {
    max-width: 650px;

    margin-top: 24px;

    color: #9aa99f;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   APPLICATION SECTION
   ========================================================= */

.application-section {
    padding: 70px 0 100px;

    background:
        linear-gradient(
            180deg,
            #080d0a 0%,
            #0a100c 100%
        );
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress-wrapper {
    width: 100%;

    display: flex;
    align-items: center;

    margin-bottom: 40px;
}

.progress-step {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #55645a;

    transition:
        color 0.25s ease;
}

.progress-step span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #29392e;

    background: #0c140f;

    color: #59675e;

    font-size: 11px;
    font-weight: 800;

    transition:
        all 0.25s ease;
}

.progress-step small {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.progress-step.active {
    color: #a8bba9;
}

.progress-step.active span {
    background: #1b3021;

    border-color: #55735c;

    color: #dce9df;

    box-shadow:
        0 0 0 4px rgba(75, 111, 83, 0.08);
}

.progress-line {
    flex: 1;

    height: 1px;

    margin: 0 15px;

    background: #243229;

    transition:
        background 0.25s ease;
}

.progress-line.active {
    background: #4f7057;
}


/* =========================================================
   APPLICATION CARD
   ========================================================= */

.application-card {
    position: relative;

    padding: 38px;

    margin-bottom: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 27, 20, 0.98),
            rgba(11, 18, 13, 0.98)
        );

    border:
        1px solid rgba(100, 133, 108, 0.2);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    animation:
        cardEnter 0.35s ease;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 30px;

    margin-bottom: 30px;

    border-bottom:
        1px solid rgba(103, 132, 109, 0.14);
}

.section-label {
    display: block;

    margin-bottom: 9px;

    color: #718e78;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.card-header h2 {
    color: #e4ede6;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 750;
}

.card-header p {
    max-width: 650px;

    margin-top: 9px;

    color: #78877d;

    font-size: 13px;
}

.card-number {
    color: rgba(113, 143, 120, 0.2);

    font-size: 56px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -3px;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #a9b7ad;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

input,
select,
textarea {
    width: 100%;

    border:
        1px solid #29392e;

    border-radius: 0;

    outline: none;

    background: #0b120e;

    color: #dce6df;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

input,
select {
    height: 51px;

    padding: 0 15px;
}

textarea {
    min-height: 120px;

    padding: 14px 15px;

    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #4f5d53;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #3b5041;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #607e66;

    background: #0d1711;

    box-shadow:
        0 0 0 3px rgba(77, 111, 84, 0.09);
}

select {
    appearance: none;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #7d9181 50%),
        linear-gradient(135deg, #7d9181 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 22px,
        calc(100% - 13px) 22px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

select option {
    background: #0c140f;
    color: #dce6df;
}


/* =========================================================
   SEARCH FORM
   ========================================================= */

.search-form {
    display: flex;

    align-items: flex-end;

    gap: 18px;
}

.search-form .form-group {
    flex: 1;

    margin-bottom: 0;
}

.input-container {
    position: relative;
}

.input-prefix {
    position: absolute;

    left: 0;
    top: 0;

    width: 45px;
    height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-right:
        1px solid #29392e;

    color: #708678;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    pointer-events: none;
}

.input-container input {
    padding-left: 60px;
}

.field-help {
    display: block;

    margin-top: 8px;

    color: #536159;

    font-size: 10px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 0 22px;

    border: 1px solid transparent;

    border-radius: 0;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.6px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn span {
    font-size: 17px;

    line-height: 1;
}

.btn-primary {
    background: #304b36;

    border-color: #4b6851;

    color: #e8f0e9;
}

.btn-primary:hover {
    background: #3b5c42;

    border-color: #66826c;

    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;
}

.btn-outline {
    background: transparent;

    border-color: #35463a;

    color: #87998d;
}

.btn-outline:hover {
    background: #111c15;

    border-color: #5a7160;

    color: #d1ddd4;
}

.continue-button {
    margin-top: 25px;
}

.form-actions {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid rgba(102, 132, 108, 0.12);
}


/* =========================================================
   SEARCH STATUS
   ========================================================= */

.search-status {
    min-height: 24px;

    margin-top: 18px;

    font-size: 12px;

    font-weight: 600;
}

.search-status.loading {
    color: #889c8e;
}

.search-status.success {
    color: #8eaf96;
}

.search-status.error {
    color: #bd837d;
}


/* =========================================================
   PERSONNEL RESULT
   ========================================================= */

.personnel-result {
    margin-top: 25px;

    padding: 25px;

    background:
        rgba(11, 20, 14, 0.85);

    border:
        1px solid rgba(89, 124, 96, 0.25);

    animation:
        resultEnter 0.3s ease;
}

@keyframes resultEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.result-status {
    color: #8fac95;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.result-check {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #49664f;

    background: #18281c;

    color: #9bb7a0;

    font-size: 15px;
}

.personnel-details {
    display: flex;

    align-items: center;

    gap: 18px;

    padding-bottom: 24px;

    border-bottom:
        1px solid rgba(104, 134, 110, 0.13);
}

.personnel-avatar {
    width: 60px;
    height: 60px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #18271d;

    border: 1px solid #405b46;

    color: #b6c9ba;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 1px;
}

.personnel-info .detail-label {
    display: block;

    margin-bottom: 3px;

    color: #65776b;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.personnel-info h3 {
    color: #e1ebe3;

    font-size: 19px;
}

.personnel-info p {
    color: #718177;

    font-size: 12px;
}

.details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 20px;
}

.detail-box {
    padding: 15px;

    background: #0b130e;

    border:
        1px solid rgba(89, 118, 96, 0.15);
}

.detail-box span {
    display: block;

    margin-bottom: 5px;

    color: #5f7065;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.detail-box strong {
    color: #b7c6bb;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   CHARACTER COUNT
   ========================================================= */

.character-count {
    margin-top: 7px;

    color: #56645b;

    font-size: 9px;

    text-align: right;
}


/* =========================================================
   REVIEW
   ========================================================= */

.review-container {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: rgba(90, 119, 96, 0.12);

    border:
        1px solid rgba(90, 119, 96, 0.12);
}

.review-block {
    min-height: 78px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 17px;

    background: #0c140f;
}

.review-block span,
.review-reason > span {
    margin-bottom: 5px;

    color: #5f7165;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.review-block strong {
    color: #c2cec5;

    font-size: 12px;
}

.review-reason {
    grid-column: 1 / -1;

    padding: 20px;

    background: #0c140f;

    border-top:
        1px solid rgba(90, 119, 96, 0.1);
}

.review-reason p {
    color: #9ba99f;

    font-size: 12px;

    line-height: 1.7;

    white-space: pre-wrap;

    word-break: break-word;
}


/* =========================================================
   FICTIONAL WARNING
   ========================================================= */

.fictional-warning {
    margin-top: 25px;

    padding: 18px 20px;

    border:
        1px solid rgba(139, 124, 72, 0.25);

    background:
        rgba(70, 62, 29, 0.12);
}

.fictional-warning strong {
    display: block;

    margin-bottom: 5px;

    color: #a89b69;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.fictional-warning p {
    color: #777561;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================================================
   SUCCESS CARD
   ========================================================= */

.success-card {
    padding: 65px 40px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #111d15,
            #0b130e
        );

    border:
        1px solid rgba(92, 128, 99, 0.28);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3);

    animation:
        successEnter 0.5s ease;
}

@keyframes successEnter {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #55745c;

    background: #1b3021;

    color: #b6cbb9;

    font-size: 30px;

    box-shadow:
        0 0 0 8px rgba(69, 105, 77, 0.06);
}

.success-card .section-label {
    margin-bottom: 10px;
}

.success-card h2 {
    color: #e3ede5;

    font-size: 30px;

    line-height: 1.25;
}

.success-card > p {
    max-width: 570px;

    margin: 14px auto 30px;

    color: #7f8f84;

    font-size: 13px;
}


/* =========================================================
   REFERENCE BOX
   ========================================================= */

.reference-box {
    max-width: 520px;

    margin: 0 auto 25px;

    padding: 20px;

    background: #0a110d;

    border:
        1px solid rgba(92, 128, 99, 0.23);
}

.reference-box span {
    display: block;

    margin-bottom: 7px;

    color: #64766a;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.7px;
}

.reference-box strong {
    color: #a9c0ad;

    font-size: 21px;

    letter-spacing: 1.5px;
}


/* =========================================================
   SUCCESS DETAILS
   ========================================================= */

.success-details {
    max-width: 620px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    margin: 0 auto 30px;

    border:
        1px solid rgba(91, 120, 97, 0.14);
}

.success-details > div {
    padding: 16px;

    background: #0d1610;
}

.success-details > div + div {
    border-left:
        1px solid rgba(91, 120, 97, 0.14);
}

.success-details span {
    display: block;

    margin-bottom: 5px;

    color: #5e7064;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.3px;
}

.success-details strong {
    color: #b8c7bc;

    font-size: 11px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 50px 0 25px;

    background: #060a07;

    border-top:
        1px solid rgba(102, 132, 108, 0.13);
}

.footer-content {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 35px;
}

.footer-brand .brand-symbol {
    width: 38px;
    height: 38px;
}

.footer-content > p {
    max-width: 300px;

    color: #56645b;

    font-size: 11px;

    line-height: 1.7;

    text-align: right;
}

.footer-bottom {
    padding-top: 20px;

    border-top:
        1px solid rgba(102, 132, 108, 0.1);

    color: #414d45;

    font-size: 9px;

    letter-spacing: 0.4px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

    .container {
        width: min(100% - 30px, 680px);
    }

    .transportation-hero {
        min-height: 340px;
    }

    .application-section {
        padding-top: 45px;
    }

    .application-card {
        padding: 25px;
    }

    .progress-step small {
        display: none;
    }

    .progress-line {
        margin: 0 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form .btn {
        width: 100%;
    }

    .review-container {
        grid-template-columns: 1fr;
    }

    .review-reason {
        grid-column: auto;
    }

    .success-details {
        grid-template-columns: 1fr;
    }

    .success-details > div + div {
        border-left: none;

        border-top:
            1px solid rgba(91, 120, 97, 0.14);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .container {
        width: calc(100% - 24px);
    }

    .navbar {
        height: 68px;
    }

    .brand-symbol {
        width: 36px;
        height: 36px;
    }

    .brand-text span {
        font-size: 15px;
    }

    .brand-text small {
        font-size: 7px;
    }

    .back-link {
        font-size: 11px;
    }

    .transportation-hero {
        min-height: 310px;
    }

    .transportation-hero-content {
        padding: 50px 0;
    }

    .transportation-hero h1 {
        font-size: 43px;

        letter-spacing: -1.5px;
    }

    .transportation-hero p {
        font-size: 12px;
    }

    .application-section {
        padding: 35px 0 65px;
    }

    .progress-wrapper {
        margin-bottom: 25px;
    }

    .progress-step span {
        width: 32px;
        height: 32px;

        font-size: 9px;
    }

    .progress-line {
        margin: 0 5px;
    }

    .application-card {
        padding: 20px 16px;
    }

    .card-header {
        gap: 15px;

        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .card-header h2 {
        font-size: 21px;
    }

    .card-header p {
        font-size: 11px;
    }

    .card-number {
        font-size: 40px;
    }

    .personnel-result {
        padding: 18px;
    }

    .personnel-details {
        align-items: flex-start;
    }

    .personnel-avatar {
        width: 48px;
        height: 48px;
    }

    .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .success-card {
        padding: 45px 20px;
    }

    .success-card h2 {
        font-size: 24px;
    }

    .reference-box strong {
        font-size: 17px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-content > p {
        text-align: left;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline:
        2px solid #77927c;

    outline-offset: 3px;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: #395541;
    color: #f0f5f1;
}