body {
  font-family: Arial, sans-serif;
  background: #F9FAFB;
  margin: 0;
  padding: 0;
}

.container {
  background: transparent;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
  max-width: 1200px; /* 🔥 give the layout room */
  margin: 0 auto;
  padding: 0 16px;
}

h1 {
  color: #0B1F5C;
}

#continueBtn {
  padding: 12px 20px;
  background: #F5A800;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

#continueBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.step.hidden {
  display: none;
}

.actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ===========================
   FIGMA-STYLE TRACKER
=========================== */

.status-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

/* CONTAINER */
.status-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  position: relative;
}

/* STEP WRAPPER */
.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

/* NODE (CIRCLE) */
.node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ACTIVE */
.node.active {
  background: #1e3a8a;
  color: white;
}

/* COMPLETED */
.node.completed {
  background: #1e3a8a;
  color: white;
}

/* CONNECTOR LINE */
.connector {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  z-index: 1;
}

/* FILLED CONNECTOR */
.connector.filled {
  background: #1e3a8a;
}

/* LABEL */
.tracker-step p {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
}

.steps {
  margin-top: 0; /* 👈 removes offset */
}

.circle {
  position: relative;
  top: 0; /* 👈 aligns with line */
}

.hidden {
  display: none;
}

.stepper {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.step {
  padding: 6px 10px;
  border-radius: 20px;
  background: #eee;
}

.step.done {
  background: #4CAF50;
  color: white;
}

.step.active {
  background: #2196F3;
  color: white;
}

.status-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
}

.badge.success {
  color: green;
}

.badge.pending {
  color: orange;
}

/* REQUEST CARDS
===================*/
.new-request-page .request-card {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 16px;
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;

  /* 🔥 CRITICAL FIXES */
  width: auto;        /* instead of 100% */
  max-width: 90%;    /* stay inside grid */
}

.new-request-page .request-card:hover {
  border-color: #0c2348;
  background: #f8fbff; /* 👈 very light blue tint */
  box-shadow: 0 4px 10px rgba(59,130,246,0.08); /* 👈 blue shadow */
}

.new-request-page .request-card.selected {
  border: 2px solid #0c2348;
  background: #eef2ff; /* 👈 slightly stronger than hover */
}

.icon {
  font-size: 24px;
}

.new-request-page .request-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5; /* 👈 tighter */

}

.new-request-page .request-card p {
  margin: 0;        /* 👈 remove gap completely */
  font-size: 12.5px;
  color: #6b7280;
  line-height: 0.2; /* 👈 tighter */
}

.request-icon {
  width: 34px;
  height: 34px;
  font-size: 16px;
  border-radius: 8px;
  background: #1e3a8a;

  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.request-card div {
  display: flex;
  flex-direction: column;
  gap: 2px; /* 👈 precise spacing control */
}

/* CONTINUE BUTTON
====================*/
#continueBtn {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;

  padding: 12px;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;

  background: #d1d5db; /* default (disabled look) */
  color: white;
  font-weight: 600;
}

.continue-wrapper {
  margin-top: 16px; /* 👈 creates space from last card */
}

#continueBtn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

#continueBtn:not(:disabled) {
  background: #1e3a8a; /* UPSA blue */
  cursor: pointer;
}

#continueBtn:not(:disabled):hover {
  background: #1e40af;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.back-arrow {
  font-size: 18px;
  cursor: pointer;
  color: #2b3f8f;
}

.top-text h3 {
  margin: 0;
  font-size: 16px;
  color: #2b3f8f;
}

.top-text p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* =========================
   SEGMENTED PROGRESS
========================= */
.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px auto 25px;
  max-width: 500px;
  position: relative;
}

.step {
  all: unset;
  display: block;
  flex: 1;
  height: 4px;
  background: #ddd;
  border-radius: 999px;
}

.step.active {
  background: #1e3a8a;
}

/* ===========================
   SUCCESS MESSAGE
=========================== */

.success-message {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;

  background-color: #e6f9ed;
  color: #1a7f37;

  border: 1px solid #b7ebc6;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 500;

  animation: fadeIn 0.3s ease-in-out;

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.success-message.show {
  display: block;
}

/* Optional subtle animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#toReviewBtn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0a2e73, #123c9e);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  transition: 0.2s ease;
}

#toReviewBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#toReviewBtn:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* ===========================
   REVIEW PAGE DESIGN
=========================== */

.summary-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 20px;
  max-width: 600px;
  margin: 20px auto;
}

.summary-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section h3 {
  margin-bottom: 10px;
  color: #1a2b6d;
}

.summary-section p {
  margin: 5px 0;
  font-size: 15px;
}

.summary-section strong {
  color: #333;
}

/* ===========================
   REQUEST CARD
=========================== */

.request-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px; /* increased spacing */
  margin-bottom: 12px; /* 🔥 adds space before progress bar */
}

/* Meta Info */
.card-meta {
  margin-top: 10px;
  flex: 1;
  text-align: left;
}

.card-meta p {
  display: flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  margin: 6px 0; /* 🔥 more breathing room between lines */
  font-size: 14px;
}

/* CARD BODY LAYOUT */
.card-body {
  display: block;
}

/* Status Badge */
.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.status-badge.submitted {
  background: #ffffe0;
  color: #1a2b6d;
}

.status-badge.pending {
  background: #fff4d6;
  color: #b7791f;
}

.status-badge.in-progress {
  background: #ffe4cc;
  color: #c05621;
}

.status-badge.completed {
  background: #d1fae5;
  color: #047857;
}

/* PROGRESS BAR (FIXED) */
.progress-line {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: #1a2b6d;
  border-radius: 6px;
}

/* Button */
.secondary-btn {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #1a2b6d;
  background: transparent;
  color: #1a2b6d;
  cursor: pointer;
  margin-top: 15px;
}

.secondary-btn:hover {
  background: #1a2b6d;
  color: #fff;
}

.progress-line {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  margin: 12px 0;
  display: block; /* 🔥 force render */
}

.progress-fill {
  height: 100%;
  background: #1a2b6d;
  width: 25%; /* fallback */
  border-radius: 6px;
  display: block;
}

/* ===========================
   STATUS TRACKER (UPGRADED)
=========================== */

.status-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.status-steps {
  position: relative;
  margin-top: 20px;
}

/* TRACK LINE */
.progress-track {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  z-index: 1;
}

/* FILLED LINE */
.progress-fill {
  height: 100%;
  background: #1e3a8a;
  width: 0%;
  transition: width 0.3s ease;
}

/* STEPS ROW */
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 10px;
}

/* INDIVIDUAL STEP */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* CIRCLE */
.circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ACTIVE */
.step.active .circle {
  background: #1e3a8a;
  color: white;
}

/* COMPLETED */
.step.completed .circle {
  background: #1e3a8a;
  color: white;
}

/* LABEL */
.step p {
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap; /* 👈 prevents stacking */
}

.info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); 
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827; /* strong heading */
}

.info-row {
  display: flex;
  align-items: center; /* 🔥 THIS is the fix */
  gap: 12px;
}

/* PRIMARY TEXT */
.info-row p {
  margin: 2px 0;
  font-size: 14px;
  color: #111827;
}

/* SECONDARY TEXT (labels like "Type", "Submitted") */
.info-row p strong {
  color: #374151; /* softer than title */
  font-weight: 600;
}

.info-row > div {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 🔥 vertical harmony */
}

/* MUTED TEXT */
.info-sub {
  color: #6b7280;
  font-size: 13px;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;

  flex-shrink: 0; /* 🔥 prevents squishing */
}

/* Context colors */
.info-card:nth-child(2) .info-icon { background: #eef2ff; color: #1e3a8a; } /* Payment */
.info-card:nth-child(3) .info-icon { background: #fff7ed; color: #c2410c; } /* Processing */
.info-card:nth-child(4) .info-icon { background: #ecfdf5; color: #047857; } /* Delivery */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 500;
}

/* SUCCESS */
.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

/* PENDING */
.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.app-title {
  text-align: center;
  margin-top: 20px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.request-header-row {
  display: flex;
  justify-content: space-between; /* 🔥 pushes button right */
  align-items: center;
  margin: 20px 0 10px;
}

.request-header-row .primary-btn {
  width: auto !important;
  flex: 0 0 auto;   /* prevents flex growth */
}

.request-context {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.request-context h3 {
  margin: 0;
}

.request-context p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

.primary-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #2d4aa0;
  color: white;
  font-weight: 600;
  cursor: pointer;

  width: auto;
  min-width: 140px;   /* 👈 THIS is the key */
  text-align: center;
  flex: 0 0 auto;
}

.primary-btn:hover {
  background: #081f4f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 46, 115, 0.25);
}

.primary-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.app-title {
  background: #F2A900;
   color: white;  

  padding: 20px 0;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2d4aa0, #1e3a8a);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.app-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.request-page {
  background: #f5f7fb;
  max-width: 700px !important;
  margin: 0 auto !important;
  padding: 30px 0;
}

.request-page h2 {
  margin-top: 20px;
  margin-bottom: 16px;
  max-width: 640px;
}

/* ===========================
   DASHBOARD (INDEX PAGE)
=========================== */

/* Full page background */
body {
  background-color: #eef3fb; /* very light UPSA-tinted blue */
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Header */
.main-header {
  background-color: #082e6b;
  color: white;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 28px 20px;
  font-size: 22px;
}

/* Container */
.dashboard-page {
  background-color: #f5f7fb;
  min-height: 100vh;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 30px 20px;
  margin-top: -10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Page Title */
.page-title {
  color: #0b3d91;
  margin-bottom: 20px;
}

/* Page header (title + action) */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Remove full width behavior */
.primary-btn {
  width: auto;
  padding: 10px 18px;
  border-radius: 8px;
  background-color: #0b3d91;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* Hover refinement */
.primary-btn:hover {
  background-color: #082e6b;
}

/* ===========================
  DASHBOARD CARD REFINEMENT
=========================== */

/* Card container */
.dashboard-page .request-card {
  padding: 16px 18px;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover interaction */
.dashboard-page .request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Card title */
.dashboard-page .card-header h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

/* Status badge */
.dashboard-page .status-badge {
  margin-bottom: 10px;
  font-size: 13px;
  padding: 4px 10px;
}

/* Progress bar */
.dashboard-page .progress-line {
  height: 5px;
  margin: 10px 0 14px;
}

/* Meta info (Express, Pickup, Date) */
.dashboard-page .card-meta p {
  margin: 4px 0;
  font-size: 14px;
}

/* CTA button */
.dashboard-page .secondary-btn {
  margin-top: 12px;
  padding: 8px;
  font-size: 14px;
}

/* ===========================
   DETAILS PAGE REFINEMENT
=========================== */

.details-page {
  background-color: #ffffff;
  min-height: 100vh;
  border-radius: 20px;
  padding: 30px 20px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Header alignment */
.details-page .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
}

/* Back arrow */
.details-page .back-arrow {
  font-size: 20px;
  cursor: pointer;
  color: #0b3d91;
  margin-top: 6px;
}

/* Title group */
.details-page .title-group h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0b3d91;
  margin: 0;
}

.details-page .title-group p {
  margin: 2px 0 0;
  font-size: 14px;
  color: #666;
  text-align: left;
}

/* Cards (shared polish) */
.details-page .status-card,
.details-page .info-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover polish */
.details-page .status-card:hover,
.details-page .info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Section titles */
.details-page h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #1a1a1a;
}

/* Page Labels */
.details-page .page-label {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-page .info-row p {
  margin: 4px 0;
}

/* ===========================
   STATUS TRACKER (UPGRADE)
=========================== */

.status-tracker {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Background line */
.tracker-line {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e3eb;
  border-radius: 2px;
  z-index: 1;
}

/* Filled progress */
.tracker-progress {
  position: absolute;
  top: 18px;
  left: 0;
  height: 4px;
  background: #0b3d91;
  border-radius: 2px;
  z-index: 2;
  transition: width 0.3s ease;
}

/* Each step */
.tracker-step {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
}

/* Circle */
.node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e3eb;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
}

/* Completed */
.node.completed {
  background: #0b3d91;
}

/* Active */
.node.active {
  background: #0b3d91;
  transform: scale(1.1);
}

/* Labels */
.tracker-step p {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

/* Emphasis */
.node.completed + p,
.node.active + p {
  color: #0b3d91;
  font-weight: 600;
}

/* ===========================
   NEW REQUEST CARDS (UPGRADE)
=========================== */
.container.new-request-page {
  max-width: 900px; /* or 1100px if you want tighter */
  padding: 0 16px;
}

.new-request-page .request-card {
  display: flex;
  align-items: center;
  gap: 16px;

  height: 100px;
  width: 100%;

  padding: 16px;

  background: #ffffff;
  border-radius: 12px;
  cursor: pointer;

  overflow: hidden; /* 🔥 prevents bleed */

  transition: all 0.2s ease;
}

.new-request-page .request-card:hover {
  transform: translateY(-2px);
}

.new-request-page .request-card.selected {
  border: 2px solid #2d4aa0;
  background: #eef2ff;
}

.new-request-page .card-content {
  min-width: 0; /* 🔥 CRITICAL */
}

.new-request-page .request-options-container {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .new-request-page .request-options-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .new-request-page .request-options-container {
    grid-template-columns: 1fr;
  }
}

.new-request-page .request-panel {
  background: #f3f4f6;
  padding: 32px;
  border-radius: 16px;

  width: 100%; /* 🔥 let it fill container */
  margin-top: 20px;

  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}


.system-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.request-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  margin-top: 20px;
}

.card-header h2 {
  margin-bottom: 5px;
}

.card-subtitle {
  font-size: 13px;
  color: #777;
}

.card-body {
  margin-top: 15px;
}

/* 🔥 THIS FIXES YOUR MAIN PROBLEM */
.form-grid {
  max-width: 420px;
  min-width: 0;
  margin: 0 auto;
}

/* Inputs */
.form-grid input,
.form-grid select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===========================
   SYSTEM HEADER (REQUEST DETAILS PAGE)
=========================== */
.system-header {
  width: 100%;
  background: #003A8F;
  color: #ffffff;
  text-align: center;
  padding: 14px 20px;
}

.system-header h1 {
  color: #ffffff; /* 🔥 ADD THIS */
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT */
.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 45px;
  object-fit: contain;
}

/* CENTER */
.header-center {
  flex: 1;
  text-align: center;
}

.header-center h1 {
  color: white;
  font-size: 30px;
  margin: 0;
}

/* ===========================
  REQUEST DETAILS PAGE
=========================== */


/* HEADER PART */
.details-header {
  margin-bottom: 20px;
  padding: 0 5px;
}

.section-label {
  font-size: 24px;      /* bigger */
  font-weight: 700;     /* bold */
  letter-spacing: 0.5px;
   color: #003A8F         /* stronger */
}

.details-header h2 {
  font-size: 22px;
  margin: 0;
}

.card-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* WORKFLOW BAR */
.workflow-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  padding: 0;
  margin-bottom: 10px;
}

.workflow-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-text h3 {
  margin: 0;
  font-size: 18px;
}

.top-text p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* PROGRESS LINE */
.progress-line {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 10px 0 20px;
}


.progress-fill {
  height: 100%;
  background: #1e3a8a;
  width: 0%;
  transition: width 0.3s ease;
}

/* BUTTON */
.primary-btn {
  background: #003A8F;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.primary-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* OUTER CARD */
.request-details-card {
  max-width: 900px;
  margin: 30px auto;
  padding: 16 px 24px 24px;  
}

/* HEADER */
.details-header {
  margin-top: 0;
  margin-bottom: 12px;
}

/* INNER CARD */
.form-card {
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.top-text h3 {
  color: #003A8F;
}

.section-label {
  color: #003A8F;
}

.card-subtitle {
  color: #666;   /* keep softer */
}

.page-align {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 5px;
  padding-right: 5px;
}

/* ========================= */
/* FORM STRUCTURE (REFINED) */
/* ========================= */

.form-section {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e9ef;
  grid-column: 1 / -1;
  display: block;
  text-align: left !important;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d3b72;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* 🔥 THIS IS THE KEY CHANGE */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* 🔥 FORCE GRID VISIBILITY (DEBUG MODE) */
.form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
}

.form-group {
  display: flex;
  flex-direction: column;
}

/* Optional: better spacing between groups */
.form-group label {
  margin-bottom: 6px;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* EMAIL CHECKBOX */
.checkbox-group {
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;   /* 🔥 KEY FIX */
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
}

.checkbox-label input {
  margin: 0;            /* remove weird offset */
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-actions .primary-btn {
  min-width: 160px;
}

.progress-steps {
  display: flex;
  gap: 6px;
  margin: 16px 0 24px;
}

.step {
  flex: 1;
  height: 6px;
  background: #e5e7eb; /* light grey */
  border-radius: 4px;
}

.step.active {
  background: #1d3b72; /* your primary blue */
}

.delivery-option {
  text-align: left; /* 🔥 breaks the centering */
  justify-content: flex-start;
  display: block !important;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row span {
  flex: none;
}

/* =========================
   SECTION HEADER
========================= */
.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.section-header p {
  color: #666;
  font-size: 14px;
}

/* =========================
   CARD SYSTEM
========================= */
.payment-card,
.upload-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 0 auto 24px auto;

  max-width: 520px;   /* 🔥 THIS is the main fix */
  width: 100%;

  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.payment-card .card-body,
.upload-section .card-body {
  margin-top: 10px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-header h3 {
  font-size: 16px;
  margin: 0;
}

/* =========================
   BADGES
========================= */
.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: #1d4ed8;
}

.badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.success {
  background: #dcfce7;
  color: #166534;
}

/* =========================
   UPLOAD BOX ENHANCEMENT
========================= */
.upload-box {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 40px 20px;   /* 🔥 more vertical height */
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-box:hover {
  border-color: #1d4ed8;
  background: #f9fbff;
}

.upload-box.active {
  border-color: #16a34a;
  background: #f0fdf4;
}

/* =========================
   FULL WIDTH BUTTON
========================= */
.full-width {
width: 100%;
}

/* ONLY buttons inside payment & upload cards */
.payment-card .primary-btn,
.upload-section .primary-btn {
  width: 100%;
  display: block;
}

.button-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.button-row .primary-btn {
  width: 100%;
  max-width: 360px;
}

/* =========================
   REVIEW GRID (2-COLUMN)
========================= */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-section {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #eee;
}

@media (max-width: 768px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SUBMIT BUTTON LAYOUT
========================= */
.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.submit-row .primary-btn {
  width: 50%;
  max-width: 300px; /* keeps it clean on large screens */
}

.primary-btn {
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 15px;
}

.submit-btn {
  width: 50%;
}

/* ===========================
   ADMIN DASHBOARD
=========================== */

.admin-request-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.admin-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card-header h3 {
  margin: 0;
  font-size: 18px;
}

.admin-card-body {
  font-size: 14px;
  color: #444;
}

.admin-card-actions {
  margin-top: 10px;
}

.admin-filters {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.filter-btn.active {
  background: #0b3d91;
  color: #fff;
  border-color: #0b3d91;
}

/* ===========================
   ADMIN DETAILS
=========================== */

.admin-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.details-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.details-card h3 {
  margin-bottom: 10px;
}

#statusSelect {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

/* ======================
   ADMIN AUDIT TRAIL
========================= */
#auditTrail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.audit-item {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  border-left: 4px solid #0b3d91;
}

/* ======================
   WARNING MESSAGE
========================= */
.warning-message {
  background: #fff3cd;
  color: #856404;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
}

/* ======================
   WARNING MESSAGE
========================= */
.notification-message {
  background: #e6f4ea;
  color: #1e7e34;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  body {
    padding: 0 10px;
  }

  .container {
    width: 100%;
    padding: 10px;
  }

  h1, h2, h3 {
    font-size: 18px;
  }

  .card, .form-card {
    padding: 15px;
    border-radius: 12px;
  }

  input, select {
    width: 100%;
    font-size: 16px;
  }

  button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  .row {
    display: block;
  }

  .grid {
    display: block;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

}

@media (max-width: 768px) {
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .main-card {
    width: 100%;
    margin: 0;
  }
}

/* ======================
   CASE STUDY
========================= */
.case-study {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.case-study section {
  margin-bottom: 50px;
}

.case-study h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.case-study h2 {
  margin-bottom: 15px;
  color: #1a3d7c;
}

.case-study h3 {
  margin-bottom: 8px;
}

.case-study p,
.case-study li {
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}

/* HERO */
.cs-hero {
  text-align: center;
  margin-bottom: 60px;
}

.cs-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 14px;
  color: #666;
  margin: 15px 0;
}

.primary-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #1a3d7c;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

/* ======================
   WALKTHROUGH
========================= */

.cs-step {
  margin-bottom: 50px;
}

.cs-step p {
  margin-bottom: 15px;
  color: #555;
}

/* ======================
   IMAGES
========================= */

.cs-images {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cs-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.cs-group img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.cs-group img:hover {
  transform: scale(1.02);
}

/* Desktop layout */
@media (min-width: 768px) {
  .cs-group {
    grid-template-columns: 1fr 1fr;
  }
}

.img-caption {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.cs-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.secondary-btn {
  background: transparent;
  color: #1a3d7c;
  border: 1px solid #1a3d7c;
}

.cs-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.primary-btn {
  display: inline-block;
}

.secondary-btn {
  padding: 12px 20px;
  border: 1px solid #1a3d7c;
  color: #1a3d7c;
  text-decoration: none;
  border-radius: 6px;
}

/* PORTFOLIO */

.portfolio {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.project-card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.project-links {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}