/* =========================================================
   CHECK-VISA.CSS — Moldova eVisa Verification Page
   ========================================================= */

/* =========================================================
   GLOBAL RESET
   ========================================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #333;
    font-size: 14px;
}

/* =========================================================
   PAGE CONTAINER
   ========================================================= */
.page-container {
    width: 960px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    width: 100%;
    background: #2f65a7;
    position: relative;
}

.header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fallback header when header-banner.png is unavailable */
.default-header {
    background: linear-gradient(to right, #1e4c86 0%, #2f65a7 50%, #3c78b4 100%);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.default-header .left-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.default-header .emblem {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.default-header .titles h1 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.default-header .titles h2 {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: normal;
    opacity: 0.9;
}

.default-header .visa-logo {
    text-align: right;
}

.default-header .visa-logo .visa-text {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
}

.default-header .visa-logo .moldova-text {
    font-size: 12px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

.default-header .flags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: flex-end;
}

.default-header .flags span {
    font-size: 16px;
}

/* =========================================================
    NAVBAR — sizing and single-line layout
   ========================================================= */
.navbar {
    display: flex;
    background: #2f65a7;
    padding: 0;
    margin: 0;
    width: 100%;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    align-items: stretch;
}

/* ---- Container for each navigation item ---- */
.navbar .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.navbar .nav-item:last-child {
    border-right: none;
}

/* =========================================================
    Navigation item widths (total 100%)
   ========================================================= */
.navbar .nav-item:nth-child(1) { flex: 0 0 11%; }   /* START */
.navbar .nav-item:nth-child(2) { flex: 0 0 17%; }   /* DO I NEED A VISA? */
.navbar .nav-item:nth-child(3) { flex: 0 0 13%; }   /* APPLY NOW */
.navbar .nav-item:nth-child(4) { flex: 0 0 19%; }   /* CONTINUE APPLICATION */
.navbar .nav-item:nth-child(5) { flex: 0 0 27%; }   /* CHECK YOUR APPLICATION STATUS */
.navbar .nav-item:nth-child(6) { flex: 0 0 13%; }   /* CHECK VISA */

/* =========================================================
    Colored bars above each navigation item
   ========================================================= */
.navbar .nav-color {
    display: block;
    width: 95%;
    height: 8px;                          /* Bar height */
    flex-shrink: 0;
    margin: 14px auto 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
}

/* =========================================================
    Navigation bar colors
   ========================================================= */
.c1 { background: #f5c234; }              /* START — yellow */
.c2 { background: #7d2ae8; }              /* DO I NEED A VISA? — purple */
.c3 { background: #A9C33B; }              /* APPLY NOW — light green */
.c4 { background: #48c3d1; }              /* CONTINUE APPLICATION — cyan */
.c5 { background: #c1272d; }              /* CHECK YOUR APPLICATION STATUS — dark red */
.c6 { background: #f5c234; }              /* CHECK VISA — yellow */

/* =========================================================
    Navigation text — single-line layout
   ========================================================= */
.navbar .nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 4px;                        /* Space below the color bar */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.3px;
    min-height: 46px;
    flex: 1;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
}

.navbar .nav-item a:hover {
    background: #1e4c86;
}

/* =========================================================
    Override legacy menu-color classes
   ========================================================= */
.navbar .nav-item {
    background: transparent !important;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 330px;
    background: #fff;
    align-items: flex-start;
}

/* =========================================================
   LEFT SIDEBAR
   ========================================================= */
.leftbox {
    width: 220px;
    flex: 0 0 220px;
    height: 330px;
    background: transparent;
    padding: 32px 0 0 7px;
    border: none;
    position: relative;
}

/* Sidebar main box */
.leftbox::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 32px;
    width: 198px;
    height: 94px;
    border: 1px solid #444;
    background: #fff;
    z-index: 0;
}

/* Blue vertical bar */
.leftbox::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 32px;
    width: 14px;
    height: 94px;
    background: #2f65a7;
    z-index: 2;
}

/* Sidebar title */
.leftbox .sidebar-title {
    position: relative;
    z-index: 3;
    width: 185px;
    margin: 5px 0 5px 25px;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: normal;
    color: #222;
}

/* Sidebar buttons */
.leftbox .sidebar-btn {
    position: relative;
    z-index: 3;
    display: block;
    width: 172px;
    margin-left: 25px;
    margin-bottom: 4px;
    padding: 4px 8px;
    background: #3c78b4;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.15;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.leftbox .sidebar-btn:hover {
    background: #2f65a7;
}

/* =========================================================
   SEEKING VISA CONTENT
   ========================================================= */
.content {
    flex: 1;
    padding: 21px 0 0 0;
    background: transparent;
    position: relative;
}

/* Top dotted line */
.content::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 0;
    width: 670px;
    border-top: 1px dashed #3c78b4;
}

/* Heading */
.content h2 {
    margin: 39px 0 2px 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 16px;
    color: #111;
    font-weight: bold;
    border: none;
}

/* Heading line */
.content .divider {
    width: 550px;
    height: 1px;
    margin: 0;
    border-bottom: 1px solid #c7c7c7;
}

/* =========================================================
   VISA FORM BOX
   ========================================================= */
.visa-form-box {
    width: 552px;
    height: 240px;
    background: #d9eeee;
    border: 1px solid #999;
    display: flex;
    position: relative;
    box-sizing: border-box;
    margin-top: 6px;
}

/* Left side of form */
.visa-form-left {
    width: 300px;
    padding: 8px 6px;
    box-sizing: border-box;
}

/* Right empty section */
.visa-form-right {
    width: 250px;
    border-left: 1px solid #c6c6c6;
    background: #d9eeee;
    box-sizing: border-box;
}

/* =========================================================
   LABELS
   ========================================================= */
.visa-label {
    display: block;
    margin: 0 0 2px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: #111;
    font-weight: normal;
}

/* =========================================================
   INPUT
   ========================================================= */
.visa-input {
    display: block;
    width: 292px;
    height: 22px;
    margin: 0 0 5px 0;
    padding: 2px 4px;
    background: #fff;
    border: 1px solid #888;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    box-sizing: border-box;
}

.visa-input:focus {
    border-color: #2f65a7;
}

/* =========================================================
    CAPTCHA — Distressed dotted design
   ========================================================= */
.captcha-box {
    width: 292px;
    margin: 6px 0 6px 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.captcha-text {
    display: flex;
    width: 292px;
    height: 65px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #e8f2f8;
    border: 1px solid #aacce0;
    color: #2f65a7;
    font-family: "Courier New", monospace;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 12px;
    padding-left: 14px;
    user-select: none;
    position: relative;
    overflow: hidden;
    /* Distressed effect */
    text-shadow:
        1px 0 0 #2f65a7,
        -1px 0 0 #2f65a7,
        0 1px 0 #2f65a7,
        0 -1px 0 #2f65a7,
        2px 2px 3px rgba(47, 101, 167, 0.3);
    /* Angle the characters */
    transform: skew(-8deg) rotate(-1deg);
    /* Broken pattern effect */
    -webkit-mask-image: 
        repeating-linear-gradient(
            45deg,
            #000 0px,
            #000 3px,
            transparent 3px,
            transparent 4px
        );
    mask-image: 
        repeating-linear-gradient(
            45deg,
            #000 0px,
            #000 3px,
            transparent 3px,
            transparent 4px
        );
}

/* Dotted background overlay */
.captcha-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, #2f65a7 0.8px, transparent 1px),
        radial-gradient(circle, #3c78b4 0.5px, transparent 1px);
    background-size: 5px 5px, 7px 7px;
    background-position: 0 0, 3px 3px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* Keep the text above the overlay */
.captcha-text > * {
    position: relative;
    z-index: 1;
}

/* Refresh button */
.captcha-refresh {
    display: block;
    margin-top: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0000ee;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.captcha-refresh:hover {
    color: #1e4c86;
}

/* =========================================================
   VERIFICATION CODE
   ========================================================= */
.field-label {
    display: block;
    margin: 4px 0 2px 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 14px;
    font-weight: normal;
    color: #111;
    text-align: left;
}

/* =========================================================
   CHECK BUTTON
   ========================================================= */
.btn-check {
    display: block;
    width: 200px;
    height: 30px;
    margin: 10px 0 0 0;
    padding: 2px 10px;
    background: #3c78b4;
    color: #fff;
    border: 1px solid #2f65a7;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s;
}

.btn-check:hover {
    background: #2f65a7;
}

/* =========================================================
   ERROR
   ========================================================= */
.error-div {
    width: 550px;
    margin: 8px 0;
    padding: 7px 10px;
    background: #ffe5e5;
    border: 1px solid #ff9999;
    color: #c00;
    border-radius: 2px;
    font-size: 12px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    border-top: 1px solid #bbb;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    background: #FFFFFF;
}

.footer a {
    color: #2d03e4;
    padding-right: 30px;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .page-container { width: 100%; }
    .navbar { overflow-x: auto; }
    .nav-item a { font-size: 10px; padding: 8px 2px; white-space: nowrap; }
    .main-layout { flex-direction: column; }
    .leftbox {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        height: auto;
        padding-bottom: 15px;
    }
    .content { padding: 20px; }
    .content::before { width: 100%; }
    .visa-form-box {
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    .visa-form-left,
    .visa-form-right {
        width: 100%;
        border-left: none;
    }
    .visa-input,
    .captcha-box,
    .captcha-text {
        width: 100%;
    }
    .error-div { width: 100%; }
}