@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;900&display=swap');
/* ===========================
   Ride Quote / Map Complete CSS
=========================== */

/* ===== Container & Layout ===== */
#container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;

    /* Helps prevent edge-hugging that can look “off center” */
    padding-left: 10px;
    padding-right: 10px;
}

/* Columns */
.col-form {
    flex: 0 0 40%;
    max-width: 500px;
    box-sizing: border-box;
}

.col-map {
    flex: 0 0 60%;
    max-width: 800px;
    padding-left: 20px;
    box-sizing: border-box;
}

/* ===== Form Styling ===== */
#routeform {
    color: white;
    background-color: limegreen;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 10px 10px 5px gray;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
	background-image: url("https://www.odigopro.com/wp-content/uploads/2026/02/greenMetalBrushedBg.jpg");
	background-repeat: no-repeat;
	background-size: cover;
}


/* ===== Trip Calculator Header (Reverse Shine + White Outline) ===== */
.odigo-trip-header{
    position: relative;
	display: block;
  text-align: center;
  margin: 0 0 18px;
      font-family: 'Orbitron', sans-serif;

  font-weight: 900;
  letter-spacing: .6px;
  line-height: 1.1;
  font-size: clamp(26px, 3vw, 40px);

  color: #7c3aed; /* ODIGO purple */

  /* White outline */
  -webkit-text-stroke: 0.5px #ffffff;
  text-shadow:
    0 0 1px #ffffff,
    0 0 2px rgba(255,255,255,.8);
}

/* Shine overlay */
.odigo-trip-header::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;

  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;

  color: rgba(255,255,255,1);

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 42%,
    rgba(0,0,0,1) 50%,
    transparent 58%,
    transparent 100%
  );
  -webkit-mask-size: 260% 100%;

  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 42%,
    rgba(0,0,0,1) 50%,
    transparent 58%,
    transparent 100%
  );
  mask-size: 260% 100%;

  animation: odigoTextShineOneWay 4s linear infinite;
}

@keyframes odigoTextShineOneWay{
  0%   { -webkit-mask-position: 130% 0%; mask-position: 130% 0%; }
  100% { -webkit-mask-position: -130% 0%; mask-position: -130% 0%; }
}



/* ===== Input Fields (RESTORED STYLE) ===== */
#origin,
#destination {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 8px;
    background-color: white;      /* Explicit reset */
    box-shadow: none;             /* Remove Divi shadow */
    outline: none;                /* Remove browser outline */
    font-size: 14px;
    box-sizing: border-box;
}

#origin {
    color: darkgreen;
}

#destination {
    color: darkred;
}

/* Focus state without shrinking */
#origin:focus,
#destination:focus {
    background-color: greenyellow;
    width: 100%;
}

/* ===== Text Blocks ===== */
#surge {
    color: white;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
}

#surgetwo {
    color: white;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}

#faretxt {
    color: white;
    font-weight: bold;
    font-size: 20px;
    line-height: 0.75;
    text-align: center;
}

#distancetxt {
    color: white;
    font-size: 11px;
    text-align: center;
}

#tax {
    color: black;
    font-style: italic;
    font-size: 10px;
    text-align: center;
    line-height: 1.5;
}

/* ===== Buttons ===== */
#button {
    display: flex;
    gap: 15px;

    /* FIX: center the Calculate button row */
    justify-content: center;
    align-items: center;
}

#submitBtn {
    width: 100%;
    max-width: 240px; /* prevents awkward stretching */
    border-radius: 20px;
    background-color: white;
    border: 1px solid black;
    padding: 10px;
    cursor: pointer;
}

#submitBtn:hover {
    filter: brightness(0.97);
}

/* ODIGO: Riders dropdown rounded edges */
#odigo-ride-container select#riders {
  border-radius: 20px !important;
}

/* Optional: also round the focus outline a bit (harmless) */
#odigo-ride-container select#riders:focus {
  border-radius: 20px !important;
}

/* ODIGO: Riders helper text to the right + italic */
#odigo-ride-container #odigo-riders-wrap {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

/* Keep the label on its own line */
#odigo-ride-container #odigo-riders-wrap > label,
#odigo-ride-container #odigo-riders-wrap > br {
  flex-basis: 100% !important;
}

/* Dropdown */
#odigo-ride-container #odigo-riders-wrap select#riders {
  border-radius: 20px !important;
}

/* "Does not affect price." */
#odigo-ride-container #odigo-riders-wrap small {
  display: inline-block !important;
  margin: 0 !important;
  font-style: italic !important;
  opacity: 0.85 !important;
}


/* ===== “Let’s ODIGO!” Button — Purple Metal (Serious Edition) ===== */
#nextButtonContainer {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  width: 100%;
}

/* Works for <button> or <a> injected by JS */
#nextButtonContainer button,
#nextButtonContainer a,
#nextBtn.odigo-btn {
  position: relative;
  overflow: hidden;

  width: 100%;
  max-width: 260px;
  border-radius: 26px;

  /* Metallic purple base */
  background: linear-gradient(145deg, #a855f7 0%, #7c3aed 40%, #5b21b6 100%);
  color: #fff;

  border: none;
  padding: 14px 36px 14px 22px; /* room for >>> */
  font-size: 17px;
  font-weight: 600;            /* less bold */
  letter-spacing: 0.4px;       /* slightly calmer */

  cursor: pointer;
  text-align: center;
  text-decoration: none;

  /* Metal depth only (NO glow / NO breathing) */
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

/* Hover = subtle lift, no glow, no scale */
#nextButtonContainer button:hover,
#nextButtonContainer a:hover,
#nextBtn.odigo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4),
    0 12px 20px rgba(0, 0, 0, 0.28);
}

/* >>> indicator (kept, but more understated) */
#nextButtonContainer button::after,
#nextButtonContainer a::after,
#nextBtn.odigo-btn::after {
  content: "›››";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;

  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Slide >>> in on hover (subtle) */
#nextButtonContainer button:hover::after,
#nextButtonContainer a:hover::after,
#nextBtn.odigo-btn:hover::after {
  transform: translateY(-50%) translateX(0);
  opacity: 0.95;
}

/* Metallic light sweep overlay (kept, subtle) */
#nextButtonContainer button::before,
#nextButtonContainer a::before,
#nextBtn.odigo-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );

  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

/* Light sweep on hover */
#nextButtonContainer button:hover::before,
#nextButtonContainer a:hover::before,
#nextBtn.odigo-btn:hover::before {
  left: 140%;
}

/* ===== Map Styling ===== */
#map {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    box-shadow: 10px 10px 5px gray;
    box-sizing: border-box;
}

/* ===== Responsive ===== */
@media only screen and (max-width: 768px) {
    #container {
        flex-direction: column;
        align-items: center;
        display: flex;
        padding-left: 10px;
        padding-right: 10px;
    }

    .col-form,
    .col-map {
        max-width: 100%;
        padding-left: 0;
        margin: 0 auto 20px auto;
        width: 100%;
        box-sizing: border-box;
    }

    #map {
        width: 100%;
        max-width: 100%;
        height: 320px;
        min-height: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}
