/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    background: #f0f4f8;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.site-header {
    background: #1a237e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 42px; height: 42px;
    background: #e53935;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 20px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.logo-sub  { color: #90caf9; font-size: 10px; font-weight: 500; letter-spacing: 3px; }
.header-nav { display: flex; gap: 8px; }
.nav-item {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    white-space: nowrap;
}
.nav-item.active { background: #e53935; }

/* ===== HERO ===== */
.hero-banner {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: 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='0.04'%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") repeat;
}
.hero-content { position: relative; text-align: center; }
.hero-title {
    color: #fff;
    font-size: clamp(22px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    color: #bbdefb;
    font-size: clamp(13px, 2vw, 16px);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MAIN ===== */
.main-content { padding: 30px 0 60px; flex: 1; }

/* ===== SEARCH CARD ===== */
.search-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow: hidden;
    margin-bottom: 30px;
}
.search-card-header {
    background: linear-gradient(90deg, #1a237e, #1565c0);
    color: #fff;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}
.search-card-header i { font-size: 22px; }
.search-card-body { padding: 28px; }

.search-info {
    background: #e3f2fd;
    border-left: 4px solid #1565c0;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: #1a237e;
    margin-bottom: 24px;
    line-height: 1.6;
}
.search-info i { color: #1565c0; margin-right: 6px; }

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
}
.form-group label i { color: #1565c0; margin-right: 4px; }
.required { color: #e53935; }
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #fafafa;
    width: 100%;
}
.form-control:focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

/* Buttons */
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-track {
    background: linear-gradient(135deg, #1a237e, #1565c0);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
    font-family: inherit;
}
.btn-track:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-track:active { transform: translateY(0); }
.btn-track:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-clear {
    background: #f5f5f5;
    color: #555;
    border: 2px solid #e0e0e0;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-clear:hover { background: #eeeeee; }

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 16px;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.alert-error { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }
.alert i { margin-top: 1px; flex-shrink: 0; }

/* ===== RESULT SECTION ===== */
/* Status Banner */
.result-status-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.status-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}
.status-text-wrap { flex: 1; }
.status-label { color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 4px; }
.status-value { color: #fff; font-size: clamp(20px, 4vw, 28px); font-weight: 700; }

/* Status colors */
.status-pending    { background: linear-gradient(135deg, #f57f17, #f9a825); }
.status-processing { background: linear-gradient(135deg, #1565c0, #1976d2); }
.status-ready      { background: linear-gradient(135deg, #2e7d32, #43a047); }
.status-dispatched { background: linear-gradient(135deg, #00838f, #00acc1); }
.status-rejected   { background: linear-gradient(135deg, #b71c1c, #e53935); }
.status-cancelled  { background: linear-gradient(135deg, #424242, #757575); }

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.detail-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.detail-card-header {
    background: #1a237e;
    color: #fff;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.detail-card-body { padding: 6px 0; }
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: #888; font-size: 13px; min-width: 130px; flex-shrink: 0; }
.detail-value { color: #222; font-size: 13.5px; font-weight: 500; text-align: right; word-break: break-word; }

/* Status Detail Card */
.status-detail-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}
.status-detail-text { color: #444; font-size: 14.5px; line-height: 1.7; padding: 4px 0; }

/* Visa Sticker Card */
.visa-sticker-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}
.visa-sticker-body { padding: 20px; }
.sticker-note {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.sticker-note i { color: #1a237e; }
.btn-download-sticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
    margin-bottom: 16px;
}
.btn-download-sticker:hover { opacity: 0.88; }
.sticker-img {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    margin-top: 10px;
}

/* New Search */
.new-search-wrap { text-align: center; padding: 10px 0 20px; }
.btn-new-search {
    background: #fff;
    color: #1a237e;
    border: 2px solid #1a237e;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.btn-new-search:hover { background: #1a237e; color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
    background: #1a237e;
    color: #fff;
    padding: 28px 0;
    margin-top: auto;
}
.footer-inner { text-align: center; }
.footer-logo {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 18px; font-weight: 700; letter-spacing: 1px;
    margin-bottom: 8px;
}
.footer-logo .logo-icon { width: 32px; height: 32px; font-size: 16px; }
.footer-copy { font-size: 13px; color: #bbdefb; margin-bottom: 4px; }
.footer-note { font-size: 12px; color: #7986cb; }

/* ===== RESPONSIVE ===== */
/* Tablet */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .search-card-body { padding: 20px 16px; }
    .result-status-banner { padding: 18px 20px; }
    .hero-banner { padding: 36px 0 28px; }
    .header-inner { flex-wrap: wrap; }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title { letter-spacing: 1px; }
    .search-card-header { padding: 14px 16px; font-size: 16px; }
    .form-actions { flex-direction: column; }
    .btn-track, .btn-clear { width: 100%; justify-content: center; }
    .result-status-banner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .detail-row { flex-direction: column; gap: 4px; }
    .detail-value { text-align: left; }
    .detail-label { min-width: unset; }
    .logo-main { font-size: 18px; }
    .logo-sub  { font-size: 9px; }
}
