
/* font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
:root {
    --primary: #f39c12;
    --secondary: #8e44ad;
    --dark: #1e1e2f;
    --white: #ffffff;
    --text: #2c3e50;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e1e2f 0%, #3a1c71 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation bar */
.navbar {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.logo { color: var(--dark); font-weight: 700; font-size: 1.5rem; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 14px; }
.btn-nav { background: var(--secondary); color: white !important; padding: 8px 10px; border-radius: 50px; }


/* instructions button */
.button {
  background-color: #f39c12;
  border: none;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}
.button1 {border-radius: 8px;}


/* Fare matrix */
.container { flex: 1; padding: 40px 5%; }
.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 3.5rem; color: var(--primary); }
.booking-section { display: flex; gap: 30px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.card, .form-container, .success-box {
    background: var(--white);
    color: var(--text);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.calculator-card { flex: 1; min-width: 350px; }
.map-container { 
    flex: 2; 
    min-width: 350px; 
    height: 500px; 
    border-radius: 25px; 
    overflow: hidden; 
    border: 5px solid white; 
    position: relative;
}
.map-container iframe { width: 100%; height: 100%; border: none; }
.map-overlay { position: absolute; top: 15px; left: 15px; background: var(--secondary); color: white; padding: 5px 15px; border-radius: 20px; z-index: 5; font-size: 12px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.checkbox-group input { width: 18px; height: 18px; cursor: pointer; }
.checkbox-group label { color: var(--text); font-size: 0.9rem; font-weight: 600; cursor: pointer; }

/* Inputs: Padding added  to stop clashing letter */
input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-family: inherit;
}


.table-class td { padding: 8px 16px;}


.split-input { display: flex; gap: 10px; }
.result-box { background: #f1f2f6; padding: 20px; border-radius: 15px; border-left: 6px solid var(--primary); }
.btn-main { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; margin-top: 10px; }

/* foot */
footer { background: rgba(0, 0, 0, 0.4); text-align: center; padding: 25px; font-size: 14px; margin-top: auto; }
footer a { color: var(--primary); text-decoration: none; }

/*Page center */
.page-center { justify-content: center; align-items: center; display: flex; flex: 1; padding: 40px 20px; }
.success-icon { font-size: 4rem; color: #2ecc71; margin-bottom: 10px; text-align: center; }
.success-box { text-align: center; max-width: 450px; width: 100%; }

/* Schedule table */
.tg  {border-collapse:collapse;border-spacing:0;}
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
  overflow:hidden;padding:10px 5px;word-break:normal;}
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg .tg-fymr{border-color:inherit;font-weight:bold;text-align:left;vertical-align:top}
.tg .tg-b2c8{background-color:#ffffff;border-color:inherit;font-weight:bold;text-align:left;text-decoration:underline;
  vertical-align:top}
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
/* Source: https://www.tablesgenerator.com/html_tables# */

/* select dropdown */
select {
  appearance: none;
@supports (appearance: base-select) {
  &, &::picker(select) {
      appearance: base-select;
    }
  }
}

select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2c3e50;
  border-radius: 5px;
  border: 2px solid #8e44ad;
  cursor: pointer;
  padding: 10px;
  background-color: #f39c12;
}

select {
  /* Previous properties, but updated the padding */
  padding-block: 10px;
  padding-inline: 70px 70px;
  background: #f39c12 url("arrow.svg") right 10px center / 20px no-repeat;
}

select {
  /* ... */
  @supports (appearance: base-select) {
    &:open::picker-icon {
      /* ... */
    }
    &::picker(select) {
      padding: 0;
      margin-top: 5px;
      border: 2px solid #8e44ad;
      background: white;
      border-radius: 5px;
      font-weight: 400;
    }
  }
}

select {
  /* ... */
  @supports (appearance: base-select) {
    &:open::picker-icon {
      /* ... */
    }
    &::picker(select) {
      /* ... */
      opacity: 0;
      height: 0;
      overflow: clip;
      transition: height 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s,
      display 0.5s;
      transition-behavior: allow-discrete;
    }
    &:open::picker(select) {
      opacity: 1;
      height: calc-size(auto, size);
      overflow: auto;
      @starting-style {
        opacity: 0;
        height: 0;
      }
    }
    /* ... */
  }
}

option {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 10px;
}
/* Source: https://utilitybend.com/blog/the-customizable-select-part-one-history-trickery-and-styling-the-select-with-css/ */

/*Help center: collapsible menu */
.collapsible {
  background-color: white;
  color: #f39c12;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.active, .collapsible:hover {
  background-color: white;
}

.collapsible:after {
  content: '\002B';
  color: #f39c12;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: #f39c12;
}
/*source: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_collapsible_symbol */


