/* ---------------------------------------------
         RESET & GLOBAL VARIABLES
--------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: 'Rubik', sans-serif;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #4f75ec;
  --dark-blue: #07223F;
  --background: #F0F2F5;
  --orange: #E05024;
  --light-blue: #BDC9E5;
  --light-grey: #737E93;
  --dark-grey: #303C47;
  --error: #D23838;
}

/* ---------------------------------------------
                TYPOGRAPHY
--------------------------------------------- */
h1,
h2,
h3,
p {
  line-height: 1.6;
  color: var(--dark-blue);
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

h2 {
  font-size: 16px;
  font-weight: bold;
}

h3 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

input,
textarea,
select,
button {
  font-size: 14px !important;
}

/* ---------------------------------------------
              GENERAL ELEMENTS
--------------------------------------------- */
input,
select {
  font-family: 'Rubik', sans-serif;
  flex: 1;
  border: none;
  background: none;
  outline: none;
  width: 100%;
  color: var(--dark-blue);
}

input::placeholder {
  color: var(--light-grey);
  font-weight: 300;
}

button,
.option-button,
.continue-button,
.button {
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  border: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.button:disabled,
.continue-button:disabled {
  background-color: gray;
  cursor: not-allowed;
  opacity: 0.6;
}

.button,
.continue-button {
  font-weight: 600;
  background-color: var(--primary-color);
  color: white;
  font-size: 18px;
  padding: 15px 30px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button:hover,
.continue-button:hover {
  background-color: #357abd;
}

.button-section {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.button-section .action-buttons {
  width: auto;
  width: 50%;
  margin: 0;
}

.back-button {
  width: 50%;
}

.back-button button {
  background-color: #FFF;
  width: 100%;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 15px;
  text-align: center;
  cursor: pointer;
  border-radius: 25px;
}

.option-button {
  display: flex;
  align-items: flex-end;
  font-size: 14px;
  padding: 15px;
  border: 1px solid var(--light-grey);
  border-radius: 16px;
  background-color: transparent;
  color: var(--light-grey);
  transition: all 0.3s ease;
  min-height: 84px;
  min-width: 100px;
}

.option-button.active,
.option-button:hover {
  border-color: var(--primary-color);
}

.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
  width: 100%;
}

ul {
  list-style-type: none;
  padding-left: 0.5rem;
  margin: 0.5rem 0;
}

input[type='radio'] {
  appearance: none;
  flex: initial;
  width: 20px;
  height: 20px;
  border: 1px solid #BDC9E5;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

input[type='radio']:checked {
  border: 6px solid var(--primary-color);
}

input[type='radio']:checked + h3,
input[type='radio']:checked + p {
  color: var(--primary-color);
}

#time-error {
  color: var(--error);
  font-size: 14px;
}

.cta-mobile {
  background: url(../images/phone-white.png) no-repeat 25% center;
  background-size: 22px 22px;
  display: none;
  position: fixed;
  background-color: var(--dark-blue);
  width: 100%;
  left: 0;
  bottom: 0;
  z-index: 9;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 20px;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0px 0px 10px 5px rgba(7,34,63, 0.15);
}

/* ---------------------------------------------
               HEADER SECTION
--------------------------------------------- */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
  background-color: var(--dark-blue);
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: sticky;
  top: 0;
}

.header-content {
  display: flex;
  justify-content: space-between; /* pushes logo left and pedido text right */
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  margin-bottom: 0px;
}

.name {
  width: 100px;
  margin-bottom: 0px;
}

.transport-request-container {
  display: flex;
  align-items: center;
  gap: 25px;
}

.language-switcher {
  color: #FFF;
}

.language-switcher a {
  text-decoration: none;
  color: #FFF;
  font-weight: 300;
  margin: 0px 5px;
  
}

.language-switcher span {
  color: #FFF;
  margin: 0px 5px;
  font-weight: 600;
}

.request-label {
  font-size: 0.9rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 4px;
}

.phone-row {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.phone-row a {
  display: block;
  font-size: 18px;
  background: url(../images/phone-blue.png) no-repeat 15px center;
  background-size: 18px 18px;
  border: 2px solid var(--primary-color);
  padding: 10px 20px 10px 45px;
  border-radius: 1.5rem;
}

.phone-row a:hover {
  background-color: var(--primary-color);
  background-image:url(../images/phone-white.png);
  transition: 0.5s ease-in-out;
}

.phone-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ---------------------------------------------
      CONTENT WRAPPER & IMAGE SECTION
--------------------------------------------- */
.content-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  min-height: 560px;
  align-items: flex-start;
  justify-content: space-between;
  background-color: white;
  overflow: hidden;
  margin: 35px 0;
  border-radius: 25px;
  padding: 50px;
}

.image-section {
  flex: 1;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.image-section img {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0px 0px 0px;
}

.image-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------
             FORM SECTION (1st page)
--------------------------------------------- */
.form-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  flex: 1;
  max-width: 380px;
}

#step1-form {
  position: relative;
}

.form-section h1 {
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.3em;
}

#form-section {
  position: relative;
}

#form-section.form-section h2 {
  gap: 10px;
  margin-bottom: 15px;
  margin-top: 30px;
}

.step1_2 .line {
  border-left: 1px solid var(--primary-color);
  height: 16px;
  position: absolute;
  top: 30px;
  left: 6px;
}

/* ---------------------------------------------
               INPUT GROUPS
--------------------------------------------- */
.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 8px 0;
  width: 100%;
}

#pickup {
  padding-left: 35px;
  background: url(../images/icon-location.png) no-repeat 12px center;
  background-size: 12px 12px;
}

#destination {
  padding-left: 35px;
  background: url(../images/icon-destination.png) no-repeat 12px center;
  background-size: 12px 17px;
}

.input-group select, .input-group input {
  background-color: white;
  border-radius: 25px;
  padding: 12px 20px;
  border: 1px solid var(--light-blue);
  height: 50px;
  color: var(--dark-blue);
  font-weight: 300;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
}

.input-group select {
  background: url(../images/arrow-down.png) no-repeat 96% center;
  background-size: 13px 8px;
}

.input-group label {
  margin-bottom: 8px;
  margin-top: 15px;
  color: var(--dark-blue);
  font-weight: 300;
  font-size: 16px;
  white-space: nowrap;
}

.step1 {
  flex-direction: row;
  align-items: center;
}

.step1 label {
  margin-bottom: 0;
  margin-right: 10px;
}

#date-input-group {
  cursor: pointer;
}

#date-input-group input[type='date'] {
  cursor: pointer;
}

#date-input-group input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

#date-input-group input[type="date"] {
  background: url(../images/icon-calendar.png) no-repeat 95% center;
  background-size: 17px 19px;
}

#time-input-group input[type="time"]::-webkit-calendar-picker-indicator {
  background: none;
}

#time-input-group input[type="time"] {
  background: url(../images/icon-time.png) no-repeat 95% center;
  background-size: 18px 18px;
}


/* MAP */
#map {
  width: 580px;
  height: 500px;
  border-radius: 25px;
  position: fixed;
  top:150px;
  right: 11%;
}

.mapboxgl-popup-content {
  border-radius: 5px!important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  padding: 5px 10px!important;
}

.mapboxgl-popup-tip {
  display: none!important;
}

.mapboxgl-popup-close-button {
  display: none!important;
}

/* ---------------------------------------------
             STEP 1.2
--------------------------------------------- */
.transport-data-section {
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--light-blue);
  position: relative;
}

.transport-data {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  color: var(--dark-blue);
  font-size: 14px;
  font-weight: 300;
}

.transport-data.pickup-section {
  background:url(../images/icon-location.png) no-repeat left 5px;
  background-size: 12px 12px;
  padding-left: 20px;
}

.transport-data.destination-section {
  margin-top: 15px;
  background:url(../images/icon-destination.png) no-repeat left 2px;
  background-size: 12px 17px;
  padding-left: 20px;
}

.transport-time {
  display: flex;
  justify-content: end;
  gap: 15px;
}

.transport-time p {
  position: relative;
  color: var(--light-grey);
  font-size: 12px;
  font-weight: 300;
}

.transport-time p:last-child::before {
  content: '';
  position: absolute;
  top: 50%;
  margin-top: -2px;
  left: -9px;
  width: 4px;
  height: 4px;
  background-color: var(--light-blue);
  border-radius: 50%;

}

.vehicle-info-header {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
}

.vehicle-info-header p {
  line-height: 1em;
}

.vehicle-info-header img {
  cursor: pointer;
  width: 10px;
  height: 10px;
}

.vehicle-info-desc {
  display: none;
  position: absolute;
  top: 45px;
  left: 20px;
  width: 90%;
  background: #F0F2F5;
  padding: 8px;
  border-radius: 15px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
  transition: 0.5s;
  z-index: 9999;
}

.vehicle-info-desc p {
  font-size: 12px;
}

.vehicle-card {
  position: relative;
  border: 1px solid var(--light-blue);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.vehicle-card input[type="radio"] {
  display: none;
}

.vehicle-card.selected {
  border:2px solid var(--primary-color);
}

.vehicle-card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 10px;
}

.vehicle-details {
  display: none;
  margin-top: 5px;
}

#vehicles-container {
  position: relative;
}

.vehicle-info {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.vehicle-info .vehicle-name {
  font-size: 14px;
  color: var(--dark-blue);
  font-weight: 500;
}

.vehicle-info-time {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--light-grey);
  font-size: 12px;
}

.vehicle-info-time p {
  margin: 0;
  color: var(--light-grey);
  font-size: 12px;
}

.vehicle-card img {
  max-width: 58px;
}

.vehicle-price {
  padding: 10px;
  font-size: 16px;
  color: var(--dark-blue);
  font-weight: 600;
  border-left: 1px solid var(--light-blue);
  min-width: 26%;
  text-align: right;
}

.loading-vehicles {
  color: var(--light-grey);
  font-size: 14px;
}

/* ---------------------------------------------
             RESUME SECTION
--------------------------------------------- */
#resume-section {
  flex: 1;
  width: 50%;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 380px;
}

#resume-section .summary-section {
  border-top: 1px solid var(--light-blue);
  padding-top: 15px;
}

.resume-page {
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 25px;
  margin-right: 100px;
  text-align: center;
}

.resume-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* .back-button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.back-button img {
  width: 30px;
  height: auto;
  cursor: pointer;
}

.resume-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.progress {
  flex: 1;
  height: 5px;
  background-color:rgba(79, 117, 236, 0.5);
  border-radius: 2.5px;
  margin: 0 2px;
}

.progress.active {
  background-color: var(--primary-color);
}

.progress-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-color);
  margin: 10px 0;
  text-align: left;
  width: 100%;
}

.summary-card {
  background-color: #F0F2F5;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 650px;
  margin: 20px auto;
}

.summary-card .location-date-section {
  position: relative;
}

.summary-card .location-date-section p {
  display: flex;
  flex-direction: row; /* icon + label + address in a row */
  flex-wrap: wrap; /* allows text to move onto a new line if it doesn't fit */
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 300;
  color: var(--dark-blue);
  margin: 10px 0;
  text-align: left;
}

.summary-card .location-date-section p.pickup-location {
  background: url(../images/icon-location.png) no-repeat left 5px;
  background-size: 12px 12px;
  padding-left: 20px;
}

.summary-card .location-date-section p.destination-location {
  margin-top: 15px;
  background: url(../images/icon-destination.png) no-repeat left 2px;
  background-size: 12px 17px;
  padding-left: 20px;
}

.summary-card .location-date-section .line {
  border-left: 1px solid var(--primary-color);
  height: 15px;
  position: absolute;
  top: 21px;
  left: 6px;
}

.summary-card .date-location {
  margin-top: 15px;
  background: url(../images/icon-calendar-blue.png) no-repeat center left;
  background-size: 14px 16px;
  padding-left: 20px;
}

.summary-card .time-location {
  margin-top: 15px;
  background: url(../images/icon-time-blue.png) no-repeat center left;
  background-size: 14px 14px;
  padding-left: 20px;
}

.summary-card .vehicle-card {
  background: #FFF;
  border: none;
}

.total-price {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
}

.action-buttons {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

#pay-section .continue-button {
  background-image: none;
}

.continue-button {
  background-color: var(--primary-color);
  background-image: url(../images/arrow.png);
  background-repeat: no-repeat;
  background-position: 92% center;
  background-size: 14px 7px;
  color: white;
  font-size: 16px;
  padding: 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

.continue-button:hover {
  background-color: var(--primary-color);
}

/* ---------------------------------------------
             ROUND TRIP BUTTON
--------------------------------------------- */
.round-trip-section {
  background-color: #F0F2F5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  color: #333;
  margin: 5px 0 15px;
  padding-top: 20px;
}

.round-trip-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.round-trip-left {
  display: flex;
  gap: 10px;
}

.round-trip input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

.toggle-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-container input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 50px;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle-slider::after {
  content: '';
  width: 22px;
  height: 22px;
  background-color: #BDC9E5;
  border-radius: 50%;
  position: absolute;
  top: -1px;
  left: -1px;
  transition: transform 0.3s ease;
}

.toggle-container input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-container input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.round-trip-discount {
  font-size: 12px;
  color: var(--primary-color);
  margin-left: 20px;
}

.total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

/* ---------------------------------------------
                DETAILS PAGE
--------------------------------------------- */
/*Removed this to make the header correct*/
/* .details-page {
  width: 50%;
  max-width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-right: 100px;
  flex: 1;
} */

.details-page {
  width: 50%;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 25px;
  text-align: center;
  max-width: 380px;
}

.options-section {
  margin: 20px 0;
  text-align: left;
  width: 100%;
}

.options-section p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-blue)
}

.options {
  display: flex;
  justify-content: start;
  gap: 20px;
}

.option-button.for-me {
  background: url(../images/icon-person.png) no-repeat center 18px;
  background-size: 19px 26px;
}

.option-button.for-other {
  background: url(../images/icon-person2.png) no-repeat center 16px;
  background-size: 32px 30px;
}

.option-button.active {
  color: var(--primary-color);
}

.hidden {
  display: none;
}

#details-form {
  width: 100%;
}

#details-form .two-col {
  display: flex;
  gap: 20px;
}

/* ---------------------------------------------
              EQUIPAMENTOS PAGE
--------------------------------------------- */
/* .equip-page {
  width: 50%;
  max-width: 100%;
  padding: 20px;
  margin-right: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
} */

.equip-page {
  width: 50%;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 25px;
  padding: 20px;
  margin-right: 100px;
  text-align: center;
}

.equip-form {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Title and Description Container */
.equip-form .section .text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.equip-form h3 {
  text-align: left;
  font-size: 16px;
  color: var(--dark-blue);
  font-weight: 600;
  margin: 0px;
}

.equip-form h4 {
  font-size: 14px;
  color: var(--dark-blue);
  font-weight: 400;
}

.equip-form p {
  color: var(--light-grey);
  font-size: 12px;
  line-height: 1.2;
  margin-top: 5px;
}

.equip-form .section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #FFF;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  box-shadow: 0px 0px 10px 0px rgba(189, 201, 229, 0.5);
}

.equip-form .section:hover {
  border: 1px solid var(--primary-color);
}

.equip-form .section h3 {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 100;
  margin: 0;
  line-height: 1.4;
}

.equip-form .section input[type='checkbox'] {
  appearance: none;
  flex: initial;
  width: 20px;
  height: 20px;
  border: 1px solid #BDC9E5;
  border-radius: 30%;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.equip-form .section input[type='checkbox']:checked {
  background: var(--primary-color) url(../images/check.png) no-repeat center;
  background-size: 12px 9px;
  border-color: var(--primary-color);
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
}

.equip-form .section input[type='checkbox']:checked + h3,
.equip-form .section input[type='checkbox']:checked + p {
  color: var(--primary-color);
}

.equip-form .section:hover h3 {
  color: #357abd;
}

/* Divider for better spacing between groups */
.equip-form .divider {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 20px 0;
}

/* ---------------------------------------------
            CONFIRMATION SECTION
--------------------------------------------- */
.confirm-page {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.confirm-header {
  width: 100%;
}

.equip-form {
  width: 100%;
  max-width: 100%;
  margin: 20px auto;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-container h3 {
  text-align: left;
}

.summary-section {
  margin-bottom: 1.5rem;
  margin-bottom: 0;
}

.summary-box {
  background-color: #F0F2F5;
  padding: 15px;
  border-radius: 10px;
}

#ambulancia-box {
  margin-top: 15px;
}

.summary-box li {
  font-size: 12px;
  margin: 5px 0;
}

.summary-box p {
  margin: 0.5rem 0;
  line-height: 1.5;
  color: var(--dark-grey);
  font-size: 14px;
  font-weight: 500;
}

.summary-box p span {
  font-weight: 300;
}

.summary-container h3 {
  text-align: left;
}

.summary-box p,
.summary-box input,
.summary-box textarea,
.summary-box ul,
.summary-box li {
  text-align: left;
}

.icon-input {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 0.5rem;
  background-color: #fff;
  border: 1px solid var(--light-blue);
  border-radius: 25px;
  padding: 12px;
}

.icon-input img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.icon-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #666;
}

.icon {
  width: 12px;
  height: 12px;
}

.icon-destination {
  width: 11px;
  height: 16px;
}

.line {
  border-left: 1px solid var(--primary-color);
  position: absolute;
}

#step1-form .line {
  height: 30px;
  top: 77px;
  left: 19px;
}

.dados-utente-confirm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.data-item {
  display: flex;
  align-items: center;
  flex-wrap: flex-start;
  font-size: 14px;
  color: var(--dark-grey);
}

#confirmation-container .user-name-confirm {
  margin-top: 0;
}

#confirmation-container .summary-box h3{
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 5px;
}
#confirmation-container .transport-description {
  margin-top: 0;
  padding: 0;
  font-size: 12px;
    line-height: 1.3em;
}

#confirmation-container #ambulancia-box p, #confirmation-container #adaptado-box p {
  font-size: 12px;
}

#confirmation-container #ambulancia-box p.total, #confirmation-container #adaptado-box p.total {
  font-size: 14px;
}


/* Styling for labels */
.data-item strong {
  min-width: auto;
  margin-right: 5px;
}

/* Styling for dynamic values */
.data-item span {
  margin-right: 5px;
  font-weight: 300;
}

textarea {
  width: 100%;
  border: 1px solid var(--light-blue);
  border-radius: 12px;
  padding: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  resize: none;
}

#observacoes:focus-visible, textarea:focus {
  border: 1px solid var(--light-blue)!important;
}

textarea::placeholder {
  color: #737E93;
  font-size: 14px;
  font-weight: 300;
}

li {
  font-size: 0.9rem;
  color: #333;
}

.discount {
  color: #f44336;
}

.total {
  color: #333;
  font-weight: 600; /* peso intermediário para evitar excesso */
  font-size: 16px; /* tamanho ajustado para equilíbrio visual */
}

.total .price-range strong {
  color: var(--primary-color);
  font-weight: 600; /* mantém um negrito moderado nos valores */
  font-size: 16px;
  margin: 0 1px; /* espaçamento leve para harmonia visual */
 
}

.total .price-range .separator {
  color: #333;
  font-weight: 600;
  margin: 0 1px; /* espaçamento leve para harmonia visual */
  
}



hr {
  border: none;
  height: 1px;
  background-color: var(--light-blue);
  margin: 0.8rem 0;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 0px;
}

.location-line p {
  font-weight: 300;
  margin: 15px 0 5px;
}

.user-name-confirm {
  padding-left: none;
}

.data-hora-confirm {
  display: flex;
  justify-content: start;
  gap: 20px;
}

.data-hora-confirm p {
  font-weight: 300;
  position: relative;
  margin: 0;
}

.data-hora-confirm p:last-child::before {
  content: '';
    position: absolute;
    top: 50%;
    margin-top: -2px;
    left: -11px;
    width: 4px;
    height: 4px;
    background-color: #737E93;
    border-radius: 50%;
}

/* Alinha o input radio e o texto na mesma linha */
.transport-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
  cursor: pointer;
  font-size: 14px;
}

/* Dá um espaço entre o radio e o texto */
.transport-label input[type='radio'] {
  margin-right: 8px;
}

/* Ajusta o parágrafo que contém a descrição e a lista */
.transport-description {
  margin-left: 25px; /* Indenta um pouco a descrição */
  margin-bottom: 20px; /* Espaço extra abaixo */
  color: #555; /* Cor de texto mais suave */
  padding: 5px;
}

/* Estiliza a lista dentro do p.transport-description */
.transport-description ul {
  list-style-type: disc; /* Marcadores de disco padrão */
  margin: 5px 0 0 20px; /* Ajusta margens para melhor leitura */
  padding-left: 0;
}

.transport-description ul li {
  margin-bottom: 5px; /* Espaço entre itens da lista */
}
/* ---------------------------------------------
                 PAY SECTION
--------------------------------------------- */

/* .pay-page {
  width: 50%;
  max-width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 100px;
  flex: 1;
}
 */

.pay-page {
  width: 100%;
  max-width: 350px;
  margin-right: 100px;
}

/* Forma de Pagamento */
.summary-section h3 {
  font-size: 16px;
  color: var(--dark-blue);
  text-align: left;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Borders */
.payment-option {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0px;
  border-bottom: 1px solid #e0e0e0;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}

.payment-option:last-child {
  border:none;
}

.payment-option .main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.payment-option .radio-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Container for image and text */
.payment-option .option-content {
  display: flex;
  align-items: center;
}

.payment-option img {
  margin-right: 15px;
  max-width: 20px;
}

img[src='Images/icon-link.svg'] {
  width: 35px;
  height: 35px;
}

#payment-result-box p {
  font-weight: 300;
  line-height: 1.3em;
}

#payment-result-box p.final {
  margin-top: 20px;
  border-top: 1px solid var(--light-blue);
  padding-top: 15px;
}

#payment-result-box p.note {
  font-size: 12px;
}

#payment-result-box ul {
  padding-left: 0;
}

#payment-result-box a {
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
}

#payment-result-box img {
  max-width: 135px;
  height: auto!important;
}

/* Main Content Container */
.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.payment-option p {
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  color: var(--dark-grey);
  margin: 0;
  line-height: 1.4;
}

.payment-option span {
  font-size: 14px;
  color: #357abd;
  flex: 1;
}

.payment-option input[type='radio'] {
  margin-left: 10px;
}

/* Container for Radio Buttons */
.radio-container {
  display: flex;
  align-items: center;
}

/* Styling for Additional Inputs */
.additional-input {
  display: none;
  margin-top: 10px;
  padding-left: 0;
}

.additional-input label {
  display: block;
  margin-bottom: 5px;
  padding-left: 5px;
  padding-top: 10px;
  color: var(--primary-color);
}

.additional-input input[type='text'] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}

.additional-input input[type='text']:hover {
  border-color: var(--primary-color);
  background-color: #f0f8ff;
}

/* ---------------------------------------------
            RESPONSIVE ADJUSTMENTS
--------------------------------------------- */
@media (max-width: 1366px) {
  #map {
    right: 9%;
  }
}

@media (max-width: 1280px) {
  #map {
    right: 7%;
  }
}

@media (max-width: 1200px) {
  #map {
    right: 10%;
  }
}

@media (max-width: 1024px) {
  #map {
    right: 4%;
  }
}


@media (min-width: 1120px) {
  .fixed-image {
    position: fixed;
    width: 100%;
    max-width: 500px;
  }


}

@media (max-width: 1200px) {
  .form-section.step1_2, .resume-page, .confirm-page, .pay-page {
    margin-right: 55px;
  }

  .content-wrapper {
    max-width: 1000px;
  }

  #map {
    width: 480px;
    height: 400px;
  }
}

@media (max-width: 1024px) {

}

@media (max-width: 990px) {
  .content-wrapper {
    background-color: transparent;
    padding: 0;
    flex-direction: column-reverse;
    margin: 0;
    min-height: auto;
  }

  #map {
    flex: 1;
    min-height: 400px;
    width: 100%;
    border-radius: 0px;
    position: relative;
    right: auto;
    top: auto;
  }

  body {
    background: #FFF;
  }

  .form-section {
    display: block;
    width: 100%;
    margin: 0;
    margin: 0 auto;
    background: #FFF;
    max-width: 100%;
    padding: 50px;
    margin-top: -45px;
    border-radius: 30px;
    z-index: 9;
    box-shadow: 0px 0px 10px 5px rgba(7,34,63, 0.15);
  }

  #resume-section {
    display: block;
    width: 100%;
    margin: 0;
    margin: 0 auto;
    background: #FFF;
    max-width: 100%;
    padding: 50px;
    margin-top: -45px;
    border-radius: 30px;
    z-index: 9;
    box-shadow: 0px 0px 10px 5px rgba(7,34,63, 0.15);
  }

  .details-page, .confirm-page, .pay-page {
    display: block;
    width: 100%;
    margin: 0;
    margin: 0 auto;
    background: #FFF;
    max-width: 100%;
    padding: 50px;
    margin-top: -45px;
    border-radius: 30px;
    z-index: 9;
    box-shadow: 0px 0px 10px 5px rgba(7,34,63, 0.15);
  }

  .header-section {
    max-width: 350px;
    margin: 0 auto
  }

  #resume-section form, .details-page form, .confirm-page form, .payment-section {
    max-width: 350px;
    margin: 0 auto
  }

  .form-section h1, .form-section h2 {
    text-align: center;
  }

  .form-section form {
    max-width: 360px;
    margin: 0 auto;
  }

  .button-section #verify-button {
    max-width: 350px;
    margin: 0 auto;
  }

  .transport-data-section {
    max-width: 350px;
    margin: 0 auto;
  }

  .content-wrapper {
    border-radius: 0;
  }

  #pay-section .button-section {
    max-width: 350px;
    margin: 20px auto 0;
  }
}

@media (max-width: 730px) {

  .form-section,
  #resume-section,
  .image-section,
  .details-page,
  .equip-page,
  .pay-page,
  .confirm-page {
    width: 100%;
    margin-right: 0;
  }

  .image-section {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .image-section img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .logo-container {
    gap: 2px;
  }

  .logo {
    width: 28px;
  }

  .name {
    width: 70px;
  }

  .input-group label {
    font-size: 16px;
  }

  .input-group input,
  .input-group select {
    font-size: 16px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .equip-form {
    width: 100%;
    padding: 15px;
  }

  .equip-form .section {
    align-items: center;
  }

  .equip-form .section h3 {
    font-size: 16px;
  }

  .equip-form .section p {
    font-size: 14px;
  }

  .equip-form h3 {
    font-size: 16px;
  }

  .image-section img {
    display: none;
  }
}

@media (max-width: 600px) {
  .data-item strong {
    min-width: 60px;
  }

  .data-item span {
    margin-right: 3px;
  }

  .option-content p {
    font-size: 14px;
  }

  .payment-option {
    padding: 10px;
  }

  .additional-input {
    padding-left: 40px;
  }
  .dados-utente-confirm {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 10px; /* Reduced space for smaller screens */
  }
}


@media (max-width: 480px) {
  .cta-mobile {
    display: block;
  }

  .phone-row a {
    display: none;
  }

  #map {
    min-height: 250px;
  }

  .form-section {
    padding: 50px 25px 150px;
  }

  #resume-section {
    padding: 50px 25px 200px;
  }

  .form-section h1 {
    font-size: 22px;
  }

  .phone-row a {
    font-size: 16px;
    background: url(../images/phone-blue.png) no-repeat 10px center;
    background-size: 14px 14px;
    padding: 10px 15px 10px 30px;
  }

  .details-page, .confirm-page, .pay-page {
    padding: 50px 25px 220px;
  }

  .logo-container .logo {
    width: 35px;
  }

  .transport-request-container {
      gap: 0;
  }

  .phone-row a {
    font-size: 14px;
    padding: 12px 15px 12px 30px;
  }

  .language-switcher a, .language-switcher span {
    font-size: 14px;
  }
}

@media (max-width: 375px) {

  .cta-mobile {
    background-position: 20% center;
  }
  .form-section {
    padding: 40px 25px 150px;
  }

  .form-section h1 {
    font-size: 20px;
  }

  #form-section.form-section h2 {
    margin-top: 25px;
  }

  .button-section {
    flex-direction: column-reverse;
  }

  .button-section .back-button, .button-section .action-buttons {
    width: 100%;
  }

  .form-section {
    padding-bottom: 200px;
  }

  .transport-data p {
    font-size: 12px;
  }

  .vehicle-card img {
    max-width: 40px;
  }

  .vehicle-price {
    font-size: 14px;
  }

  .vehicle-card-content {
    gap: 15px;
  }

  .summary-card .location-date-section p.pickup-location {
    background: url(../images/icon-location.png) no-repeat left 5px;
    background-size: 12px 12px;
  }

  .summary-card .location-date-section p.destination-location {
    background: url(../images/icon-destination.png) no-repeat left 5px;
    background-size: 12px 17px;
  }

  .summary-card .location-date-section .line {
    display: none;
  }

  .round-trip-label {
    font-size: 12px;
    text-align: left;
  }

  #details-form .two-col{
    flex-direction: column;
    gap: 0;
  }

  .payment-option {
    padding: 10px 0;
  }

}
