* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* General layout */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f5f5f5;
    color: #333;
}

/* Section titles */
main p {
    font-weight: bold;
    margin: 20px 0 5px;
}

/* Radio button group styling */
input[type="radio"] {
    display: none;
}

input[type="radio"] + label {
    display: inline-block;
    padding: 8px 14px;
    margin: 5px 4px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
    background-color: #fff;
    font-size: 14px;
}

/* On hover */
input[type="radio"] + label:hover {
    border-color: #4a90e2;
    background-color: #f0f8ff;
}

/* When selected */
input[type="radio"]:checked + label {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Button */
button#calculate {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #4caf50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

button#calculate:hover {
    background-color: #45a049;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background: #4a90e2;
    color: white;
    border-radius: 6px;
}

#passenger-type, #payment-type {
    display: flex;
}

.title {
    border-bottom: solid 1px black;
}

/* Style for all <select> elements */
select {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  font-size: 16px;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  appearance: none; /* Remove default arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 95%;
  background-position-y: center;
  background-size: 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: .9rem;
}

article {
    background-color: lightyellow;
    padding: 10px;
}

article p {
    text-align: justify;
}