/* =====================================
   TRAVLUNO TRAVEL BUDGET CALCULATOR
   ===================================== */

.tbc-app {
  --tbc-navy: #103c4b;
  --tbc-teal: #087f83;
  --tbc-border: #dce8e9;
  --tbc-muted: #607580;
  max-width: 1180px;
  margin: 35px auto;
  padding: 0 16px;
  font-family: inherit;
  color: #173946;
}

.tbc-app * {
  box-sizing: border-box;
}

.tbc-header {
  text-align: center;
  padding: 35px 18px 38px;
}

.tbc-eyebrow {
  display: inline-block;
  color: var(--tbc-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.tbc-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  color: var(--tbc-navy);
  margin: 0 0 15px;
}

.tbc-header p {
  max-width: 650px;
  margin: auto;
  color: var(--tbc-muted);
  line-height: 1.8;
}

.tbc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.tbc-form,
.tbc-results {
  background: #fff;
  border: 1px solid var(--tbc-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(14, 55, 67, .06);
}

.tbc-form h3 {
  color: var(--tbc-navy);
  font-size: 23px;
  margin: 0 0 24px;
}

.tbc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tbc-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tbc-navy);
}

.tbc-full {
  grid-column: 1 / -1;
}

.tbc-grid input,
.tbc-grid select {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid #cfdfe2;
  border-radius: 10px;
  background: #fff;
  padding: 10px 13px;
  color: #173946;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.tbc-grid input:focus,
.tbc-grid select:focus {
  border-color: var(--tbc-teal);
  box-shadow: 0 0 0 3px rgba(8,127,131,.12);
}

.tbc-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.tbc-app button {
  cursor: pointer;
  border-radius: 10px;
  padding: 13px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}

.tbc-primary {
  flex: 1;
  border: 0;
  background: var(--tbc-teal);
  color: #fff;
}

.tbc-primary:hover {
  background: #06696d;
}

.tbc-reset {
  border: 1px solid var(--tbc-border);
  background: #f6fafb;
  color: var(--tbc-navy);
}

.tbc-results {
  overflow: hidden;
}

.tbc-results-head {
  background: linear-gradient(135deg, #103c4b, #087f83);
  color: white;
  border-radius: 13px;
  padding: 27px 20px;
  text-align: center;
}

.tbc-results-head span {
  font-size: 13px;
  opacity: .9;
}

.tbc-results-head h3 {
  color: #fff !important;
  font-size: clamp(28px, 3vw, 39px);
  overflow-wrap: anywhere;
  margin: 12px 0;
}

.tbc-results-head p {
  color: #e0f6f4;
  font-size: 13px;
  margin: 0;
}

.tbc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 25px;
}

.tbc-stats > div {
  background: #f1f8f8;
  border-radius: 12px;
  padding: 17px 12px;
  text-align: center;
  min-width: 0;
}

.tbc-stats span {
  display: block;
  font-size: 12px;
  color: var(--tbc-muted);
  margin-bottom: 8px;
}

.tbc-stats strong {
  font-size: 19px;
  color: var(--tbc-navy);
  overflow-wrap: anywhere;
}

.tbc-results h4 {
  font-size: 18px;
  color: var(--tbc-navy);
  margin: 0 0 17px;
}

.tbc-breakdown {
  display: grid;
  gap: 13px;
}

.tbc-expense {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f3;
}

.tbc-expense span {
  color: var(--tbc-muted);
}

.tbc-expense strong {
  color: var(--tbc-navy);
  overflow-wrap: anywhere;
  text-align: right;
}

.tbc-total-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0;
  color: var(--tbc-navy);
  font-weight: 800;
  font-size: 17px;
}

.tbc-copy,
.tbc-print {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--tbc-teal);
  background: #fff;
  color: var(--tbc-teal);
}

.tbc-copy:hover,
.tbc-print:hover {
  background: #eaf7f6;
}

.tbc-note {
  color: var(--tbc-muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0 0;
}

@media (max-width: 850px) {
  .tbc-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tbc-form,
  .tbc-results {
    padding: 18px;
  }

  .tbc-grid {
    grid-template-columns: 1fr;
  }

  .tbc-actions {
    flex-direction: column;
  }

  .tbc-stats strong {
    font-size: 16px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .tbc-app,
  .tbc-app * {
    visibility: visible;
  }

  .tbc-app {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }

  .tbc-form,
  .tbc-actions,
  .tbc-copy,
  .tbc-print {
    display: none !important;
  }

  .tbc-layout {
    display: block;
  }

  .tbc-results {
    box-shadow: none;
  }
}
/* Travel Budget Calculator - Currency Symbol */

.tbc-grid label:has(input[id^="tbc-"]) {
  position: relative;
}

.tbc-grid label:has(input[id^="tbc-"])::after {
  content: attr(data-currency);
  position: absolute;
  left: 15px;
  bottom: 15px;
  color: #087f83;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
}

.tbc-grid input.tbc-money-input {
  padding-left: 40px !important;
}