.tpl-app {
  --navy: #073c4b;
  --teal: #078589;
  --border: #d7e7e9;
  --muted: #617a84;
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 16px;
  font-family: Arial, sans-serif;
  color: var(--navy);
}

.tpl-app * {
  box-sizing: border-box;
}

.tpl-header {
  text-align: center;
  padding: 26px 10px 40px;
}

.tpl-header > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.tpl-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  margin: 12px 0 15px;
  color: var(--navy);
}

.tpl-header p {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  line-height: 1.8;
}

.tpl-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: 25px;
  align-items: start;
}

.tpl-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(7,60,75,.06);
  min-width: 0;
}

.tpl-panel > h3 {
  font-size: 24px;
  margin: 0 0 24px;
  color: var(--navy);
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.tpl-grid label,
.tpl-add > label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

.tpl-wide {
  grid-column: 1 / -1;
}

.tpl-grid input,
.tpl-grid select,
.tpl-add input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #cbdfe3;
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  padding: 12px 14px;
  font: 600 15px Arial, sans-serif;
}

.tpl-grid input:focus,
.tpl-grid select:focus,
.tpl-add input:focus {
  outline: 2px solid rgba(7,133,137,.25);
  border-color: var(--teal);
}

.tpl-activities {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 23px 0;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.tpl-activities legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 7px;
}

.tpl-activities label {
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.tpl-activities input,
.tpl-item input {
  accent-color: var(--teal);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.tpl-app button {
  cursor: pointer;
  border-radius: 10px;
  font: 700 14px Arial, sans-serif;
  padding: 13px 16px;
  transition: .2s;
}

.tpl-primary {
  width: 100%;
  border: 0;
  background: var(--teal);
  color: white;
  min-height: 53px;
}

.tpl-primary:hover {
  background: #056e72;
}

.tpl-help,
.tpl-disclaimer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 18px 0 0;
}

.tpl-results-top {
  background: linear-gradient(135deg,#073c4b,#078589);
  color: white;
  border-radius: 14px;
  padding: 23px 20px;
}

.tpl-results-top span {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #d9f4f2;
}

.tpl-results-top h3 {
  color: white !important;
  font-size: 23px;
  line-height: 1.3;
  margin: 10px 0;
}

.tpl-results-top p {
  color: #e1f4f3;
  margin: 0;
  font-size: 13px;
}

.tpl-progress-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 10px;
  font-size: 13px;
}

.tpl-progress-line span {
  font-weight: 800;
  color: var(--teal);
}

.tpl-progress-track {
  height: 11px;
  border-radius: 20px;
  background: #e8f2f3;
  overflow: hidden;
}

.tpl-progress-track > div {
  height: 100%;
  width: 0;
  background: var(--teal);
  border-radius: 20px;
  transition: width .2s;
}

.tpl-add {
  margin: 25px 0;
}

.tpl-add > div {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.tpl-add button {
  background: var(--navy);
  color: #fff;
  border: 0;
  white-space: nowrap;
}

.tpl-category {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  margin: 14px 0;
}

.tpl-category h4 {
  background: #eff8f8;
  color: var(--navy);
  padding: 13px 15px;
  margin: 0;
  font-size: 15px;
}

.tpl-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 15px;
  border-top: 1px solid #edf3f4;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.tpl-item input {
  margin-top: 2px;
}

.tpl-item.checked .tpl-item-text {
  text-decoration: line-through;
  color: #80949b;
}

.tpl-item-text {
  flex: 1;
  min-width: 0;
}

.tpl-remove {
  background: transparent !important;
  border: 0 !important;
  color: #a34d4d !important;
  padding: 0 4px !important;
  min-height: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.tpl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 23px;
}

.tpl-actions button {
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
}

.tpl-actions button:hover {
  background: #e9f7f7;
}

.tpl-actions button:last-child {
  grid-column: 1 / -1;
}

.tpl-info {
  background: #f3f9f9;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-top: 28px;
}

.tpl-info h3 {
  margin: 0 0 13px;
  color: var(--navy);
}

.tpl-info p {
  color: #486977;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 900px) {
  .tpl-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tpl-app {
    padding: 0 10px;
  }

  .tpl-panel {
    padding: 19px 16px;
  }

  .tpl-grid {
    grid-template-columns: 1fr;
  }

  .tpl-activities {
    grid-template-columns: 1fr;
  }

  .tpl-add > div {
    flex-direction: column;
  }

  .tpl-actions {
    grid-template-columns: 1fr;
  }

  .tpl-actions button:last-child {
    grid-column: auto;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .tpl-app,
  .tpl-app * {
    visibility: visible;
  }

  .tpl-app {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
  }

  .tpl-header,
  .tpl-layout > form,
  .tpl-add,
  .tpl-actions,
  .tpl-info,
  .tpl-disclaimer {
    display: none !important;
  }

  .tpl-layout {
    display: block;
  }

  .tpl-results {
    box-shadow: none;
    border: 0;
  }

  .tpl-item,
  .tpl-category {
    break-inside: avoid;
  }
}

/* TRAVLUNO - DESTINATION INPUT UX FIX */

.tpl-app #tpl-destination {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #073c4b !important;
}

.tpl-app #tpl-destination::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}
