/* ==========================================================================
   DINO LOGISTICS - TRACKING PAGE STYLES (MODERN CLEAN UI)
   ========================================================================== */

/* RESET BOX-SIZING KHUSUS AREA TRACKING 
   Mencegah padding merusak ukuran lebar maksimal form */
.tracking-section, .tracking-section *,
.tracking-card, .tracking-card *,
.dino-card-wrapper, .dino-card-wrapper * {
    box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --primary-color: #0554c6;
  --primary-dark: #0442a0;
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  
  /* Backgrounds */
  --page-bg: #f8fafc; 
  --card-bg: #ffffff;
  
  /* Inputs */
  --input-bg: #f8fafc; /* Lebih terang dikit */
  --input-border: #cbd5e1;
  --input-focus: #ffffff;
  
  /* Text */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Spacing & Radius */
  --radius-xl: 20px;
  --radius-md: 10px;
  --shadow-card: 0 20px 40px -10px rgba(5, 84, 198, 0.15); /* Shadow kebiruan */
}

body {
    background-color: var(--page-bg);
    color: var(--text-main);
}

/* ==========================================================================
   1. PAGE HEADER (BIRU)
   ========================================================================== */
.page-title {
    background: linear-gradient(135deg, #056fc6 0%, #0442a0 100%);
    color: white;
    /* Padding bawah dikurangi agar proporsional dengan kartu yang diturunkan */
    padding: 80px 0 100px 0; 
    text-align: center; /* Di-center biar seimbang dengan form */
    position: relative;
    border-bottom: none;
    margin-bottom: 0;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    pointer-events: none;
}

.page-title h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
}

.page-title p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   2. TRACKING FORM CONTAINER (WHITE CARD FLOATING)
   ========================================================================== */
.tracking-section {
    /* Menurunkan kartu agar tidak terlalu ketutupan header biru di atasnya */
    margin-top: -50px; 
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

/* Berlaku untuk class tracking-card (lama) dan dino-card-wrapper (baru) */
.tracking-card, .dino-card-wrapper {
    background: var(--card-bg); /* UBAH JADI PUTIH */
    border-radius: var(--radius-xl);
    padding: 40px 60px; /* Padding lega dan simetris */
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-card); 
    max-width: 800px; /* Batasi lebar form biar rapi */
    margin: 0 auto; 
    position: relative;
    z-index: 10;
}

.tracking-header {
    text-align: center;
    margin-bottom: 35px;
    border-bottom: 2px dashed #e2e8f0; /* Garis pembatas yang lebih soft */
    padding-bottom: 25px;
}

.tracking-header h2 {
    color: var(--text-main); /* Ubah ke gelap */
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tracking-header p {
    color: var(--text-secondary); /* Ubah ke gelap */
    font-size: 1rem;
    margin: 0;
}

/* ==========================================================================
   3. FORM ELEMENTS
   ========================================================================== */
.form-group-custom {
    margin-bottom: 24px;
}

.form-group-custom label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155; /* Label form jadi gelap */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.form-control-clean {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 16px 20px; /* Diperbesar dikit biar enak diklik */
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control-clean:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(5, 84, 198, 0.1);
}

.form-control-clean::placeholder {
    color: var(--text-muted);
}

select.form-control-clean {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 16px 12px;
    appearance: none;
    cursor: pointer;
}

textarea.form-control-clean {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.input-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-header-wrapper label {
    margin-bottom: 0;
}

.input-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-clear {
    background: #fff1f2;
    color: #ef4444;
    border: 1px solid #ffe4e6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

.count-pill {
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================================
   4. CAPTCHA & BUTTONS
   ========================================================================== */
.captcha-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.captcha-display {
    flex: 1;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: var(--primary-dark);
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    user-select: none;
    height: 54px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.btn-track {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-track:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    background: var(--accent-red-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-card, .dino-card-wrapper { padding: 30px 20px; margin: 0 15px; border-radius: 16px; }
    .captcha-container { flex-direction: column; gap: 15px; align-items: stretch; }
    /* Padding bawah versi mobile juga kita kurangi sedikit proporsinya */
    .page-title { padding: 60px 20px 80px 20px; } 
}