/* TRAVLUNO ROAD TRIP FUEL COST CALCULATOR */

.trfc-app {
  --trfc-navy: #073c4b;
  --trfc-teal: #078589;
  --trfc-border: #d6e5e8;
  --trfc-muted: #627983;
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 16px;
  font-family: Arial, sans-serif;
  color: #153e4b;
}

.trfc-app *,
.trfc-app *::before,
.trfc-app *::after {
  box-sizing: border-box;
}

.trfc-header {
  text-align: center;
  padding: 25px 12px 42px;
}

.trfc-eyebrow {
  color: var(--trfc-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.trfc-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  color: var(--trfc-navy);
  margin: 13px 0 17px;
  font-weight: 800;
}

.trfc-header p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--trfc-muted);
  line-height: 1.8;
}

.trfc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.trfc-panel,
.trfc-results {
  background: #fff;
  border: 1px solid var(--trfc-border);
  border-radius: 19px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(7,60,75,.06);
  min-width: 0;
}

.trfc-panel h3 {
  color: var(--trfc-navy);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px;
}

.trfc-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 19px;
}

.trfc-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.trfc-full {
  grid-column: 1 / -1;
}

.trfc-field label {
  color: var(--trfc-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.trfc-field > input,
.trfc-field > select,
.trfc-money input,
.trfc-percent input {
  width: 100%;
  height: 55px;
  min-width: 0;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #cbdfe3;
  border-radius: 12px;
  color: #123e4d;
  font-family: Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-shadow: none;
}

.trfc-field input:focus,
.trfc-field select:focus {
  border-color: var(--trfc-teal);
  box-shadow: 0 0 0 3px rgba(7,133,137,.1);
}

.trfc-money,
.trfc-percent {
  position: relative;
}

.trfc-money .trfc-symbol {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--trfc-teal);
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
  z-index: 1;
}

.trfc-money input {
  padding-left: 52px !important;
}

.trfc-percent input {
  padding-right: 42px !important;
}

.trfc-percent span {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--trfc-teal);
  font-weight: 800;
  pointer-events: none;
}

.trfc-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.trfc-app button {
  font-family: Arial,sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  border-radius: 11px;
  padding: 14px 18px;
  min-height: 52px;
  cursor: pointer;
  transition: .2s ease;
}

.trfc-primary {
  flex: 1;
  background: var(--trfc-teal) !important;
  color: #fff !important;
  border: 1px solid var(--trfc-teal) !important;
}

.trfc-primary:hover {
  background: #066d72 !important;
}

.trfc-reset {
  background: #f4f9fa !important;
  color: var(--trfc-navy) !important;
  border: 1px solid var(--trfc-border) !important;
}

.trfc-hint {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--trfc-muted);
}

.trfc-result-head {
  background: linear-gradient(135deg,#073c4b,#078589);
  border-radius: 15px;
  padding: 30px 18px;
  color: #fff;
  text-align: center;
}

.trfc-result-head > span {
  font-size: 13px;
  color: #e0f5f4;
}

.trfc-result-head h3 {
  color: #fff !important;
  font-size: clamp(30px,3vw,42px);
  font-weight: 800;
  margin: 14px 0 !important;
  overflow-wrap: anywhere;
}

.trfc-result-head p {
  color: #e0f5f4;
  font-size: 13px;
  margin: 0;
}

.trfc-stats {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 22px 0 27px;
}

.trfc-stats > div {
  background: #eff8f8;
  border-radius: 12px;
  padding: 17px 10px;
  text-align: center;
  min-width: 0;
}

.trfc-stats span {
  display: block;
  font-size: 12px;
  color: var(--trfc-muted);
  margin-bottom: 8px;
}

.trfc-stats strong {
  color: var(--trfc-navy);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.trfc-results h4 {
  font-size: 19px;
  color: var(--trfc-navy);
  margin: 0 0 17px;
  font-weight: 800;
}

.trfc-breakdown {
  display: grid;
}

.trfc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e9f0f2;
  font-size: 14px;
}

.trfc-row span {
  color: var(--trfc-muted);
}

.trfc-row strong {
  color: var(--trfc-navy);
  text-align: right;
  overflow-wrap: anywhere;
}

.trfc-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 23px 0;
  margin-top: 8px;
  color: var(--trfc-navy);
  font-weight: 800;
  font-size: 16px;
}

.trfc-grand strong {
  font-size: 21px;
  overflow-wrap: anywhere;
}

.trfc-result-actions {
  display: grid;
  gap: 10px;
}

.trfc-result-actions button {
  width: 100%;
  background: #fff !important;
  color: var(--trfc-teal) !important;
  border: 1px solid var(--trfc-teal) !important;
}

.trfc-result-actions button:hover {
  background: #e9f7f7 !important;
}

.trfc-disclaimer {
  color: var(--trfc-muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 22px 0 0;
}

.trfc-info {
  background: #f3f9f9;
  border: 1px solid var(--trfc-border);
  border-radius: 18px;
  padding: 29px;
  margin-top: 30px;
}

.trfc-info h3 {
  color: var(--trfc-navy);
  font-size: 23px;
  margin: 0 0 15px;
}

.trfc-info p {
  color: #486977;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 13px;
}

@media(max-width:900px) {
  .trfc-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width:520px) {
  .trfc-app {
    padding: 0 10px;
  }

  .trfc-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .trfc-panel,
  .trfc-results {
    padding: 20px 16px;
  }

  .trfc-actions {
    flex-direction: column;
  }

  .trfc-stats strong {
    font-size: 16px;
  }

  .trfc-info {
    padding: 20px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .trfc-app,
  .trfc-app * {
    visibility: visible;
  }

  .trfc-app {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }

  .trfc-header,
  .trfc-panel,
  .trfc-info,
  .trfc-result-actions {
    display: none !important;
  }

  .trfc-layout {
    display: block;
  }

  .trfc-results {
    box-shadow: none;
  }
}

/* TRAVLUNO - ROUTE INPUT UX FIX */

.trfc-app #trfc-route {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #073c4b !important;
}

.trfc-app #trfc-route::placeholder,
.trfc-app #trfc-distance::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
