/*
Theme Name: Visa Status Checker
Theme URI: https://visaglobalstatus.com
Author: Custom
Author URI: https://visaglobalstatus.com
Description: Visa status checker and immigration consultation website theme. Includes visa status checker, hero section, visa cards, and contact form.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visastatus-checker
*/

/* ===== Variables ===== */
:root {
  --color-bg: #0a0f1a;
  --color-surface: #111827;
  --color-surface-alt: #1e293b;
  --color-primary: #f59e0b;
  --color-primary-hover: #d97706;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* Full-site background image – very low opacity */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/images/visa-background.jpg') center center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}
body.has-certificate-result {
  background-color: #f0f2f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
}
.logo span { color: var(--color-primary); }
.logo img { max-height: 40px; width: auto; }
.logo .custom-logo-link { display: inline-block; }
.nav {
  display: flex;
  gap: 1.75rem;
}
.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}
.nav a:hover { color: var(--color-text); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    gap: 0.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0.5rem; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  text-align: center;
}
.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 2rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.visa-check-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.visa-check-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.visa-check-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
}
.visa-check-form input::placeholder { color: var(--color-text-muted); }
.visa-check-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.vsc-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.vsc-message code { font-weight: 600; }
.vsc-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.vsc-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.vsc-result {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}
.vsc-status { font-weight: 600; }
.vsc-status-approved { color: #86efac; }
.vsc-status-rejected { color: #fca5a5; }
.vsc-status-pending,
.vsc-status-processing { color: var(--color-primary); }

.vsc-result-profile {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.vsc-result-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
}
.vsc-result-avatar-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #0a0f1a;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 96px;
  text-align: center;
  text-transform: uppercase;
  border: 3px solid rgba(245, 158, 11, 0.6);
}

/* Certificate Card (Your Information - search result) */
body.has-certificate-result {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  min-height: 100vh;
}

.certificate-card {
  max-width: 700px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(5, 150, 105, 0.12);
}
.vsc-profile-section {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.vsc-result-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 1rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.dark-theme .certificate-card {
  background: linear-gradient(145deg, var(--color-surface), rgba(17, 24, 39, 0.8));
}
body.dark-theme .certificate-header h1 {
  color: #22c55e;
}
body.dark-theme .user-photo {
  border-color: #22c55e;
}
body.dark-theme .table-custom th,
body.dark-theme .table-custom td {
  background-color: rgba(17, 24, 39, 0.6);
  color: var(--color-text);
}
body.dark-theme .table-custom tr:nth-child(odd) th,
body.dark-theme .table-custom tr:nth-child(odd) td {
  background-color: rgba(17, 24, 39, 0.4);
}
body.dark-theme .table-custom tr:hover td,
body.dark-theme .table-custom tr:hover th {
  background-color: rgba(34, 197, 94, 0.15);
}
.certificate-header {
  text-align: center;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}
.certificate-header h1 {
  color: #059669;
  font-weight: bold;
  font-size: 2.5rem;
  margin: 0;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}
.image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}
.user-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #10b981;
  margin: 0;
  display: block;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.user-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 160px;
  text-align: center;
  text-transform: uppercase;
  border: 4px solid #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.approved-stamp-photo {
  position: absolute;
  bottom: 16px;
  right: -50px;
  width: 80px;
  z-index: 2;
}
.approved-stamp-badge {
  position: absolute;
  bottom: 16px;
  right: -50px;
  background: #28a745;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Status badge - circular overlay on profile (top right, like image) */
.vsc-status-badge-img {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.vsc-status-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  border: 3px solid white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  line-height: 1.1;
  padding: 4px;
}
.vsc-status-approved {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}
.vsc-status-pending {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}
.vsc-status-processing {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.vsc-status-rejected {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.vsc-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn-vsc-docs {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-vsc-docs:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-vsc-logout {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  border: none;
  cursor: pointer;
}
.btn-vsc-logout:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}
.table-responsive {
  margin-top: 1rem;
}
.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.table-custom th {
  background-color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.table-custom td {
  background-color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: #475569;
}
.table-custom tr:nth-child(odd) th {
  background-color: #f0fdf4;
}
.table-custom tr:nth-child(odd) td {
  background-color: #f0fdf4;
}
.table-custom tr:hover th,
.table-custom tr:hover td {
  background-color: #ecfdf5 !important;
  transition: background 0.2s ease;
}
.btn-vsc-docs-inline {
  background: #0090ff;
  padding: 8px 12px;
  color: #fff;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-vsc-docs-inline:hover {
  background: #0077cc;
  color: #fff;
}
.btn-logout {
  font-size: 1rem;
  padding: 12px 30px;
  font-weight: bold;
  background: red;
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-logout:hover {
  background: #cc0000;
}
@media (max-width: 576px) {
  .certificate-card {
    padding: 12px;
    margin: 0 !important;
    border-radius: 0px !important;
    margin-bottom: 200px !important;
  }
  .certificate-header h1 {
    font-size: 22px;
  }
  .user-photo {
    width: 120px;
    height: 120px;
  }
  .user-photo-placeholder {
    width: 120px;
    height: 120px;
    line-height: 120px;
    font-size: 2.5rem;
  }
  .approved-stamp-photo {
    width: 80px;
    bottom: 16px;
    right: -50px;
  }
  .approved-stamp-badge {
    font-size: 0.55rem;
    padding: 0.25rem 0.4rem;
    right: -35px;
    bottom: 10px;
  }
  .table-custom th,
  .table-custom td {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #0a0f1a;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.15);
}

/* ===== Intro ===== */
.intro {
  padding: 3rem 0;
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}
.intro-sub {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Services / Visa Grid ===== */
.services {
  padding: 3rem 0 4rem;
}
.services .section-title { margin-bottom: 2rem; }
.visa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.visa-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.visa-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.visa-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.visa-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.visa-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}
.visa-card-link {
  font-weight: 600;
  font-size: 0.95rem;
}
.services-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== CTA ===== */
.cta {
  padding: 3rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cta-inner { text-align: center; }
.cta h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 0 0 0.5rem;
}
.cta p { color: var(--color-text-muted); margin: 0 0 1.5rem; }

/* ===== Contact ===== */
.contact { padding: 4rem 0; }
.contact .section-title { margin-bottom: 0.5rem; }
.contact-desc {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}
.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
.footer-brand .logo { margin-bottom: 0.75rem; display: inline-block; }
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 32ch;
}
@media (max-width: 768px) { .footer-brand p { max-width: none; } }
.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-text); }
.footer-contact p {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.footer-contact a { color: var(--color-text-muted); }
.footer-contact a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== Page content (default pages) ===== */
.page-content,
.entry-content {
  padding: 3rem 0;
}
.page-content .container,
.entry-content .container {
  max-width: 720px;
}
.page-content h1,
.entry-content h1,
.page-content h2,
.entry-content h2 {
  font-family: var(--font-serif);
  color: var(--color-text);
}
.page-content p,
.entry-content p { color: var(--color-text-muted); }

/* ===== Apply Now page ===== */
.apply-now-page {
  padding: 3rem 0 4rem;
}
.apply-section {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.apply-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}
.apply-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 999px;
}
.apply-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}
.apply-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.apply-form {
  padding: 2rem;
}
.apply-form .form-block {
  border: none;
  margin: 0 0 2rem;
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.5);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.apply-form .form-block:last-of-type {
  margin-bottom: 0;
}
.form-block-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.form-block-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.form-block-title::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: var(--color-primary);
  border-radius: 2px;
  order: -1;
}
.label-icon {
  font-size: 0.9rem;
  margin-right: 0.35rem;
  opacity: 0.8;
}
.form-block-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: -0.5rem 0 1rem;
  line-height: 1.5;
}
.apply-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .apply-form .form-grid {
    grid-template-columns: 1fr;
  }
  .apply-form { padding: 1.5rem; }
  .apply-header { padding: 1.5rem 1.5rem 1.25rem; }
}
.apply-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.apply-form .form-group-full {
  grid-column: 1 / -1;
}
.apply-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.apply-form label .required {
  color: var(--color-primary);
}
.form-hint,
.file-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.apply-form input[type="text"],
.apply-form input[type="tel"],
.apply-form input[type="email"],
.apply-form input[type="date"],
.apply-form input[type="password"],
.apply-form select,
.apply-form textarea {
  padding: 0.9rem 1.15rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font: inherit;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.apply-form input:hover,
.apply-form select:hover,
.apply-form textarea:hover {
  background: rgba(30, 41, 59, 0.7);
}
.apply-form textarea::placeholder,
.apply-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}
.apply-form .input-file {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.5);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}
.apply-form .input-file:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}
.apply-form .input-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}
.apply-form .input-file::file-selector-button:hover {
  background: rgba(245, 158, 11, 0.15);
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.apply-form .form-submit {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.apply-form .btn-submit {
  width: 100%;
  max-width: 320px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}
.apply-form .form-privacy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.apply-form .btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.apply-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.apply-form select option {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

/* ===== Apply Success box ===== */
.apply-success-box {
  text-align: center;
  padding: 2.5rem 2rem;
}
.apply-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  font-size: 2rem;
  font-weight: 700;
  line-height: 60px;
  border-radius: 50%;
}
.apply-success-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}
.apply-success-text {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
.apply-success-ref {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.apply-success-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.apply-success-code {
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}
.apply-success-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}
.apply-success-box .btn {
  margin: 0 0.5rem 0.5rem 0;
}
.apply-success-box .apply-another {
  margin-right: 0;
}

/* ===== Visa Detail Pages ===== */
.visa-detail-page {
  padding: 3rem 0 4rem;
}
.visa-detail {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.visa-detail-header {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.visa-detail-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}
.visa-detail-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}
.visa-detail-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}
.visa-detail-content {
  padding: 2rem;
}
.visa-detail-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1rem;
}
.visa-detail-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
}
.visa-detail-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.visa-detail-content ul {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.visa-detail-content li {
  margin-bottom: 0.5rem;
}
.visa-detail-cta {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-surface-alt);
}
.visa-detail-cta .btn {
  margin: 0 0.5rem 0.5rem 0;
}
@media (max-width: 600px) {
  .visa-detail-header,
  .visa-detail-content,
  .visa-detail-cta {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .visa-detail-cta .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}
