/* ==========================================================================
   Eghosa Logistics - Global Design System Variables & Theme
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-navy: #0F172A;      /* Deep Navy (Primary Backgrounds / Headers) */
  --secondary-blue: #0284C7;    /* Electric Blue (Accents & Primary Buttons) */
  --accent-orange: #F97316;    /* Safety Orange (CTAs, Badges & Highlights) */
  --surface-dark: #1E293B;     /* Card Dark Surface */
  
  /* Neutral Palette */
  --bg-light: #F8FAFC;         /* Main Page Background */
  --card-bg: #FFFFFF;         /* Card Background */
  --text-main: #0F172A;       /* Headings & Main Text */
  --text-muted: #64748B;      /* Secondary Labels & Subtitles */
  --border-color: #E2E8F0;    /* Card & Input Borders */

  /* Status Colors */
  --status-pending: #EAB308;
  --status-transit: #0284C7;
  --status-delivered: #22C55E;
  --status-cancelled: #EF4444;

  /* Fonts & Shadows */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navbar Section (Non-sticky, scrolls naturally)
   ========================================================================== */

.site-header {
  position: relative; /* Standard layout flow (does not follow scroll) */
  top: auto;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: var(--secondary-blue);
  transition: color 0.2s ease;
}

a:hover {
  color: #0369A1;
}

/* Common UI Components */
.btn-primary {
  background-color: var(--secondary-blue);
  color: #FFFFFF;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #0369A1;
  color: #FFFFFF;
}

.btn-orange {
  background-color: var(--accent-orange);
  color: #FFFFFF;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-orange:hover {
  background-color: #EA580C;
  color: #FFFFFF;
}

/* ==========================================================================
   Visual Enhancements & Hero Banner System
   ========================================================================== */

.hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.88)),
              url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent-orange);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.70) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Feature & Service Card Styling */
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.feature-card-body {
  padding: 1.5rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.visual-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.visual-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.visual-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon-overlay {
  position: absolute;
  bottom: -20px;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.938rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-footer-link {
  margin-top: auto;
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.card-footer-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   Premium Form Section & Layout Systems
   ========================================================================== */

.form-section-wrapper {
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.form-layout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

.form-card-main {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
}

/* Sidebar Info Card */
.sidebar-info-card {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--surface-dark);
}

/* Form Row & Grid Structure */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group-custom label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group-custom label span.required {
  color: #ef4444;
}

/* Comprehensive Form Control Field Styling (Catches Django Defaults) */
.form-card-main input[type="text"],
.form-card-main input[type="email"],
.form-card-main input[type="tel"],
.form-card-main input[type="number"],
.form-card-main input[type="date"],
.form-card-main select,
.form-card-main textarea,
.form-input,
.form-select,
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* Field Focus State */
.form-card-main input:focus,
.form-card-main select:focus,
.form-card-main textarea:focus,
.form-input:focus,
.form-select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

/* Textarea Specific Dimensions */
.form-card-main textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit Button */
.btn-submit-orange {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-orange), #ea580c);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

/* Section Dividers inside forms */
.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .form-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 3.5rem 1rem;
  }
  .hero-title {
    font-size: 2rem !important;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}