/* ==========================================
   TRAVLUNO TRIP COST CALCULATOR
   ========================================== */

.travluno-trip-cost {
  --ttc-navy: #073c4b;
  --ttc-teal: #078589;
  --ttc-dark: #123e4d;
  --ttc-border: #d5e5e8;
  --ttc-muted: #607883;

  max-width: 1200px;
  margin: 35px auto;
  padding: 0 16px;
  font-family: Arial, sans-serif;
  color: var(--ttc-dark);
}

.travluno-trip-cost *,
.travluno-trip-cost *::before,
.travluno-trip-cost *::after {
  box-sizing: border-box;
}

/* HEADING */

.ttc-heading {
  text-align: center;
  padding: 28px 10px 42px;
}

.ttc-eyebrow {
  display: inline-block;
  color: var(--ttc-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 13px;
}

.ttc-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ttc-navy);
  margin: 0 0 16px;
}

.ttc-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ttc-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* MAIN LAYOUT */

.ttc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.ttc-panel,
.ttc-results {
  background: #fff;
  border: 1px solid var(--ttc-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(10, 58, 72, .06);
  min-width: 0;
}

.ttc-panel h3 {
  color: var(--ttc-navy);
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 25px;
}

/* INPUT GRID */

.ttc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ttc-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.ttc-full {
  grid-column: 1 / -1;
}

.ttc-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ttc-navy);
  line-height: 1.5;
}

.ttc-field > input,
.ttc-field > select,
.ttc-money input,
.ttc-percent input {
  width: 100%;
  height: 56px;
  min-width: 0;
  border: 1px solid #cbdfe3;
  border-radius: 12px;
  background: #fff;
  color: #103a49;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  outline: none;
  box-shadow: none;
}

.ttc-field input:focus,
.ttc-field select:focus {
  border-color: var(--ttc-teal);
  box-shadow: 0 0 0 3px rgba(7,133,137,.10);
}

.ttc-field input::placeholder {
  color: #9aaeb5;
  font-weight: 400;
}

/* CURRENCY SYMBOL */

.ttc-money,
.ttc-percent {
  position: relative;
}

.ttc-money .ttc-symbol {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ttc-teal);
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
  z-index: 1;
}

.ttc-money input {
  padding-left: 53px !important;
}

.ttc-percent input {
  padding-right: 40px !important;
}

.ttc-percent span {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ttc-teal);
  font-weight: 800;
  pointer-events: none;
}

/* BUTTONS */

.ttc-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.travluno-trip-cost button {
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  border-radius: 12px;
  min-height: 54px;
  padding: 14px 20px;
  cursor: pointer;
  transition: .2s ease;
  text-align: center;
}

.ttc-calculate {
  flex: 1;
  background: var(--ttc-teal) !important;
  color: #fff !important;
  border: 1px solid var(--ttc-teal) !important;
}

.ttc-calculate:hover {
  background: #066d72 !important;
}

.ttc-reset {
  background: #f5f9fa !important;
  color: var(--ttc-navy) !important;
  border: 1px solid var(--ttc-border) !important;
}

.ttc-reset:hover {
  background: #eaf2f3 !important;
}

/* RESULT HERO */

.ttc-result-hero {
  background: linear-gradient(135deg, #073c4b, #078589);
  border-radius: 15px;
  padding: 30px 18px;
  color: #fff;
  text-align: center;
}

.ttc-result-hero > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e0f5f4;
}

.ttc-result-hero h3 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  color: #fff !important;
  margin: 14px 0 !important;
  overflow-wrap: anywhere;
}

.ttc-result-hero p {
  color: #e2f5f5;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* RESULT STATS */

.ttc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 22px 0 28px;
}

.ttc-stat {
  background: #f0f8f8;
  border-radius: 13px;
  padding: 19px 12px;
  text-align: center;
  min-width: 0;
}

.ttc-stat span {
  display: block;
  font-size: 12px;
  color: var(--ttc-muted);
  margin-bottom: 9px;
}

.ttc-stat strong {
  display: block;
  font-size: 19px;
  color: var(--ttc-navy);
  overflow-wrap: anywhere;
}

.ttc-results h4 {
  color: var(--ttc-navy);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 19px;
}

/* BREAKDOWN */

.ttc-breakdown {
  display: grid;
  gap: 0;
}

.ttc-expense {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e9f0f2;
  font-size: 14px;
}

.ttc-expense span {
  color: var(--ttc-muted);
}

.ttc-expense strong {
  color: var(--ttc-navy);
  text-align: right;
  overflow-wrap: anywhere;
}

.ttc-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 0;
  font-size: 15px;
  color: var(--ttc-navy);
}

.ttc-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 2px solid var(--ttc-border);
  padding: 22px 0;
  color: var(--ttc-navy);
  font-size: 17px;
  font-weight: 800;
}

.ttc-grand-total strong {
  font-size: 21px;
  overflow-wrap: anywhere;
}

/* RESULT BUTTONS */

.ttc-result-actions {
  display: grid;
  gap: 11px;
}

.ttc-result-actions button {
  width: 100%;
  border: 1px solid var(--ttc-teal) !important;
  background: #fff !important;
  color: var(--ttc-teal) !important;
}

.ttc-result-actions button:hover {
  background: #e9f7f7 !important;
}

.ttc-disclaimer {
  margin: 22px 0 0;
  color: var(--ttc-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* INFORMATION SECTION */

.ttc-info {
  background: #f3f9f9;
  border: 1px solid var(--ttc-border);
  border-radius: 18px;
  padding: 28px;
  margin-top: 30px;
}

.ttc-info h3 {
  color: var(--ttc-navy);
  font-size: 23px;
  margin: 0 0 16px;
}

.ttc-info p {
  color: #476775;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 12px;
}

.ttc-info p:last-child {
  margin-bottom: 0;
}

/* TABLET */

@media (max-width: 900px) {
  .ttc-layout {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 520px) {
  .travluno-trip-cost {
    padding: 0 10px;
  }

  .ttc-heading {
    padding: 20px 5px 30px;
  }

  .ttc-panel,
  .ttc-results {
    padding: 20px 16px;
    border-radius: 15px;
  }

  .ttc-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .ttc-actions {
    flex-direction: column;
  }

  .ttc-stats {
    gap: 9px;
  }

  .ttc-stat strong {
    font-size: 16px;
  }

  .ttc-info {
    padding: 20px;
  }
}

/* PRINT */

@media print {
  body * {
    visibility: hidden;
  }

  .travluno-trip-cost,
  .travluno-trip-cost * {
    visibility: visible;
  }

  .travluno-trip-cost {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }

  .ttc-heading,
  .ttc-panel,
  .ttc-info,
  .ttc-result-actions {
    display: none !important;
  }

  .ttc-layout {
    display: block;
  }

  .ttc-results {
    box-shadow: none;
  }

  .ttc-result-hero {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* TRAVLUNO - DESTINATION INPUT UX FIX */

.travluno-trip-cost #ttc-destination {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #073c4b !important;
}

.travluno-trip-cost #ttc-destination::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
