/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Sarabun', sans-serif; color: #1a2332; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
  --primary: #1a3a5c;
  --accent: #2980b9;
  --accent2: #1abc9c;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --gray-800: #1e293b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.gradient-text { background: linear-gradient(135deg, #2980b9, #1abc9c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: linear-gradient(135deg, #0f2340, #1a3a5c); color: #fff; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.light h2, .section-header.light p { color: #fff; }
.section-badge {
  display: inline-block; background: linear-gradient(135deg, #e8f4fd, #d1eefc);
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.section-header.light .section-badge { background: rgba(255,255,255,.15); color: #fff; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: var(--primary); }
.section-header.light h2 { color: #fff; }
.section-header p { color: var(--gray-600); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); transition: all .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 28px; }
.logo-name { font-weight: 800; font-size: 16px; color: var(--primary); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--gray-400); letter-spacing: .5px; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--gray-600); transition: all .2s;
}
.nav-links a:hover { color: var(--accent); background: var(--gray-100); }
.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  font-family: 'Sarabun', sans-serif; transition: opacity .2s;
}
.btn-nav-cta:hover { opacity: .9; }
.hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; margin-left: auto; }
.btn-lang {
  background: transparent; border: 1.5px solid var(--gray-200);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Sarabun', sans-serif; color: var(--gray-600);
  transition: all .2s; white-space: nowrap;
}
.btn-lang:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, #0f2340 0%, #1a3a5c 50%, #1f5580 100%);
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; padding: 60px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: #a8d8f0; border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px; border-radius: 24px; font-size: 14px; font-weight: 500; margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 64px); font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 24px;
}
.hero-desc { font-size: 18px; color: rgba(255,255,255,.75); max-width: 580px; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.6); }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1a8fd1);
  color: #fff; border: none; padding: 13px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Sarabun', sans-serif; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(41,128,185,.35); }
.btn-primary.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4);
  padding: 13px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'Sarabun', sans-serif; transition: all .2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline.btn-lg { padding: 14px 34px; font-size: 17px; border-radius: 14px; }
.btn-outline.dark { color: var(--primary); border-color: var(--gray-200); }
.btn-outline.dark:hover { background: var(--gray-100); }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 16px;
  padding: 32px; transition: all .3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); transform: scaleX(0);
  transition: transform .3s; transform-origin: left;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.service-card.featured::before { transform: scaleX(1); }
.service-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.service-badge {
  display: inline-block; background: var(--gray-100); color: var(--gray-600);
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
}
.service-badge.popular { background: #fef3c7; color: #92400e; }
.service-badge.urgent { background: #fee2e2; color: #991b1b; }
.service-card p { color: var(--gray-600); font-size: 14px; margin-bottom: 16px; line-height: 1.7; }
.service-features { margin-bottom: 24px; }
.service-features li { font-size: 13px; color: var(--gray-600); padding: 4px 0; }
.btn-service {
  background: var(--gray-100); color: var(--primary); border: none;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'Sarabun', sans-serif; transition: all .2s; width: 100%;
}
.service-card:hover .btn-service, .service-card.featured .btn-service {
  background: linear-gradient(135deg, var(--accent), #1a8fd1); color: #fff;
}

/* ===== QUOTE SECTION ===== */
.quote-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.quote-form-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
}
.tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.tab {
  flex: 1; padding: 16px; background: none; border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; color: var(--gray-400); transition: all .2s; font-family: 'Sarabun', sans-serif;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; padding: 28px; }
.tab-content.active { display: block; }

/* ===== FORMS ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 10px; font-size: 15px; font-family: 'Sarabun', sans-serif;
  color: var(--gray-800); transition: border-color .2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41,128,185,.12);
}
.form-group textarea { resize: vertical; }
.form-section-title {
  font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase;
  letter-spacing: .5px; margin: 8px 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

/* ===== CALC RESULT ===== */
.calc-result {
  margin-top: 20px; background: linear-gradient(135deg, #e8f4fd, #d1eefc);
  border-radius: 16px; padding: 24px;
}
.calc-result .price { font-size: 42px; font-weight: 900; color: var(--primary); text-align: center; margin-bottom: 4px; }
.calc-result .transit { text-align: center; color: var(--gray-600); font-size: 14px; margin-bottom: 20px; }
.breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.breakdown-item {
  background: rgba(255,255,255,.7); border-radius: 8px; padding: 8px 12px;
  display: flex; justify-content: space-between; font-size: 13px;
}
.breakdown-item span:last-child { font-weight: 600; color: var(--primary); }

/* ===== QUOTE INFO ===== */
.quote-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: #fff; border-radius: 16px; padding: 24px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
}
.info-card.highlight { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.info-card.highlight p { color: rgba(255,255,255,.8); }
.info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.info-card.highlight h4 { color: #fff; }
.destinations { display: flex; flex-wrap: wrap; gap: 8px; }
.destinations span {
  background: var(--gray-100); padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--gray-600);
}
.include-list li { font-size: 14px; color: var(--gray-600); padding: 4px 0; }
.contact-quick { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.btn-contact {
  flex: 1; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  font-weight: 600; text-align: center; background: rgba(255,255,255,.2);
  color: #fff; border: 1px solid rgba(255,255,255,.3); transition: all .2s;
}
.btn-contact:hover { background: rgba(255,255,255,.3); }
.btn-contact.line { background: #06c755; border-color: #06c755; }

/* ===== BOOKING ===== */
.booking-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200); padding: 40px; max-width: 860px; margin: 0 auto;
}
.form-steps { display: flex; gap: 0; margin-bottom: 36px; position: relative; }
.form-steps::before {
  content: ''; position: absolute; top: 18px; left: 18%; right: 18%;
  height: 2px; background: var(--gray-200); z-index: 0;
}
.step {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--gray-400); position: relative; z-index: 1;
  padding: 10px;
}
.step span {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0; transition: all .3s;
}
.step.active { color: var(--accent); }
.step.active span { background: var(--accent); color: #fff; }
.step.done span { background: var(--success); color: #fff; }
.form-step-content { display: none; }
.form-step-content.active { display: block; }
.step-nav { display: flex; gap: 16px; margin-top: 8px; }
.step-nav .btn-outline { color: var(--primary); border-color: var(--gray-200); background: var(--gray-50); }
.step-nav .btn-outline:hover { background: var(--gray-100); }

/* ===== TRACKING ===== */
.tracking-box { max-width: 680px; margin: 0 auto; }
.tracking-input-wrap {
  display: flex; gap: 0; background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.tracking-input {
  flex: 1; padding: 18px 24px; border: none; font-size: 17px;
  font-family: 'Sarabun', sans-serif; color: var(--gray-800); outline: none;
  background: transparent;
}
.tracking-input::placeholder { color: var(--gray-400); }
.btn-track {
  background: linear-gradient(135deg, var(--accent), #1a8fd1);
  color: #fff; border: none; padding: 18px 32px; font-size: 16px;
  font-weight: 700; cursor: pointer; font-family: 'Sarabun', sans-serif;
  white-space: nowrap; transition: opacity .2s;
}
.btn-track:hover { opacity: .9; }
.tracking-hint { text-align: center; color: rgba(255,255,255,.5); font-size: 13px; margin-top: 12px; }
.tracking-result { margin-top: 28px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tracking-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; padding: 24px 28px;
}
.tracking-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.tracking-header .track-num { font-size: 26px; font-weight: 900; letter-spacing: 2px; }
.tracking-body { padding: 28px; }
.track-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.track-info-item label { font-size: 12px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.track-info-item p { font-size: 15px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot {
  position: absolute; left: -32px; top: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center;
  font-size: 10px; z-index: 1;
}
.timeline-item.active .timeline-dot { background: var(--accent); }
.timeline-item.done .timeline-dot { background: var(--success); }
.timeline-item p { font-size: 14px; font-weight: 600; color: var(--primary); }
.timeline-item span { font-size: 12px; color: var(--gray-400); }

/* ===== STATUS BADGE ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.status-processing { background: #fef3c7; color: #92400e; }
.status-picked_up { background: #e0f2fe; color: #0369a1; }
.status-in_transit { background: #dbeafe; color: #1d4ed8; }
.status-customs { background: #f3e8ff; color: #7c3aed; }
.status-delivered { background: #dcfce7; color: #15803d; }

/* ===== INTEGRATIONS ===== */
.integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.integration-card {
  background: #fff; border-radius: 20px; padding: 32px; text-align: center;
  border: 1px solid var(--gray-200); transition: all .3s; box-shadow: var(--shadow);
}
.integration-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.int-icon {
  width: 72px; height: 72px; border-radius: 20px; display: flex;
  align-items: center; justify-content: center; font-size: 36px;
  margin: 0 auto 20px;
}
.int-icon.email { background: #fef2f2; }
.int-icon.notion { background: #f5f5f5; }
.int-icon.slack { background: #fff3e0; }
.int-icon.line { background: #e8f8ec; }
.integration-card h4 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.integration-card p { color: var(--gray-600); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.int-features { display: flex; flex-direction: column; gap: 4px; }
.int-features span { font-size: 13px; color: var(--success); font-weight: 500; }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.why-card {
  background: #fff; border-radius: 16px; padding: 28px; text-align: center;
  border: 1px solid var(--gray-200); transition: all .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.why-icon { font-size: 44px; margin-bottom: 14px; display: block; }
.why-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.why-card p { color: var(--gray-600); font-size: 13px; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 24px; width: 48px; height: 48px; background: var(--gray-100); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--gray-600); }
.contact-form-card { background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); }

/* ===== FOOTER ===== */
.footer { background: var(--gray-800); color: #fff; padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-links h5, .footer-contact h5 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; color: rgba(255,255,255,.7); }
.footer-links a { display: block; color: rgba(255,255,255,.5); font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: rgba(255,255,255,.5); font-size: 14px; padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: 13px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 16px 24px; border-radius: 14px; color: #fff;
  font-size: 15px; font-weight: 500; box-shadow: var(--shadow-lg);
  max-width: 360px; animation: slideUp .3s ease;
}
.toast.success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.toast.error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.toast.info { background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; z-index: 1; background: #fff; border-radius: 20px;
  padding: 40px; max-width: 520px; width: 100%; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.modal-icon { font-size: 56px; text-align: center; margin-bottom: 16px; }
.modal-title { font-size: 22px; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 8px; }
.modal-text { color: var(--gray-600); text-align: center; font-size: 15px; margin-bottom: 24px; }
.modal-detail { background: var(--gray-50); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.modal-detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--gray-200); }
.modal-detail-row:last-child { border: none; }
.modal-detail-row span:first-child { color: var(--gray-600); }
.modal-detail-row span:last-child { font-weight: 600; color: var(--primary); }
.tracking-highlight {
  background: linear-gradient(135deg, #e8f4fd, #d1eefc);
  border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 20px;
}
.tracking-highlight p { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; }
.tracking-highlight .tn { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: 2px; }

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .4s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .quote-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 72px; left: 0; right: 0; background: #fff; padding: 16px 24px;
    box-shadow: var(--shadow); z-index: 999;
  }
  .nav-links.open + .btn-nav-cta { display: block; position: fixed; bottom: 24px; left: 24px; right: 24px; text-align: center; z-index: 999; }
  .hero-title { font-size: 32px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .booking-card { padding: 24px; }
  .form-steps { font-size: 12px; }
  .form-steps .step { flex-direction: column; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-header h2 { font-size: 28px; }
  .track-info-grid { grid-template-columns: 1fr; }
  .tracking-input-wrap { flex-direction: column; }
  .btn-track { border-radius: 0 0 16px 16px; }
}

/* ===== CONTACT PERSON CARD ===== */
.contact-person-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px; padding: 20px; margin-bottom: 20px; color: #fff;
}
.contact-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 800;
  color: #fff; flex-shrink: 0; border: 2px solid rgba(255,255,255,.4);
}
.contact-person-name { font-size: 17px; font-weight: 700; }
.contact-person-title { font-size: 13px; opacity: .85; margin-top: 2px; }
.contact-person-company { font-size: 12px; opacity: .7; margin-top: 2px; }

.contact-link { color: var(--accent); font-weight: 600; transition: color .2s; }
.contact-link:hover { color: var(--primary); }

.contact-line-group { align-items: flex-start !important; }
.line-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  transition: all .2s; border: 1.5px solid transparent;
}
.line-btn.ai       { background: #e8f8ec; color: #15803d; border-color: #bbf7d0; }
.line-btn.ai:hover { background: #dcfce7; }
.line-btn.personal       { background: #f0fdf4; color: #166534; border-color: #d1fae5; }
.line-btn.personal:hover { background: #dcfce7; }
.line-btn.official       { background: #06c755; color: #fff; }
.line-btn.official:hover { background: #05b44c; }

/* ===== ADMIN PANEL ===== */
.admin-panel {
  position: fixed; bottom: 24px; left: 24px; z-index: 500;
  background: var(--primary); color: #fff; border-radius: 14px;
  padding: 12px 20px; font-size: 13px; cursor: pointer;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.admin-panel:hover { background: var(--accent); }
.admin-badge {
  background: var(--danger); color: #fff; font-size: 11px;
  font-weight: 700; padding: 2px 7px; border-radius: 10px;
}

/* ===== AI CHATBOT WIDGET ===== */
.chat-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  font-family: 'Sarabun', sans-serif;
}

/* Bubble Button */
.chat-bubble {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.chat-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,99,235,.5); }
.chat-bubble-icon, .chat-bubble-close {
  position: absolute; transition: all .25s;
}
.chat-bubble-close { font-size: 20px; color: #fff; font-weight: 700; }
.chat-unread {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px; background: var(--danger);
  border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Chat Window */
.chat-window {
  position: absolute; bottom: 76px; right: 0;
  width: 360px; max-height: 560px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chatSlideIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-window.hidden { display: none; }

/* Header */
.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; color: #fff;
}
.chat-header-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.35);
}
.chat-header-info { flex: 1; }
.chat-header-name { font-size: 15px; font-weight: 700; }
.chat-header-status { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; margin-top: 2px; }
.chat-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.chat-header-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-header-close:hover { background: rgba(255,255,255,.3); }

/* Messages Area */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 12px; background: #f8fafc;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Welcome block */
.chat-welcome {
  text-align: center; padding: 8px 0;
}
.chat-welcome-icon { font-size: 36px; margin-bottom: 8px; }
.chat-welcome p {
  font-size: 13.5px; color: #475569; line-height: 1.6; margin: 0 0 12px;
}
.chat-quick-btns {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 4px;
}
.chat-quick-btns button {
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 20px;
  padding: 6px 13px; font-size: 12.5px; cursor: pointer; color: var(--primary);
  font-family: 'Sarabun', sans-serif; font-weight: 600;
  transition: all .2s;
}
.chat-quick-btns button:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Message Bubbles */
.chat-msg { display: flex; gap: 8px; max-width: 100%; }
.chat-msg-assistant { flex-direction: row; }
.chat-msg-user { flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; align-self: flex-end;
}
.chat-bubble-msg {
  max-width: 78%; display: flex; flex-direction: column; gap: 3px;
}
.chat-msg-user .chat-bubble-msg { align-items: flex-end; }
.chat-text {
  padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.55;
  word-break: break-word;
}
.chat-msg-assistant .chat-text {
  background: #fff; color: #1e293b;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.chat-msg-user .chat-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border-radius: 16px 4px 16px 16px;
}
.chat-text code { background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.chat-time { font-size: 11px; color: #94a3b8; padding: 0 4px; }

/* Typing Indicator */
.chat-typing { display: flex; gap: 5px; padding: 8px 4px; align-items: center; }
.chat-typing span {
  width: 8px; height: 8px; background: #94a3b8; border-radius: 50%;
  animation: typing 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity:.6; }
  30% { transform: translateY(-6px); opacity:1; }
}

/* Input Area */
.chat-input-area {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid #f1f5f9; background: #fff;
}
#chatInput {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 24px;
  padding: 9px 16px; font-size: 13.5px; outline: none;
  font-family: 'Sarabun', sans-serif; color: #1e293b;
  transition: border-color .2s;
}
#chatInput:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all .2s;
}
.chat-send-btn:hover:not(:disabled) { transform: scale(1.08); }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Footer */
.chat-footer {
  text-align: center; font-size: 11px; color: #94a3b8;
  padding: 6px; background: #f8fafc; border-top: 1px solid #f1f5f9;
}
.chat-footer a { color: var(--primary); text-decoration: none; }

/* Responsive */
@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-window { width: calc(100vw - 32px); bottom: 72px; right: -8px; }
}

.hidden { display: none !important; }
