/* Base styles */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-primary: #004a8f;
  --color-primary-soft: #e5f0ff;
  --color-accent: #ffb300;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-border: #dde3ec;
  --color-footer-bg: #0b1724;

  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-accent {
  background: var(--color-primary);
  color: #f9fafb;
}

/* Top bar */
.top-bar {
  background: #f3f4f6;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 1rem;
}

.top-bar-contact a {
  color: var(--color-muted);
  text-decoration: none;
}

.top-bar-contact a:hover {
  text-decoration: underline;
}

.top-bar .divider {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #0070d4);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav .nav-cta {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top left, #e5f0ff 0, #ffffff 48%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.75rem;
  align-items: center;
 
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 36rem;
}

.hero-actions {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-highlights li {
  display: flex;
  align-items: baseline;
}

.hero-highlights li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Hero panel */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hero-card p {
  margin-top: 0;
  color: var(--color-muted);
}

.hero-details {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.hero-details li + li {
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background 0.08s ease, border-color 0.08s ease;
}

.btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.primary-btn:hover {
  background: #0059aa;
}

.ghost-btn {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.ghost-btn:hover {
  border-color: var(--color-primary);
}

.full-btn {
  width: 100%;
}

/* Sections */
.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--color-muted);
  margin: 0;
}

.section-header.light p {
  color: #e5e7eb;
}

/* Common card/grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--color-border);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  margin-top: 0;
  color: var(--color-muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
}

.card-list li + li {
  margin-top: 0.35rem;
}

.card-list.compact li + li {
  margin-top: 0.2rem;
}

/* Notice */
.notice {
  padding: 1.25rem 0;
  background: #fff9e6;
  border-top: 1px solid #fbbf24;
  border-bottom: 1px solid #fbbf24;
}

.notice-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.notice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #f59e0b;
  color: #111827;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notice p {
  margin: 0;
}

/* Routes */
.routes-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.75rem;
}

.routes-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.routes-aside {
  display: grid;
  gap: 1rem;
}

.info-pill {
  background: var(--color-primary-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
}

.info-pill h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

/* About */
.about-grid {
  align-items: flex-start;
}

.about-meta {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.4rem 1.4rem;
}

.about-meta dl {
  margin: 0;
}

.about-meta dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.about-meta dd {
  margin: 0.1rem 0 0.8rem;
}

/* Contact */
.contact-grid {
  align-items: flex-start;
}

.contact-form {
  background: rgba(15, 23, 42, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #fff;
  color: #f9fafb;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-row textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-card {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.contact-card p {
  color: #e5e7eb;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: #9ca3af;
  padding: 1.75rem 0 2rem;
  font-size: 0.85rem;
}
.site-footer a {
  color: #9ca3af;
  text-decoration: underline;
}
.footer-inner {
  text-align: center;
}

.footer-meta {
  margin: 0.25rem 0;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner,
  .routes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-mark { 
    margin: 20px 40px;
  }
  .hero-panel {
    justify-content: flex-start;
  }

  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1180px){
  .logo-mark { 
    margin: 20px 40px;
  }
}
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
.logo-mark { 
    margin: 20px 40px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .two-col,
  .three-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 600px) {
  
  .logo-mark { 
    margin: 20px 40px;
  }
  .main-nav {
    gap: 1rem; 
    margin: 0 40px;
  }
  /* add a hamburger before the main-nav */
  .main-nav::before {
    content: "☰";
    font-size: 1.5rem;
    cursor: pointer;
  }
  /* float the top-bar at the bottom of the screen */
  .top-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100; 
  }
  /* add padding to the bottom of the body to avoid content being hidden behind the top-bar */
  body {
    padding-bottom: 5rem;
  }
  /* add a phone icon before the phone number, this is a link */
  .top-bar-phone::before {
    content: "📞 " ;
    margin-right: 0.25rem;
    display: inline-block;
  }

  /* add an email icon before the email address, this is a link */
  .top-bar-email::before {
    content: "✉️ " ;
    margin-right: 0.25rem;
    display: inline-block;
  }

  .tag-line {
    display: none;
  }

}

.bus-images {
  padding: 2rem 0;
  background: #ffffff;
}

.bus-images-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bus-images img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}
/* Contact card link visibility improvements */
.contact-card a {
  color: #ffffff;                     /* bright white for contrast */
  text-decoration: underline;          /* keeps it clear these are links */
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--color-accent);          /* bright yellow hover */
  text-decoration: none;               /* cleaner on hover */
}

/* main-logo id adjustments */
#main-logo {
  height: 100px;                       /* fixed height for consistency */
  width: auto;                         /* maintain aspect ratio */
  display: block;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.terms-block h2 {
  margin-bottom: 0.5rem;
}

.terms-block p,
.terms-block ul {
  margin-bottom: 0.75rem;
}

.terms-block ul {
  padding-left: 1.25rem;
  list-style: disc;
}

/* Enhanced Form Field Styling */
.form-group input[required],
.form-group select[required],
.form-group textarea[required] {
  border-left: 4px solid var(--color-accent);
  background-color: #fffdf5;
}

.form-group input[required]:focus,
.form-group select[required]:focus,
.form-group textarea[required]:focus {
  border-left-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 2px rgba(0, 74, 143, 0.1);
}

/* Valid field styling */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-left-color: #28a745;
  background-color: #f8fff9;
}

/* Required field labels */
.form-group label .required {
  color: var(--color-accent);
  font-weight: 600;
  margin-left: 2px;
}

/* Optional soft styling for required fields */
.form-group.required {
  position: relative;
}

.form-group.required::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 1px;
  z-index: 1;
}

/* Application Form Styles */
.application-container, .confirmation-container, .payment-container, .success-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.payment-container {
  max-width: 600px;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

/* White labels in accent section */
.section-accent .form-group label {
  color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  color: #000;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 74, 143, 0.1);
  color: #000;
}

.photo-upload {
  border: 2px dashed #ddd;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.photo-upload:hover {
  border-color: var(--color-primary);
}

.submit-btn, .payment-btn {
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.submit-btn:hover, .payment-btn:hover {
  background: #003366;
}

.payment-btn {
  background: #28a745;
}

.payment-btn:hover {
  background: #218838;
}

.payment-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.alert i {
  margin-right: 0.5rem;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Success and Confirmation Pages */
.success-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 10px;
}

.success-header i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.application-details, .payment-summary, .order-summary {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.detail-row, .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child, .summary-row:last-child {
  border-bottom: none;
}

.summary-row:last-child {
  border-bottom: 2px solid #007bff;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.detail-label {
  font-weight: 600;
  color: #495057;
}

.detail-value {
  color: #212529;
}

.next-steps {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.next-steps.payment-steps {
  background: #e7f3ff;
  border: 1px solid #bee5eb;
}

.payment-section, .contact-info {
  background: #e7f3ff;
  border: 2px solid #007bff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.contact-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
}

.payment-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.stripe-element {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
}

.security-info {
  background: #e7f3ff;
  border: 1px solid #bee5eb;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  background: #28a745;
  color: white;
}

.btn-primary {
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background: #0056b3;
  text-decoration: none;
  color: white;
}

.payment-btn.payment-main {
  background: #007bff;
  margin-top: 1rem;
}

.payment-btn.payment-main:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .application-container, .confirmation-container, .payment-container, .success-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .detail-row, .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
