/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Top Bar ===== */
.top-bar {
    background: #1a3a6b;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #4b5563;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
}
.top-bar a{
  color:#fff
}
.top-bar .links a { margin-right: 18px; color:#fff; }
.top-bar .lang a { margin-left: 10px; font-weight: 600; }

/* ===== Header ===== */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #1e3a8a;
    padding: 0.75rem 1rem;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-emblem {
    width: 60px;
    height: 60px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.brand-text .b1 {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}
.brand-text .b2 { color: #1f2937; font-weight: 600; font-size: 15px; }
.brand-text .b3 { color: #6b7280; font-size: 13px; margin-top: 4px; }

/* ===== Nav ===== */
.main-nav {
    background: #1a3a6b;
	border-bottom: 1px solid #c8102e;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    flex: 1;
    min-width: 140px;
    border-right: 1px solid #2a4d80;
}
.main-nav li:last-child { border-right: none; }

.main-nav a {
    display: block;
	padding-top: .625rem;
    padding-bottom: .625rem;
  	color: #d1d5db;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: .75rem;
  	text-align: center;
    line-height: 1rem;
}

.main-nav a:hover { background: #2a4d80; }

/* ===== Page Title ===== */
.page-intro {
    text-align: center;
    padding: 40px 0 10px;
    max-width:36rem;
  margin: 0 auto;
}

.page-intro h1 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.page-intro p {
    color: #6b7280;
    font-size: 14px;
    max-width: 540px;
    margin: 0 auto;
}

/* ===== Notice ===== */
.notice {
    max-width: 680px;
    margin: 24px auto;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 18px;
    color: #1e3a8a;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
      max-width:36rem;

}

.notice .icon {
    background: #1e3a8a;
    color: #ffffff;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Form Card ===== */
.form-card {
    margin: 0 auto 60px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
      max-width:36rem;

}

.form-card .head {
    background: #1e3a8a;
    color: #ffffff;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.ssl svg {
    display: flex;
    vertical-align: middle;
    width: 14px;
    flex-direction: row;
}

.ssl {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
      gap: 4px;

  color: #4ade80;
}
.form-card .body { padding: 30px; }

.field { margin-bottom: 22px; }

.field label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.field .hint {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f9fafb;
    transition: border 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #1e3a8a;
    background: #ffffff;
}

.btn-primary {
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: #1e40af; }

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* ===== Footer ===== */
.site-footer {
    background: #0f2347;
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 13px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-cols h4 {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: 1px solid #334155;
    padding-bottom: 6px;
}

.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a:hover { color: #ffffff; }

.copyright {
    border-top: 1px solid #334155;
    padding-top: 18px;
    text-align: center;
    color: #94a3b8;
}

.copyright .legal { margin-top: 8px; font-size: 12px; }
.copyright .legal a { margin: 0 8px; }

/* ===== Trust Row ===== */
.trust-row {
    text-align: center;
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 12px;
}
.trust-row span { margin: 0 14px; }

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

.back-link {
    display: inline-block;
    color: #1e3a8a;
    margin: 22px 0;
    font-size: 14px;
    font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* Green approved banner */
.status-banner {
    background: #16a34a;
    color: #ffffff;
    border-radius: 8px;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.status-banner .banner-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.status-banner .check-icon {
    width: 42px; height: 42px;
    background: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #16a34a;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.status-banner .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.status-banner .sub { font-size: 13px; opacity: 0.95; }

.status-banner.denied { background: #dc2626; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2); }
.status-banner.denied .check-icon { color: #dc2626; }

.auth-badge {
    display: flex; align-items: center; gap: 8px;
    color: #ffffff; font-weight: 500;
    background: rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.auth-badge .shield {
    font-size: 14px;
}

/* Visa document card */
.visa-doc {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.visa-doc-header {
    background: #1e3a8a;
    color: #ffffff;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.visa-doc-header .org-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.visa-doc-header .mini-emblem {
    width: 30px; height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

.visa-doc-header .org-text .o1 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.visa-doc-header .org-text .o2 {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.visa-doc-header .verified-side {
    text-align: right;
    font-size: 12px;
}
.visa-doc-header .verified-side .v1 { opacity: 0.85; }
.visa-doc-header .verified-side .v2 {
    font-weight: 700;
    font-size: 14px;
    margin-top: 2px;
    font-family: 'Courier New', monospace;
}

.visa-doc-title {
    text-align: center;
    padding: 22px 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.visa-doc-title h2 {
    color: #1e3a8a;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.visa-doc-title .en {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Two-column body */
.visa-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    padding: 24px 28px 30px;
}

.visa-details {
    min-width: 0;
}

/* Section header strip */
.section-strip {
    background: #eff6ff;
    border-left: 4px solid #1e3a8a;
    padding: 9px 14px;
    margin: 18px 0 0;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
}
.section-strip:first-child { margin-top: 0; }

/* Detail rows */
.detail-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 14px 14px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

.detail-row .label {
    color: #4b5563;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.detail-row .label-icon {
    width: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    flex-shrink: 0;
}

.detail-row .label-text {
    line-height: 1.3;
}

.detail-row .label-text .sr {
    color: #1f2937;
    font-weight: 400;
    font-size: 13px;
}

.detail-row .label-text small {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 400;
    margin-top: 1px;
}

.detail-row .value {
    color: #1f2937;
    font-size: 14px;
}
.detail-row .value.strong { font-weight: 700; color: #111827; }
.detail-row .value.mono {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Right column - photo, barcode, seal */
.visa-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 16px;
}

.photo-box {
    width: 160px; height: 200px;
    border: 2px solid #1e3a8a;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 12px;
    overflow: hidden;
    text-align: center;
    padding: 8px;
}

.photo-box img { width: 100%; height: 100%; object-fit: cover; }

.barcode-box {
    background: #ffffff;
    padding: 14px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.barcode-box .bars {
    font-family: 'Courier New', monospace;
    font-size: 42px;
    letter-spacing: -3px;
    line-height: 1;
    color: #111827;
    margin-bottom: 4px;
    font-weight: 900;
}

.barcode-box .code-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #4b5563;
    letter-spacing: 1px;
}

.verified-seal {
    width: 130px; height: 130px;
    border: 2px dashed #15803d;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #15803d;
    text-align: center;
    background: #ffffff;
}

.verified-seal .check-circle {
    width: 56px; height: 56px;
    border: 2.5px solid #15803d;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 4px;
}

.verified-seal .seal-label-1 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.verified-seal .seal-label-2 {
    font-size: 9px;
    color: #6b7280;
    margin-top: 1px;
}

/* Disclaimer */
.disclaimer {
    padding: 20px 28px;
    background: #ffffff;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.7;
    border-top: 1px solid #f3f4f6;
}

/* Bottom info bar inside card */
.doc-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3a8a;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-info-bar span { opacity: 0.95; }

/* Action buttons */
.actions-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 40px;
}

.btn-action {
    background: #1e3a8a;
    border: 1px solid #1e3a8a;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover { background: #1e40af; border-color: #1e40af; }
.btn-action.secondary {
    background: #ffffff;
    color: #1e3a8a;
}
.btn-action.secondary:hover { background: #f3f4f6; }

/* ===== Admin Form ===== */
.admin-wrap {
    max-width: 900px;
    margin: 30px auto 60px;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.admin-wrap h1 {
    color: #1e3a8a;
    margin-bottom: 6px;
    font-size: 22px;
}

.admin-wrap .desc {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h3 {
    color: #1e3a8a;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-group label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    background: #ffffff;
}

.form-group input:focus, .form-group select:focus {
    outline: none; border-color: #1e3a8a;
}

.success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.trust-row svg {
    width: 14px !important;
    vertical-align: middle;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .footer-cols { grid-template-columns: 1fr; }
    .detail-row { grid-template-columns: 1fr; gap: 4px; }
    .detail-row .value { padding-left: 26px; }
    .form-grid { grid-template-columns: 1fr; }
    .top-bar .container { flex-direction: column; height: auto; padding: 8px; gap: 4px; }
    .main-nav ul { flex-direction: column; }
    .main-nav li { border-right: none; border-bottom: 1px solid #e5e7eb; }
}

@media print {
     .visa-body{
    display: block;
  }
  /* Target your grid container */
  .visa-details {
    display: block; /* Disables flex or grid layout */
  }

  /* Target your column divs */
  .visa-sidebar {
    width: 100% !important;
    float: none !important;
    display: flex !important;
    margin-bottom: 20px; /* Adds space between them on paper */
    text-align: center;
  }
   .top-bar  {
        display: flex;
    width: 100% !important;
            max-width: 100% !important;

}
   .top-bar .container {
       flex-direction: row;
    width: 100% !important;
    display: flex !important;
    padding: 0 !important;  
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
}
.main-nav{
    display: none;
}
}