body { 
  font-family: Arial, sans-serif; 
  margin:0; 
  background:#f0f2f5; 
  color:#333; 
  line-height: 1.5;
}

.header { 
  background:#003366; 
  color:#fff; 
  padding:1rem 1rem; 
  text-align:center; 
  font-weight:bold; 
  font-size:1.1rem; 
}

.hero { 
  height:250px; 
  background-size:cover; 
  background-position:center; 
  display:flex; 
  justify-content:center; 
  align-items:center;
  padding: 0 1rem;
}

.hero h1 { 
  color:#fff; 
  font-size:1.8rem; 
  background:rgba(0,0,0,0.4); 
  padding:0.8rem 1.2rem; 
  border-radius:6px; 
  text-align: center;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}

.selector { 
  text-align:center; 
  padding:1.5rem 1rem; 
}

.country-form { 
  display:flex; 
  justify-content:center; 
  gap:0.8rem; 
  margin-top:1rem;
  flex-wrap: wrap;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.country-form select { 
  padding:0.8rem 1rem; 
  font-size:1rem; 
  min-height: 48px;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.country-form button { 
  background:#003366; 
  color:#fff; 
  border:none; 
  cursor:pointer; 
  border-radius:4px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  min-height: 48px;
  white-space: nowrap;
}

.summary { 
  background:#fff; 
  max-width:400px; 
  margin:1.5rem auto; 
  padding:1rem; 
  border-radius:6px; 
  box-shadow:0 2px 6px rgba(0,0,0,0.1); 
  width: 90%;
}

.faq { 
  padding:1.5rem 1rem; 
  max-width:600px; 
  margin:0 auto; 
  width: 100%;
  box-sizing: border-box;
}

.faq h2 { 
  text-align:center; 
  margin-bottom:1rem; 
  font-size: 1.5rem;
}

.accordion-item { 
  margin-bottom:0.5rem; 
  border-radius:6px; 
  overflow:hidden; 
  box-shadow:0 2px 6px rgba(0,0,0,0.1); 
}

.accordion-header { 
  background:#f7f8fb; 
  color:black; 
  padding:1rem 1rem; 
  width:100%; 
  text-align:left; 
  border:none; 
  cursor:pointer; 
  font-size:1rem; 
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: bold;
}

.accordion-header.active::after {
  content: '-';
}

.accordion-body { 
  background:#f7f8fb; 
  padding:0 1rem; 
  display:none; 
}

.accordion-body.active {
  display: block;
  padding: 1rem;
}

.accordion-body p { 
  margin:0; 
  line-height: 1.6;
}

.request-visa { 
  padding:1.5rem 1rem; 
}

.request-visa-card { 
  max-width:420px; 
  margin:20px auto; 
  background:#fff; 
  padding:20px; 
  border-radius:12px; 
  box-shadow:0 4px 12px rgba(0,0,0,0.1); 
  width: 100%;
  box-sizing: border-box;
}

.request-visa-card h2 { 
  font-size:20px; 
  font-weight:700; 
  color:#0a1c58; 
  margin-bottom:8px; 
  text-align: center;
}

.request-visa-card p { 
  font-size:14px; 
  color:#555; 
  margin-bottom:20px; 
  text-align: center;
}

.request-visa-card label { 
  display:block; 
  font-size:14px; 
  font-weight:600; 
  margin-bottom:6px; 
}

.request-visa-card input { 
  width:100%; 
  padding:12px; 
  border:1px solid #ddd; 
  border-radius:6px; 
  margin-bottom:15px; 
  font-size:16px;
  box-sizing: border-box;
}

.phone-input { 
  display:flex; 
  gap: 8px; 
  margin-bottom:15px; 
}

.phone-input select { 
  width: 70px;
  padding:12px 6px; 
  border:1px solid #ddd; 
  border-radius:6px; 
  background:#f4f4f4; 
  font-size:13px; 
  min-height: 48px;
  flex-shrink: 0;
}

.phone-input input { 
  flex:1; 
  padding:12px; 
  border:1px solid #ddd; 
  border-radius:6px; 
  font-size:16px;
  box-sizing: border-box;
  min-width: 0;
}

.request-visa-card button { 
  width:100%; 
  padding:14px; 
  background:#FFD700; 
  border:none; 
  border-radius:6px; 
  font-size:16px; 
  font-weight:700; 
  cursor:pointer; 
  min-height: 48px;
  transition: background 0.3s;
}

.request-visa-card button:hover {
  background:#e6c200;
}

.popup { 
  position: fixed; 
  top:50%; 
  left:50%; 
  transform:translate(-50%, -50%) scale(0.8); 
  background:#fff; 
  padding:20px; 
  border-radius:12px; 
  box-shadow:0 4px 15px rgba(0,0,0,0.15); 
  text-align:center; 
  width:90%; 
  max-width:360px;
  display:none; 
  opacity:0; 
  transition: all 0.3s ease; 
  z-index:9999; 
  box-sizing: border-box;
}

.popup.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup h3 { 
  font-size:18px; 
  font-weight:700; 
  color:#0a1c58; 
  margin-bottom:10px; 
}

.popup p { 
  font-size:14px; 
  color:#444; 
  margin-bottom:20px; 
  line-height:1.5; 
}

.popup button { 
  padding:10px 20px; 
  background:#FFD700; 
  border:none; 
  border-radius:6px; 
  font-weight:600; 
  cursor:pointer; 
  font-size:14px; 
  min-height: 44px;
}

.error-popup h3 { 
  color:#b30000; 
}

.address-title, .support-title{
  margin:12px 0 6px 0;
  font-weight:700;
  color:#273142;
  font-size:15px;
}

.address{
  margin:0 0 8px 0;
  color:#666;
  line-height: 1.5;
}

.hotline{
  margin:0 0 8px 0;
  font-weight:700;
  color:#1c2b4a;
  font-size:18px;
}

/* Backdrop for popup */
.popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.popup-backdrop.active {
  display: block;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  .hero {
    height: 200px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    padding: 0.6rem 1rem;
  }
  
  .country-form {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    max-width: 300px;
  }
  
  .country-form select {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .country-form button {
    width: 100%;
    max-width: 100%;
  }
  
  .summary {
    margin: 1rem auto;
    padding: 0.8rem;
    width: 95%;
  }
  
  .faq {
    padding: 1rem 0.8rem;
  }
  
  .faq h2 {
    font-size: 1.3rem;
  }
  
  .accordion-header {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  .request-visa-card {
    padding: 15px;
    margin: 15px auto;
  }
  
  .phone-input {
    gap: 6px;
  }
  
  .phone-input select {
    width: 65px;
    font-size: 12px;
    padding: 12px 4px;
  }
  
  .phone-input input {
    flex: 1;
  }
  
  .popup {
    width: 95%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .hero {
    height: 180px;
  }
  
  .hero h1 {
    font-size: 1.3rem;
    padding: 0.5rem 0.8rem;
  }
  
  .selector {
    padding: 1rem 0.5rem;
  }
  
  .country-form select, 
  .country-form button {
    font-size: 16px;
  }
  
  .request-visa-card h2 {
    font-size: 18px;
  }
  
  .request-visa-card p {
    font-size: 13px;
  }
  
  .phone-input select {
    width: 60px;
    font-size: 11px;
    padding: 12px 3px;
  }
  
  .address-title, .support-title {
    font-size: 14px;
  }
  
  .hotline {
    font-size: 16px;
  }
  
  .popup h3 {
    font-size: 16px;
  }
  
  .popup p {
    font-size: 13px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.2rem;
  }
  
  .request-visa-card {
    padding: 12px;
  }
  
  .request-visa-card input,
  .phone-input select,
  .phone-input input {
    padding: 10px;
  }
  
  .phone-input select {
    width: 55px;
    padding: 10px 2px;
    font-size: 10px;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .country-form button,
  .request-visa-card button,
  .popup button,
  .accordion-header {
    min-height: 44px;
  }
  
  .accordion-header {
    padding: 12px 16px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .request-visa-card {
    border: 2px solid #003366;
  }
  
  .country-form select {
    border: 2px solid #003366;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .popup {
    transition: none;
  }
  }
