:root {
    --bg: #f5f1eb;
    --card: #fffef9;
    --text: #1a1714;
    --muted: #7a7269;
    --accent: #042940;
    --accent-light: #fdf0ea;
    --border: #e0d9cf;
    --input-bg: #faf8f4;
    --radius: 4px;
    --radius-lg: 12px;
}  

.wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

/* Header above card */
.header {
    margin-bottom: 2rem;
}

.header .eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--text);
}

.header h1 em {
    font-style: italic;
    color: var(--accent);
}

.header p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
}

/* Card */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    animation: slideUp 0.5s ease both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Section label */
.section-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.section + .section {
    margin-top: 1.5rem;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Field */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.02em;
}

input {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input::placeholder {
    color: #c0b8ae;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 68, 10, 0.1);
}

input.error {
    border-color: #e24b4a;
    box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.1);
}

/* Route row */
.route-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 10px;
}

.route-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    color: var(--accent);
}

.route-arrow svg {
    width: 18px;
    height: 18px;
}

/* Submit */
.submit-wrap {
    margin-top: 1.75rem;
}

button {
    width: 100%;
    padding: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

button:hover {
    background: #a83508;
}

button:active {
    transform: scale(0.985);
}

/* Messages */
.msg {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}

.msg.error  { color: #a32d2d; }
.msg.success { color: #3b6d11; }

/* Footer note */
.footer-note {
    margin-top: 1.25rem;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    font-weight: 300;
}

@media (max-width: 480px) {
    .grid-2 { grid-template-columns: 1fr; }
    .route-row { grid-template-columns: 1fr; }
    .route-arrow { display: none; }
    .header h1 { font-size: 2rem; }
}

/* Autofill CSS */


.autocomplete-container {
  margin-bottom: 20px;
}

.input-container, .input-container-destination {
  display: flex;
  position: relative;
}

.input-container input {
  flex: 1;
  outline: none;
  
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 10px;
  padding-right: 31px;
  font-size: 16px;
}

.input-container-destination input {
  flex: 1;
  outline: none;
  
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 10px;
  padding-right: 31px;
  font-size: 16px;
}

.autocomplete-items, .autocomplete-items-destination {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.1);
  border-top: none;
  background-color: #fff;

  z-index: 99;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
}

.autocomplete-items div, .autocomplete-items-destination div {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-items div:hover, .autocomplete-items-destination div:hover {
  /*when hovering an item:*/
  background-color: rgba(0, 0, 0, 0.1);
}

.autocomplete-items-destination .autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: rgba(0, 0, 0, 0.1);
}

.autocomplete-items-destination .autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: rgba(0, 0, 0, 0.1);
}

.clear-button {
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  
  position: absolute;
  right: 5px;
  top: 0;

  height: 100%;
  display: none;
  align-items: center;
}

.clear-button.visible {
  display: flex;
}

.clear-button:hover {
  color: rgba(0, 0, 0, 0.6);
}

.submit-icon{
    font-size: 50px;
    color: #042940;
}

.notif-text{ 
    font-size: 12px;
    color: var(--muted); 
    font-weight: 300;
}