:root {
  --accent: #21409a;
  --accenthover: #0f1e4a;
  --muted: #e5e7eb;
  --ink: #111827;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: #fff;
  color: var(--ink);
  margin: 0;
}

.wrap {
  max-width: 920px;
  margin: 32px auto;
  padding: 0 16px;
  padding-bottom: 20px;
}

h1 {
  font-size: 28px;
  margin: 0 0 18px 0;
}

.card {
  border: 1px solid var(--muted);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center !important;
}

.col {
  flex: 1 1 240px;
  min-width: 220px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 8px 0 6px;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
}

button:hover{
  background: var(--accenthover);
}

button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #6b7280;
}

.divider .line {
  height: 1px;
  background: var(--muted);
  flex: 1;
}

.divider .or {
  font-weight: 700;
  border: 1px solid var(--muted);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

.hint {
  font-size: 12px;
  color: #6b7280;
}

.alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
  margin-top: 5px;
}

.ok {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

fieldset:disabled {
  opacity: 0.6;
}


.footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}


  #suggestions { max-width: 500px; border: 1px solid #ccc; background: #fff; position: absolute; z-index: 1000; }
  #suggestions div { padding: 8px; cursor: pointer; }
  #suggestions div:hover { background-color: #f0f0f0; }

  html{
    scroll-behavior: smooth;
  }

  #main-title{
    text-align: center;
    text-transform: uppercase;
  }

  #car-quote-img{
    width: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: -50px;
  }

  #estimated-text{
    text-align: center;
    margin-bottom: 0px;
    margin-top: 0px;
  }

  #estimated-price{
    text-align: center;
    font-size: 3.4em;
    margin-bottom: 0px;
    margin-top: 0px;
    z-index: 5;
    color: #21409a;
    letter-spacing: 2px;
  }

  #loading-gif{
    position: absolute;
    left: 50%;
    margin-top: 10px;
    transform: translate(-50%);
  }

  @media (max-width:600px) {
    #car-quote-img{
        width: 90% !important;
        margin-top: -30px;
    }
  }

  
.btn-quote {
    font-weight: bold;
    font-size: 1.2em;
    width: 250px;
    height: 40px;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-quote:hover{
  background: #0f0f0f;
}

.btn-quote a{
  color: #fff;
  text-decoration: none;
}

.btn-quote i{
  margin-top: 3px;
  margin-right: 5px;
  font-size: 1.5em;
}

#buttons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-flow: wrap;
}

#quoteResult{
  padding-top: 20px;
  padding-bottom: 30px;
}

#quoteResult li{
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2em;
  margin-top: 5px;
  color: #999;
}

#notes-text{
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -10px;
  width: 90%;
  text-align: center;
  font-size: 1.4em;
  color: #777;
}

.btn-quote~.btn-quote {
  background:#25D366;
}

.btn-quote~.btn-quote:hover{
  background:#188540;
}

.btn-quote~.btn-quote~.btn-quote{
  background:#2585d3;
}

.btn-quote~.btn-quote~.btn-quote:hover{
  background:#1b5f96;
}

.input-error{border-color:#ef4444 !important; box-shadow:0 0 0 3px rgba(239,68,68,.15) !important;}
.help-error{color:#991b1b; font-size:12px; margin-top:4px;}
