#tcc-wrapper, .tcc-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.tcc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tcc-header h2 {
  color: #000 !important;
  margin-bottom: 1rem !important;
  font-size: 1.5rem !important;
}

.tcc-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.tcc-progress-bar-inner {
  height: 100%;
  background: #FBC33F;
  width: 25%;
  transition: width 0.3s ease;
}

.tcc-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tcc-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tcc-step h3 {
  color: #000 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.2rem !important;
  text-align: center !important;
}

.tcc-step label {
  display: block;
  margin-bottom: 0.5rem;
  color: #000;
  font-weight: 500;
}

.tcc-step input[type="text"],
.tcc-step input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tcc-step input:focus {
  outline: none;
  border-color: #28B5A4;
  box-shadow: 0 0 0 3px rgba(40, 181, 164, 0.1);
}

.tcc-radio-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tcc-radio-group.trip-style {
  grid-template-columns: repeat(3, 1fr);
}
.tcc-radio-group.trip-type {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .tcc-radio-group.trip-style,
  .tcc-radio-group.trip-type {
      grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tcc-radio-group.trip-style,
  .tcc-radio-group.trip-type {
      grid-template-columns: repeat(2, 1fr);
  }
}
.tcc-radio-group label {
  cursor: pointer;
  margin: 0;
}
.tcc-radio-group input[type="radio"] {
  display: none;
}
.tcc-radio-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
}
.tcc-radio-card:hover {
  border-color: #28B5A4;
  transform: translateY(-2px);
}
.tcc-radio-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.tcc-radio-card span {
  display: block;
  color: #000;
  font-weight: 500;
  font-size: 0.9rem;
}
.tcc-radio-group input[type="radio"]:checked + .tcc-radio-card {
  border-color: #28B5A4;
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(40, 181, 164, 0.15);
}
.tcc-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}
.tcc-back {
  background: #fff !important;
  color: #22b2ad !important;
  border: 2px solid #22b2ad !important;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcc-back:hover {
  background: #e6f7f7 !important;
  color: #179b95 !important;
  border-color: #179b95 !important;
}
.tcc-next, #tcc-calculate {
  background: #22b2ad;
  color: #fff;
  border: 2px solid #22b2ad;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcc-next:hover, #tcc-calculate:hover {
  background: #179b95;
  border-color: #179b95;
  color: #fff;
}
.tcc-back::before {
  content: '\2190'; /* Unicode left arrow */
  margin-right: 0.5em;
  font-size: 1.2em;
}
.tcc-next::after, #tcc-calculate::after {
  content: '\2192'; /* Unicode right arrow */
  margin-left: 0.5em;
  font-size: 1.2em;
}
.tcc-autocomplete-wrapper {
  position: relative;
  margin-bottom: 1rem;
}
#tcc-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#tcc-loading-overlay .tcc-loading-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}
#tcc-loading-overlay p {
  color: #000;
  font-size: 1.1rem;
  text-align: center;
}
@media (max-width: 768px) {
  #tcc-wrapper, .tcc-wrapper {
      margin: 1rem auto;
      padding: 1.5rem;
      max-width: 100%;
  }
  .tcc-radio-group.trip-style,
  .tcc-radio-group.trip-type {
      grid-template-columns: repeat(2, 1fr);
  }
  .tcc-back,
  .tcc-next,
  #tcc-calculate {
      width: 100%;
  }
}

#tcc-form {
  display: block;
  width: 100%;
}
#tcc-form input,
#tcc-form select {
  flex: 1 1 45%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}
#tcc-form button {
  flex: 1 1 100%;
  background: #28B5A4;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#tcc-form button:hover {
  background: #1ea091;
}
#tcc-result,
#tcc-itinerary {
  margin-top: 2rem;
  background: #f7f3ea;
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #000;
  font-size: 1.1rem;
}
#tcc-build-itinerary,
#tcc-download-pdf,
#tcc-print {
  margin: 1rem 0.5rem 0 0;
  background: #28B5A4;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}
#tcc-build-itinerary:hover,
#tcc-download-pdf:hover,
#tcc-print:hover {
  background: #1ea091;
}
#tcc-result:empty {
  display: none;
}
#tcc-result {
  transition: opacity 0.2s;
}

.tcc-suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
  display: none;
  list-style: none;
}
.tcc-suggestions-list span.tcc-suggestion-item {
  display: block;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #f3f4f6;
}
.tcc-suggestions-list span.tcc-suggestion-item:last-child {
  border-bottom: none;
}
.tcc-suggestions-list span.tcc-suggestion-item:hover,
.tcc-suggestion-active {
  background-color: #e5e7eb !important;
  color: #28B5A4;
}

/* Sidebar Calculator */
#secondary #block-37,
#secondary #block-42 {
  padding: 0 !important;
}

.sidebar-calc .tcc-radio-group,
.sidebar-calc .tcc-radio-group.trip-style,
.sidebar-calc .tcc-radio-group.trip-type {
  grid-template-columns: repeat(2, 1fr) !important;
}

.sidebar-calc .tcc-budget-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

#secondary .widget h3:first-child,
#secondary .widget h2:first-child {
  display: inline-block !important;
}

/* Budget summary and breakdown toggle styles */
.tcc-budget-summary {
  background: #f7f3ea;
  border-radius: 0.75rem;
  color: #000;
  font-size: 1.1rem;
}
.tcc-budget-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}
.tcc-total-cost {
  font-weight: bold;
  font-size: 1.2rem;
}
.tcc-breakdown-toggle {
  padding: 0 !important;
  background: none !important;
  border: none;
  color: #28B5A4 !important;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25em;
  transition: none;
}
.tcc-arrow {
  transition: transform 0.2s;
  font-size: 1.3em;
}
.tcc-breakdown-toggle.open .tcc-arrow {
  transform: rotate(0deg);
}
.tcc-breakdown-details {
  margin-top: 1rem;
  animation: fadeIn 0.2s;
  background: white;
  padding: 15px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .tcc-budget-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.wp-travel-engine-itinerary-header #itinerary-toggle-button,
.wp-travel-engine-itinerary-header .aib-button-label {
  display: none;
}