/* =====================================================
   ANAMIKA LOGISTICS
   VISITOR REGISTRATION PAGE
   VISITOR-SPECIFIC CSS ONLY
===================================================== */


/* =====================================================
   PAGE
===================================================== */

.visitor-page {
    background: #eef5fb;
    color: #172b4d;
    min-height: 100vh;
}


/* =====================================================
   HERO / BANNER
===================================================== */

.visitor-banner {
    position: relative;

    height: 570px;
    min-height: 570px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    box-sizing: border-box;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(7, 31, 61, 0.48),
            rgba(7, 31, 61, 0.48)
        ),
        url("../image/visitor-hero.jpg") center center / cover no-repeat;
}


/* =====================================================
   HERO DECORATIVE CIRCLES
===================================================== */

.visitor-banner::before {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.09);

    left: -175px;
    top: -155px;
}


.visitor-banner::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.09);

    right: -125px;
    bottom: -155px;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.visitor-banner-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1000px;

    margin: 0 auto;
}


/* =====================================================
   HERO TAG
===================================================== */

.visitor-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 18px;

    position: relative;
}


.visitor-tag::after {
    content: "";

    position: absolute;

    width: 48px;
    height: 3px;

    background: #e52b2f;

    border-radius: 10px;

    bottom: -11px;

    left: 50%;

    transform: translateX(-50%);
}


/* =====================================================
   HERO HEADING
===================================================== */

.visitor-banner h1 {
    color: #ffffff;

    font-size: clamp(42px, 5.5vw, 60px);

    line-height: 1.12;

    font-weight: 800;

    margin: 28px 0 18px;

    letter-spacing: -0.8px;

    text-shadow:
        0 3px 15px rgba(0, 0, 0, 0.20);
}


/* =====================================================
   HERO PARAGRAPH
===================================================== */

.visitor-banner p {
    color: rgba(255, 255, 255, 0.92);

    font-size: 17px;

    line-height: 1.7;

    max-width: 760px;

    margin: 0 auto;
}


/* =====================================================
   HERO FEATURE STRIP
===================================================== */

.visitor-banner-content::after {
    content:
        "Secure Visit Management     •     Quick Registration     •     Safe & Professional Workplace";

    display: block;

    margin-top: 36px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.6px;

    word-spacing: 6px;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.65),
        0 1px 2px rgba(0, 0, 0, 0.8);
}


/* =====================================================
   MAIN SECTION
===================================================== */

.visitor-main {
    position: relative;

    padding: 75px 28px 90px;

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(22, 115, 184, 0.08),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(214, 40, 40, 0.06),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #edf5fb 0%,
            #f9fbfd 50%,
            #edf5fb 100%
        );
}


/* =====================================================
   CONTAINER
===================================================== */

.visitor-container {
    width: min(1300px, 100%);

    margin: 0 auto;
}


/* =====================================================
   VISITOR INTRO / PAGE TITLE
   SAME STYLE AS SAFETY PAGE
===================================================== */

.visitor-section-title {
    text-align: center;

    margin-bottom: 50px;
}


/* =====================================================
   VISITOR MANAGEMENT LABEL
===================================================== */

.visitor-section-title > span {
    display: inline-block;

    color: #d62828;

    background: transparent;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    padding: 0;

    border-radius: 0;

    margin-bottom: 30px;
}

/* =====================================================
   REGISTER YOUR VISIT HEADING
===================================================== */

.visitor-section-title h2 {
    color: #0b2e59;

    font-size: clamp(38px, 4vw, 48px);

    line-height: 1.2;

    font-weight: 700;

    margin: 0 0 48px;

    letter-spacing: -0.8px;
}


/* =====================================================
   INFORMATION BOX
===================================================== */

.visitor-section-title p {
    position: relative;

    width: 100%;

    box-sizing: border-box;

    text-align: left;

    color: #536b86;

    background: #ffffff;

    font-size: 17px;

    line-height: 2;

    max-width: 100%;

    margin: 0;

    padding: 45px 48px 45px 50px;

    border: 1px solid #dce5ee;

    border-radius: 0 28px 28px 0;

    box-shadow:
        0 12px 35px rgba(16, 38, 70, 0.06);
}


/* =====================================================
   RED VERTICAL LINE
===================================================== */

.visitor-section-title p::before {
    content: "";

    position: absolute;

    left: -1px;

    top: 0;

    bottom: 0;

    width: 6px;

    background: #e52b2f;

    border-radius: 6px 0 0 6px;
}


/* =====================================================
   MAIN FORM CARD
===================================================== */

.visitor-card {
    position: relative;

    width: 100%;

    padding: 34px;

    border-radius: 22px;

    border: 3px solid transparent;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(240, 247, 253, 0.98)
        ) padding-box,

        linear-gradient(
            90deg,
            #0b2e59 0%,
            #1673b8 45%,
            #d62828 100%
        ) border-box;

    box-shadow:
        0 20px 55px rgba(16, 38, 70, 0.11),
        0 5px 18px rgba(16, 38, 70, 0.05);
}


/* No separate top line */

.visitor-card::before {
    display: none;
}


/* =====================================================
   FORM LAYOUT
===================================================== */

.visitor-form-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;
}


/* =====================================================
   FORM COLUMN CARDS
===================================================== */

.visitor-form-layout > div {
    padding: 27px;

    border-radius: 17px;

    border: 1px solid #d5e1ec;

    box-shadow:
        0 5px 18px rgba(16, 38, 70, 0.04);
}


/* =====================================================
   VISITOR DETAILS PANEL
===================================================== */

.visitor-form-layout > div:first-child {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fff7f8 100%
        );

    border-left: 3px solid #d62828;
}


/* =====================================================
   VISITOR PHOTO PANEL
===================================================== */

.visitor-form-layout > div:last-child {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f0f8fd 100%
        );

    border-left: 3px solid #0b2e59;
}


/* =====================================================
   SECTION HEADING
===================================================== */

.form-section-heading {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 25px;

    padding-bottom: 17px;

    border-bottom: 1px solid #dce5ee;

    position: relative;
}


.form-section-heading::after {
    content: "";

    position: absolute;

    bottom: -1px;

    left: 0;

    width: 55px;

    height: 2px;

    background: #d62828;

    border-radius: 5px;
}


/* =====================================================
   SECTION ICON
===================================================== */

.section-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #fff0f0,
            #ffe0e0
        );

    color: #d62828;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    box-shadow:
        0 5px 12px rgba(214, 40, 40, 0.08);
}


.form-section-heading h3 {
    color: #102f56;

    font-size: 19px;

    font-weight: 700;

    margin: 0;
}


.form-section-heading p {
    color: #84909d;

    font-size: 11px;

    margin: 2px 0 0;
}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    color: #233b5d;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 8px;
}


.form-group label span {
    color: #d62828;
}


/* =====================================================
   INPUTS
===================================================== */

.form-group input,
.form-group select {
    width: 100%;

    height: 50px;

    box-sizing: border-box;

    border: 1px solid #cddae6;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.98);

    color: #263c5b;

    padding: 0 15px;

    outline: none;

    font-family: inherit;

    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.form-group input::placeholder {
    color: #a1acb8;
}


.form-group select {
    cursor: pointer;
}


.form-group input:hover,
.form-group select:hover {
    border-color: #9fb4c8;

    background: #ffffff;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #1673b8;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(22, 115, 184, 0.10);
}


/* =====================================================
   CAMERA CONTAINER
===================================================== */

.camera-container {
    width: 100%;

    height: 310px;

    background:
        linear-gradient(
            145deg,
            #e9f3fa,
            #f8fbfd
        );

    border: 1.5px dashed #9eb7cb;

    border-radius: 13px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        inset 0 0 30px rgba(11, 46, 89, 0.035);
}


.camera-container::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background: rgba(11, 46, 89, 0.045);

    pointer-events: none;
}


/* =====================================================
   LIVE CAMERA
===================================================== */

#camera {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}


/* =====================================================
   CAPTURED PHOTO
===================================================== */

#photoPreview {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}


/* =====================================================
   CANVAS
===================================================== */

#photoCanvas {
    display: none;
}


/* =====================================================
   CAMERA PLACEHOLDER
===================================================== */

.camera-placeholder {
    position: relative;

    z-index: 2;

    text-align: center;

    color: #8b99a8;

    padding: 20px;
}


.camera-placeholder i {
    display: block;

    font-size: 48px;

    color: #aab9c8;

    margin-bottom: 13px;

    opacity: 0.85;
}


.camera-placeholder p {
    font-size: 12px;

    margin: 0;

    color: #7c8b9b;
}


/* =====================================================
   CAMERA BUTTONS
===================================================== */

.camera-buttons {
    display: flex;

    gap: 12px;

    margin-top: 15px;
}


.camera-btn {
    flex: 1;

    min-height: 47px;

    border: none;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.camera-btn.primary {
    background:
        linear-gradient(
            135deg,
            #0b2e59,
            #124678
        );

    color: #ffffff;

    box-shadow:
        0 7px 16px rgba(11, 46, 89, 0.16);
}


.camera-btn.primary:hover:not(:disabled) {
    background:
        linear-gradient(
            135deg,
            #082443,
            #0b3b66
        );

    transform: translateY(-2px);

    box-shadow:
        0 10px 20px rgba(11, 46, 89, 0.20);
}


.camera-btn.secondary {
    background:
        linear-gradient(
            135deg,
            #e52b2f,
            #c91f24
        );

    color: #ffffff;

    box-shadow:
        0 7px 16px rgba(214, 40, 40, 0.15);
}


.camera-btn.secondary:hover:not(:disabled) {
    background:
        linear-gradient(
            135deg,
            #c91f24,
            #a9191d
        );

    transform: translateY(-2px);

    box-shadow:
        0 10px 20px rgba(214, 40, 40, 0.20);
}


.camera-btn:disabled {
    opacity: 0.45;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =====================================================
   CAMERA NOTE
===================================================== */

.camera-note {
    color: #84909d;

    font-size: 10px;

    line-height: 1.5;

    margin: 11px 0 0;

    text-align: center;
}


.camera-note i {
    color: #d62828;

    margin-right: 4px;
}


/* =====================================================
   SUBMIT SECTION
===================================================== */

.visitor-submit {
    text-align: center;

    margin-top: 30px;

    padding-top: 28px;

    border-top: 1px solid #d5e1ec;
}


/* =====================================================
   GENERATE VISITOR PASS
===================================================== */

.generate-pass-btn {
    min-width: 285px;

    min-height: 54px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #e52b2f,
            #c91f24
        );

    color: #ffffff;

    padding: 0 32px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    box-shadow:
        0 9px 22px rgba(214, 40, 40, 0.22);
}


.generate-pass-btn:hover:not(:disabled) {
    background:
        linear-gradient(
            135deg,
            #c91f24,
            #a9191d
        );

    transform: translateY(-2px);

    box-shadow:
        0 13px 28px rgba(214, 40, 40, 0.27);
}


.generate-pass-btn:active:not(:disabled) {
    transform: translateY(0);
}


.generate-pass-btn:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =====================================================
   SUBMIT NOTE
===================================================== */

.submit-note {
    color: #8a97a5;

    font-size: 10px;

    margin: 11px 0 0;
}


/* =====================================================
   FORM MESSAGE
===================================================== */

.form-message {
    display: none;

    margin-top: 18px;

    padding: 13px 16px;

    border-radius: 8px;

    text-align: center;

    font-size: 12px;
}


.form-message.success {
    display: block;

    color: #176b36;

    background: #eaf8ef;

    border: 1px solid #c8ebd4;
}


.form-message.error {
    display: block;

    color: #a61b1b;

    background: #fff0f0;

    border: 1px solid #f2caca;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .visitor-form-layout {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .visitor-form-layout > div {
        padding: 24px;
    }


    .camera-container {
        height: 320px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .visitor-banner {
        height: 430px;
        min-height: 430px;

        padding: 70px 20px;
    }


    .visitor-banner h1 {
        font-size: 38px;

        margin: 22px 0 20px;
    }


    .visitor-banner p {
        font-size: 14px;
    }


    .visitor-banner-content::after {
        font-size: 10px;

        line-height: 2;

        max-width: 360px;

        margin-left: auto;

        margin-right: auto;
    }


    .visitor-main {
        padding: 55px 15px 70px;
    }


    .visitor-section-title {
        margin-bottom: 35px;
    }


    .visitor-section-title > span {
        font-size: 10px;

        padding: 8px 15px;

        margin-bottom: 22px;
    }


    .visitor-section-title h2 {
        font-size: 34px;

        margin-bottom: 32px;
    }


    .visitor-section-title p {
        font-size: 14px;

        line-height: 1.8;

        padding: 28px 25px 28px 30px;

        border-radius: 0 18px 18px 0;
    }


    .visitor-section-title p::before {
        width: 4px;
    }


    .visitor-card {
        padding: 18px;

        border-radius: 17px;
    }


    .visitor-form-layout > div {
        padding: 20px 17px;

        border-radius: 13px;
    }


    .camera-container {
        height: 280px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 576px) {

    .visitor-banner {
        height: 380px;
        min-height: 380px;

        padding: 60px 15px;
    }


    .visitor-banner h1 {
        font-size: 31px;

        letter-spacing: 0;

        margin: 20px 0 18px;
    }


    .visitor-banner p {
        font-size: 13px;
    }


    .visitor-banner-content::after {
        content:
            "Secure Visit Management • Quick Registration • Safe Workplace";

        font-size: 9px;

        word-spacing: 2px;
    }


    .visitor-main {
        padding: 45px 12px 60px;
    }


    .visitor-section-title h2 {
        font-size: 28px;
    }


    .visitor-section-title p {
        font-size: 13px;

        line-height: 1.8;

        padding: 23px 20px 23px 25px;
    }


    .visitor-card {
        padding: 13px;

        border-radius: 14px;
    }


    .visitor-form-layout > div {
        padding: 18px 14px;
    }


    .form-section-heading h3 {
        font-size: 17px;
    }


    .form-section-heading p {
        font-size: 10px;
    }


    .camera-container {
        height: 250px;
    }


    .camera-buttons {
        flex-direction: column;
    }


    .camera-btn {
        width: 100%;
    }


    .generate-pass-btn {
        width: 100%;

        min-width: 0;
    }

}

/* =====================================================
   A6 VISITOR PASS PRINT SPECIFICATION
   Physical size: 105mm x 148mm (A6 portrait)
   Used by the visitor pass / local print service.
===================================================== */

@page {
    size: A6 portrait;
    margin: 0;
}

/*
 * The registration page itself is not intended to be printed.
 * If a browser print fallback is used, only .a6-visitor-pass
 * will be printed.
 */
@media print {

    html,
    body {
        width: 105mm !important;
        height: 148mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .a6-visitor-pass,
    .a6-visitor-pass * {
        visibility: visible !important;
    }

    .a6-visitor-pass {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 105mm !important;
        height: 148mm !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Shared A6 pass sizing for any page that renders the pass */
.a6-visitor-pass {
    width: 105mm;
    height: 148mm;
    min-width: 105mm;
    max-width: 105mm;
    min-height: 148mm;
    max-height: 148mm;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
    padding: 6mm;
    background: #ffffff;
    color: #172b4d;
    font-family: Arial, Helvetica, sans-serif;
}

.a6-visitor-pass * {
    box-sizing: border-box;
}

/* ==========================================
   VISITOR PAGE - SAME DESKTOP NAVBAR
   ========================================== */

@media (min-width: 993px) {

    .header .nav-container {
        width: 98%;
        max-width: 1400px;
        height: 80px;
        margin: auto;
        display: flex;
        align-items: center;
    }

    /* LOGO */
    .header .logo {
        flex: 0 0 205px;
        display: flex;
        align-items: center;
    }

    .header .logo img {
        width: 285px;
        max-width: none;
        height: auto;
        margin-left: -10px;
    }

    /* MENU */
    .header .navbar {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-left: 0;
    }

    .header .nav-list {
        display: flex;
        align-items: center;
        gap: 25px;
        width: auto;
    }

    .header .nav-list > li > a {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 27px 0;
        color: #111;
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    .header .nav-list > li > a:hover {
        color: #D62828;
    }

    /* GET A QUOTE */
    .header .desktop-btn {
        flex-shrink: 0;
        margin-left: 20px;
        width: 138px;
        min-width: 138px;
        height: 54px;
        padding: 0 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
    }

    /* DROPDOWN */
    .header .dropdown-menu {
        top: 100%;
        left: 0;
        min-width: 235px;
        padding: 8px 0 !important;
        margin-top: 0;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #eee;
        box-shadow: 0 12px 30px rgba(0,0,0,.14);
        overflow: hidden;
    }

    .header .dropdown-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .header .dropdown-menu li a {
        width: 100%;
        min-height: 46px;
        padding: 12px 18px !important;
        display: flex;
        align-items: center;
        color: #0B2E59;
        background: #fff;
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
    }

    .header .dropdown-menu li a:hover {
        background: #f5f8fc;
        color: #D62828;
        padding-left: 22px !important;
    }
}