﻿:root {
    --primary: #3E2236;
    --primary-dark: #2A1725;
    --primary-light: #55304B;
    --primary-lighter: #7A4A6D;
    --primary-tint: #F1E6ED;
    --secondary: #D8B57E;
    --secondary-soft: #FAF5EE;
    --foreground: #F5ECDE;
    --white: #FFFFFF;
    --danger: #EE3124;
    --success: #30D143;
    --paper: #FFFDF8;
    --ink: #241820;
    --ink-soft: #6B5B65;
    --line: #E0D3C0;
    --brick: #a8482f;
    --brick-soft: #f5e3dc;
    --ok: #2e6b4f;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(42, 23, 37, 0.06), 0 8px 24px -12px rgba(42, 23, 37, 0.18);
    --card-shadow: 0 2px 15px rgba(56, 65, 74, 0.07);
    --icon-background: #F5ECDE;
}

* {
    font-family: "Ubuntu", sans-serif;
}

html {
    height: 100%;
}

body {
    background: var(--secondary-soft);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.topbar {
    background: var(--primary);
    padding: 0.9rem 1.75rem;
}

.brand-mark {
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 1.15rem;
    line-height: 1.1;
}

.brand-sub {
    color: #d8c9c9;
    font-size: 0.55rem;
    letter-spacing: 0.4px;
}

.pill-btn {
    background: var(--secondary-soft);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
}

.pill-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
}

.avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Sidebar */
.sidebar {
    background: var(--foreground);
    min-height: calc(100vh - 66px);
    border-right: 1px solid #ece0cf;
    padding: 1.75rem 1.25rem;
    flex-shrink: 0;
}

.portal-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.portal-sub {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

.btn-new-request {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    border: none;
    margin-bottom: 1.75rem;
}

    .btn-new-request:hover {
        background: var(--primary-dark);
        color: #fff;
    }

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.6rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

    .nav-link-custom:hover {
        background: #f0e4d0;
        color: var(--ink);
    }

    .nav-link-custom.active {
        background: var(--secondary);
        color: var(--primary-dark);
    }

.sidebar-bottom {
    border-top: 1px solid #e6d7bf;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Main content */
.main-content {
    flex: 1 0 auto;
    padding: 3rem 3.5rem;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 1px 1px, rgba(62, 34, 54, 0.06) 1px, transparent 0);
    background-size: 22px 22px;
}

.eyebrow {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    text-align: center;
}

.page-title {
    font-weight: 800;
    font-size: 2.6rem;
    text-align: center;
}

.page-desc {
    color: var(--ink-soft);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem auto;
}

/* Option cards */
.option-card {
    border: 1.5px solid #e6ded2;
    border-radius: 0.9rem;
    padding: 1.75rem;
    height: 100%;
    cursor: pointer;
    transition: 0.15s ease;
    position: relative;
    background: var(--white);
    box-shadow: var(--card-shadow);
    -webkit-transition: all .4s;
    transition: all .4s;
}

    .option-card:hover {
        border-color: var(--secondary-soft);
        -webkit-transform: translateY(calc(var(--vz-grid-gutter-width) * -.15));
        transform: translateY(calc(1.5rem * -.15));
        -webkit-box-shadow: 0 5px 10px rgba(30, 32, 37, .12);
        box-shadow: 0 5px 10px rgba(30, 32, 37, .12);
    }

    .option-card.selected {
        border-color: var(--secondary);
        box-shadow: 0 0 0 1px var(--secondary);
        background: #FFFFFF;
    }

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-background);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.option-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.option-desc {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.landing-card-link {
    color: var(--secondary);
    margin-top: 1rem;
    font-weight: bold;
}

.radio-check {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d8cdbc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    background: #fff;
    transition: 0.15s ease;
}

.option-card.selected .radio-check {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--secondary);
}

/* Company box show/hide */
.company-box {
    display: none;
}

    .company-box.show {
        display: block;
    }

/* Select field icon */
.select-icon-wrap {
    position: relative;
}

    .select-icon-wrap .select-field-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--primary);
        font-size: 1.05rem;
        display: flex;
        align-items: center;
    }

.company-select {
    padding-left: 2.75rem !important;
}

.rate-badge {
    background: var(--secondary-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-right: 0.5rem;
}

/* Company select box */
.company-box {
    border: 1px solid #e6ded2;
    border-radius: 0.9rem;
    padding: 1.75rem;
    background: var(--white);
}

    .company-box label {
        font-weight: 700;
        margin-bottom: 0.75rem;
        display: block;
    }

.company-select {
    background: var(--paper);
    border: 1px solid #cccccc;
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
}

.company-select-icon {
    color: var(--primary);
}

.helper-text {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.or-divider {
    text-align: center;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    margin: 1.75rem 0;
}

    .or-divider::before,
    .or-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 42%;
        border-top: 1px solid #e6ded2;
    }

    .or-divider::before {
        left: 0;
    }

    .or-divider::after {
        right: 0;
    }

.last-pass-box {
    border: 1px solid #e6ded2;
    background: var(--white);
    border-radius: 0.9rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.last-pass-icon {
    width: 46px;
    height: 46px;
    background: var(--icon-background);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
}

.btn-last-pass {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.65rem 1.4rem;
    border: none;
    white-space: nowrap;
}

    .btn-last-pass:hover {
        background: var(--primary-dark);
        color: #fff;
    }

.last-pass-fields {
    width: 100%;
    display: none;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1.5px dashed rgba(42, 23, 37, 0.18);
}

    .last-pass-fields.show {
        display: flex;
    }

.last-pass-input {
    flex: 1 1 220px;
    background: var(--white);
    border: 1px solid rgba(42, 23, 37, 0.15);
    border-radius: 0.6rem;
    padding: 0.7rem 1rem;
    color: var(--ink);
    font-size: 0.95rem;
}

    .last-pass-input::placeholder {
        color: var(--ink-soft);
    }

    .last-pass-input:focus {
        outline: none;
        border-color: var(--secondary);
        box-shadow: 0 0 0 3px rgba(216, 181, 126, 0.25);
    }

.btn-retrieve {
    background: var(--secondary);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 0.6rem;
    padding: 0.7rem 1.4rem;
    border: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

    .btn-retrieve:hover {
        background: var(--secondary-deep, var(--secondary));
        color: var(--primary-dark);
    }

.btn-continue {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.75rem 1.6rem;
    border: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 2px rgba(42, 23, 37, 0.06);
}

    .btn-continue:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px -10px rgba(42, 23, 37, 0.5);
    }

    .btn-continue:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px -2px rgba(42, 23, 37, 0.45);
        transition: background 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
    }

.btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-continue:hover .btn-arrow {
    transform: translateX(4px);
}

footer {
    flex-shrink: 0;
    border-top: 1px solid #eee;
    padding: 1.25rem 2rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

    footer a {
        color: var(--ink-soft);
        text-decoration: none;
        margin-left: 1.5rem;
    }

        footer a:hover {
            color: var(--primary);
        }

/* ===== Step 2: Gate pass request form ===== */
.step2-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.step2-title {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.step2-subtitle {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.badge-pill {
    background: var(--secondary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.form-section {
    border: 1px solid #ece2d2;
    border-radius: 1rem;
    padding: 2rem;
    background: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(42, 23, 37, 0.04), 0 10px 28px -18px rgba(42, 23, 37, 0.18);
}

.form-section-title {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-section-desc {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
}

.field-group {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.field-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.1px;
}

.field-badge {
    background: var(--secondary-soft);
    color: var(--secondary-deep, var(--primary));
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.2px;
}

.help-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-soft);
    color: var(--primary);
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: help;
    flex: 0 0 auto;
}

.field-input,
.field-select {
    width: 100%;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.8rem 1.05rem;
    color: var(--ink);
    font-size: 0.95rem;
    min-height: 50px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%233E2236' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.05rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

    .field-input:hover,
    .field-select:hover {
        border-color: var(--secondary);
    }

.field-input::placeholder {
    color: var(--ink-soft);
}

.field-input:focus,
.field-select:focus {
    outline: none;
    background: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(216, 181, 126, 0.22);
}

.field-input[readonly] {
    color: var(--ink-soft);
    background: var(--secondary-soft);
    cursor: not-allowed;
}

.searchable-select {
    position: relative;
}

.searchable-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    box-shadow: 0 16px 32px -14px rgba(42, 23, 37, 0.3);
    max-height: 230px;
    overflow-y: auto;
    padding: 0.4rem;
    display: none;
}

    .searchable-select-menu.show {
        display: block;
    }

.searchable-select-option {
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

    .searchable-select-option:hover,
    .searchable-select-option.is-active {
        background: var(--secondary-soft);
        color: var(--primary);
    }

.searchable-select-no-results {
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

input[type="date"].field-input {
    cursor: pointer;
}

    input[type="date"].field-input::-webkit-calendar-picker-indicator {
        filter: invert(14%) sepia(23%) saturate(1553%) hue-rotate(288deg) brightness(93%) contrast(92%);
        cursor: pointer;
    }

.field-required {
    color: var(--brick);
    margin-inline-start: 0.15rem;
}

.segmented-toggle {
    display: flex;
    gap: 0.75rem;
}

.segmented-toggle-btn {
    flex: 1 1 0;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

    .segmented-toggle-btn:hover {
        border-color: var(--secondary);
    }

    .segmented-toggle-btn.selected {
        background: var(--primary-tint);
        border-color: var(--primary-light);
        color: var(--primary-dark);
    }

.upload-dropzone {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1.5px dashed var(--line);
    border-radius: 0.7rem;
    background: var(--paper);
    min-height: 50px;
    padding: 1.1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .upload-dropzone:hover {
        border-color: var(--secondary);
        background: var(--secondary-soft);
    }

    .upload-dropzone .upload-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        line-height: 1;
    }

    .upload-dropzone .upload-title {
        font-weight: 700;
        color: var(--ink);
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .upload-dropzone .upload-sub {
        font-size: 0.78rem;
        color: var(--ink-soft);
        line-height: 1.3;
    }

    .upload-dropzone.is-dragover {
        border-color: var(--secondary);
        background: var(--secondary-soft);
    }

    .upload-dropzone.has-error {
        border-color: var(--brick);
        background: var(--brick-soft);
    }

.upload-file-list {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.upload-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.upload-file-item-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: var(--ink);
    font-weight: 600;
}

    .upload-file-item-name .upload-file-icon {
        flex: 0 0 auto;
        color: var(--primary);
    }

    .upload-file-item-name .upload-file-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.upload-file-item-remove {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .upload-file-item-remove:hover {
        background: var(--brick-soft);
        color: var(--brick);
    }

.upload-error-text {
    color: var(--brick);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.add-person-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: transparent;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary);
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .add-person-btn .plus-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--secondary-soft);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        line-height: 20px;
        font-weight: 800;
    }

    .add-person-btn:hover {
        background: var(--secondary-soft);
        border-color: var(--secondary);
    }

.step2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.step2-footer-note {
    color: var(--ink-soft);
    font-size: 0.85rem;
    max-width: 520px;
}

.step2-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.btn-reset {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--line);
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.75rem 1.4rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .btn-reset:hover {
        background: var(--secondary-soft);
        border-color: var(--secondary);
        color: var(--primary);
        transform: translateY(-1px);
    }

    .btn-reset:active {
        transform: translateY(0);
    }

.d-none-step {
    display: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--foreground);
    border: 1px solid var(--line);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

    .btn-back:hover {
        background: var(--secondary-soft);
        border-color: var(--secondary);
    }

/* Progress stepper */
.progress-stepper {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 1.75rem;
    border-radius: 0.7rem;
    overflow: hidden;
}

.progress-step {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.25rem 0.9rem 2.4rem;
    background: var(--white);
    color: var(--ink-soft);
    margin-left: -18px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}

    .progress-step:first-child {
        margin-left: 0;
        padding-left: 1.25rem;
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    }

    .progress-step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
    }

.progress-step-num {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    flex: 0 0 auto;
}

.progress-step-label {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

.progress-step.is-current {
    background: var(--primary);
    color: #fff;
}

    .progress-step.is-current .progress-step-num {
        color: #fff;
    }

.progress-step.is-complete {
    background: var(--secondary);
    color: var(--primary-dark);
}

    .progress-step.is-complete .progress-step-num {
        color: var(--primary-dark);
    }

.progress-step.is-upcoming {
    background: var(--secondary);
    color: var(--ink);
}

/* Confirm & submit modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 24, 32, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

    .modal-overlay.show {
        display: flex;
    }

.modal-card {
    background: var(--paper);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px -20px rgba(36, 24, 32, 0.45);
}

.modal-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.modal-info-box {
    background: var(--secondary-soft);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    color: var(--ink);
    font-size: 0.87rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-modal-cancel {
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--line);
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.65rem 1.4rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .btn-modal-cancel:hover {
        background: var(--secondary-soft);
        border-color: var(--secondary);
        transform: translateY(-1px);
    }

.btn-modal-agree {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.6rem;
    padding: 0.65rem 1.4rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 2px rgba(42, 23, 37, 0.06);
}

    .btn-modal-agree:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 22px -10px rgba(42, 23, 37, 0.5);
    }

    .btn-modal-agree:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px -2px rgba(42, 23, 37, 0.45);
        transition: background 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
    }

/* Step 3: Success confirmation */
.success-wrap {
    max-width: 520px;
    margin: 2rem auto 0;
}

.success-card {
    background: var(--paper);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(42, 23, 37, 0.05), 0 20px 45px -22px rgba(42, 23, 37, 0.25);
    overflow: visible;
}

.success-card-top {
    padding: 2.5rem 2rem 1.75rem;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 8px var(--secondary-soft);
}

.success-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.success-subtitle {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.success-request-pill {
    display: inline-flex;
    background: var(--secondary-soft);
    border: 1px solid var(--line);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.success-divider {
    position: relative;
    border-top: 1.5px dashed var(--line);
}

    .success-divider::before,
    .success-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--foreground);
        border: 1px solid var(--line);
    }

    .success-divider::before {
        left: -13px;
    }

    .success-divider::after {
        right: -13px;
    }

.success-card-bottom {
    padding: 1.75rem 2rem 2rem;
}

.success-feature {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.success-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    background: var(--secondary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 auto;
}

.success-feature-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.success-feature-desc {
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.4;
}

.success-terms-wrap {
    text-align: center;
    margin-top: 0.5rem;
}

.btn-terms {
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--line);
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.6rem 1.3rem;
    font-size: 0.88rem;
}

    .btn-terms:hover {
        background: var(--secondary-soft);
        border-color: var(--secondary);
    }

.success-cta-wrap {
    text-align: center;
    margin: 1.75rem 0 1rem;
}

/* Service detail page */
.service-page-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.service-card {
    border: 1px solid #ece2d2;
    border-radius: 1rem;
    background: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(42, 23, 37, 0.04), 0 10px 28px -18px rgba(42, 23, 37, 0.18);
    overflow: hidden;
    position: relative;
}

.service-card-header {
    background: var(--foreground);
    padding: 1rem 1.5rem;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: background 0.2s ease;
}

    .service-card-header.collapsible {
        cursor: pointer;
        user-select: none;
    }

        .service-card-header.collapsible:hover {
            background: var(--secondary);
        }

.service-card-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-card-header-icon {
    width: 26px;
    height: 26px;
    border-radius: 0.4rem;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.service-card-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.service-card-body {
    padding: 1.5rem;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.75;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

    .service-card-body p {
        margin-bottom: 1rem;
    }

        .service-card-body p:last-child {
            margin-bottom: 0;
        }

    .service-card-body.collapsed {
        display: none;
    }

.service-card-header.collapsible.is-collapsed .service-card-toggle {
    transform: rotate(180deg);
}

.pdf-download-badge {
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--brick-soft);
    color: var(--brick);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 6px 16px -8px rgba(42, 23, 37, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

    .pdf-download-badge:hover {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 10px 20px -8px rgba(42, 23, 37, 0.4);
    }

/* ==========================================================================
   RTL (Arabic) overrides — mirrors physical left/right, positions, icons,
   and chevron shapes for [dir="rtl"] documents. Logical Bootstrap utilities
   (flex, gap, justify-content, margin/padding start-end) already mirror
   automatically and need no override here.
   ========================================================================== */
[dir="rtl"] {
    text-align: right;
}

    [dir="rtl"] .sidebar {
        border-right: none;
        border-left: 1px solid #ece0cf;
    }

    [dir="rtl"] .radio-check {
        right: auto;
        left: 1.5rem;
    }

    [dir="rtl"] .select-icon-wrap .select-field-icon {
        left: auto;
        right: 1rem;
    }

    [dir="rtl"] .company-select {
        padding-left: 1rem !important;
        padding-right: 2.75rem !important;
    }

    [dir="rtl"] .rate-badge {
        margin-right: 0;
        margin-left: 0.5rem;
    }

    [dir="rtl"] .or-divider::before {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .or-divider::after {
        right: auto;
        left: 0;
    }

    [dir="rtl"] footer a {
        margin-left: 0;
        margin-right: 1.5rem;
    }

    [dir="rtl"] .form-section-desc {
        padding-left: 0;
        padding-right: 1rem;
    }

    [dir="rtl"] .field-select {
        background-position: left 1.05rem center;
        padding-right: 1.05rem;
        padding-left: 2.75rem;
    }

    [dir="rtl"] .progress-step {
        margin-left: 0;
        margin-right: -18px;
        padding: 0.9rem 2.4rem 0.9rem 1.25rem;
        clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
    }

        [dir="rtl"] .progress-step:first-child {
            margin-right: 0;
            padding-right: 1.25rem;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
        }

        [dir="rtl"] .progress-step:last-child {
            clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
        }

    [dir="rtl"] .pdf-download-badge {
        right: auto;
        left: -18px;
    }

    [dir="rtl"] .btn-continue:hover .btn-arrow {
        transform: translateX(-4px);
    }

    [dir="rtl"] .field-input,
    [dir="rtl"] .field-select,
    [dir="rtl"] .last-pass-input,
    [dir="rtl"] .company-select {
        text-align: right;
    }

        [dir="rtl"] .field-input[readonly] {
            text-align: right;
        }

/* Language toggle button (topbar) */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 0.45rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .lang-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.8);
        color: #fff;
    }

    .lang-toggle-btn .lang-toggle-icon {
        font-size: 0.95rem;
        line-height: 1;
    }

/* Request status page */
.status-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-page-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.status-page-subtitle {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.80rem;
    letter-spacing: 0.4px;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    white-space: nowrap;
}

    .status-badge.is-pending {
        background: var(--secondary);
        color: var(--secondary-deep, var(--primary));
    }

    .status-badge.is-approved {
        background: rgba(46, 107, 79, 0.12);
        color: var(--ok);
    }

    .status-badge.is-rejected {
        background: var(--brick-soft);
        color: var(--brick);
    }

/* Applicant info rows */
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-row-label {
    color: var(--ink-soft);
}

.info-row-value {
    font-weight: 700;
    color: var(--ink);
}

/* Visitor summary cards */
.visitor-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.visitor-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem 1.5rem;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(42, 23, 37, 0.03);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

    .visitor-card:hover {
        box-shadow: 0 12px 28px -16px rgba(42, 23, 37, 0.25);
        border-color: var(--secondary-soft);
        transform: translateY(-1px);
    }

.visitor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.visitor-card-identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.visitor-card-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 0.1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visitor-card-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    flex: 0 0 auto;
}

.visitor-card-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.visitor-card-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

    .visitor-card-action-btn svg {
        width: 15px;
        height: 15px;
    }

    .visitor-card-action-btn:hover {
        background: var(--secondary-soft);
        color: var(--primary);
        transform: translateY(-1px);
    }

    .visitor-card-action-btn:active {
        transform: translateY(0);
    }

    .visitor-card-action-btn.is-delete:hover {
        background: var(--brick-soft);
        color: var(--brick);
    }

/* Payment section */
.payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--secondary-soft);
    border-radius: 0.8rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.payment-amount-label {
    color: var(--ink-soft);
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.payment-amount-value {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.payment-detail-table {
    width: 100%;
    font-size: 0.88rem;
}

    .payment-detail-table tr {
        border-bottom: 1px solid var(--line);
    }

        .payment-detail-table tr:last-child {
            border-bottom: none;
        }

    .payment-detail-table td {
        padding: 0.6rem 0;
    }

        .payment-detail-table td:last-child {
            text-align: end;
            font-weight: 700;
        }

    .payment-detail-table tr.total-row td {
        font-weight: 800;
        color: var(--primary-dark);
        padding-top: 0.8rem;
    }

/* Attachments grid */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.attachment-thumb {
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: var(--paper);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .attachment-thumb:hover {
        border-color: var(--secondary);
        transform: translateY(-2px);
    }

.attachment-thumb-icon {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    background: var(--secondary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.attachment-thumb-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
}
/* Standalone landing page (no sidebar) */
.landing-topbar-accent {
    height: 4px;
    background: var(--secondary);
    margin: -3rem -3.5rem 3rem;
    width: calc(100% + 7rem);
}

.landing-page {
    display: flex;
    justify-content: center;
}

.landing-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .main-content {
        padding: 2.5rem 2rem;
    }

    .landing-topbar-accent {
        margin: -2.5rem -2rem 2.5rem;
        width: calc(100% + 4rem);
    }

    .page-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 767px) {
    .topbar {
        flex-wrap: wrap;
        row-gap: 0.6rem;
        padding: 0.75rem 1rem;
    }

        .topbar .d-flex.align-items-center.gap-2:last-child {
            flex-wrap: wrap;
            justify-content: flex-end;
            row-gap: 0.5rem;
        }

    .main-content {
        padding: 2rem 1.25rem;
    }

    .landing-topbar-accent {
        margin: -2rem -1.25rem 2rem;
        width: calc(100% + 2.5rem);
    }

    .page-title {
        font-size: 1.65rem;
    }

    .page-desc {
        font-size: 0.92rem;
    }

    .eyebrow {
        font-size: 0.72rem;
    }

    .option-card.landing-card {
        padding: 1.35rem;
    }
}

@media (max-width: 480px) {
    .pill-btn,
    .pill-btn-outline {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .lang-toggle-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.4rem;
    }
}

/* Standalone gate pass request page (no sidebar) */
.page-content-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.progress-stepper-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 991px) {
    .step2-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .step2-footer-actions {
        width: 100%;
    }

        .step2-footer-actions .btn-reset,
        .step2-footer-actions .btn-continue {
            flex: 1 1 0;
        }
}

@media (max-width: 767px) {
    .progress-stepper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0.7rem;
    }

    .progress-step {
        flex: 0 0 auto;
        min-width: 130px;
    }

        .progress-step:first-child {
            min-width: 120px;
        }

    .step2-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-page-header,
    .step2-header {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .step2-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
