/* All styles scoped to .tdoo-rtc to avoid conflicts */
.tdoo-rtc {
  --tdoo-radius: 16px;
  --tdoo-border: rgba(0,0,0,.12);
  --tdoo-muted: rgba(0,0,0,.65);

  /* Round 1 rules */
  --tdoo-primary: #2929FF;
  --tdoo-font: Helvetica, sans-serif;

  font-family: var(--tdoo-font);
}

.tdoo-rtc * {
  box-sizing: border-box;
  font-family: inherit;
}

.tdoo-rtc__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .tdoo-rtc__grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
  .tdoo-rtc__panel--results {
    position: sticky;
    top: 16px;
  }
}

.tdoo-rtc__panel {
  border: 1px solid var(--tdoo-border);
  border-radius: var(--tdoo-radius);
  padding: 16px;
  background: #fff;
}

/* Titles */
.tdoo-rtc__h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

/* Fields / layout */
.tdoo-rtc__field { margin-bottom: 12px; }
.tdoo-rtc__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .tdoo-rtc__row { grid-template-columns: 1fr 1fr; } }

.tdoo-rtc__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  
}

.tdoo-rtc__input, .tdoo-rtc__select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--tdoo-border);
  background: #fff;
}

.tdoo-rtc__hint { margin: 6px 0 0; font-size: 13px; color: var(--tdoo-muted); }
.tdoo-rtc__hr { border: 0; border-top: 1px solid var(--tdoo-border); margin: 14px 0; }

/* Mobile-friendly explanation block */
.tdoo-rtc__details { margin-top: 10px; }
.tdoo-rtc__summary { cursor: pointer; font-weight: 700; }

/* Results cards */
.tdoo-rtc__cards {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.tdoo-rtc__card {
  border: 1px solid var(--tdoo-border);
  border-radius: 14px;
  padding: 12px;
}

.tdoo-rtc__card--total { grid-column: 1 / -1; }

.tdoo-rtc__card-label { font-size: 13px; color: var(--tdoo-muted); margin-bottom: 6px; }
.tdoo-rtc__card-value { font-size: 18px; font-weight: 800; }

/* Buttons */
/* Buttons: remove visible border on hover */
.tdoo-rtc__btn{
  border: none;                 /* ✅ no blue ring effect */
  background: var(--tdoo-primary);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);  /* subtle edge */
}

.tdoo-rtc__btn:hover{
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
  filter: brightness(0.95);
}

.tdoo-rtc__btn:active{
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  filter: brightness(0.90);
}

/* Keep accessible focus */
.tdoo-rtc__btn:focus{
  outline: 2px solid rgba(41,41,255,.25);
  outline-offset: 2px;
}

/* Summary box */
.tdoo-rtc__summarybox {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--tdoo-border);
  overflow: auto;
  font-size: 13px;
}

/* Disclaimer */
.tdoo-rtc__disclaimer { margin: 10px 0 0; font-size: 12px; color: var(--tdoo-muted); }

/* Optional extras spacing */
.tdoo-rtc details[open] { margin-bottom: 14px; }
.tdoo-rtc__details { margin-bottom: 14px; }
/* Field labels: force consistent size */
.tdoo-rtc__label{
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
/* Optional extras spacing */
.tdoo-rtc__summary{
  margin-bottom: 12px;  /* ✅ spacing under the toggle line */
}

/* When details is open, add a bit more breathing room before fields */
.tdoo-rtc details[open] > .tdoo-rtc__summary{
  margin-bottom: 14px;
}
/* ===== Travelandoo Round 1 overrides (paste at bottom) ===== */

/* Global font */
.tdoo-rtc{
  font-family: Helvetica, sans-serif;
  --tdoo-primary: #2929FF;
}

/* Main panel titles */
.tdoo-rtc__h2{
  font-size: 22px!important;
  font-weight: 700;
}

/* Field labels */
.tdoo-rtc__label{
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

/* Optional extras spacing (your class is tdoo-rtc__summary) */
.tdoo-rtc__summary{
  margin-bottom: 12px;
}

/* Button styling */
.tdoo-rtc__btn{
  border: none;
  background: var(--tdoo-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.tdoo-rtc__btn:hover{
  filter: brightness(0.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.tdoo-rtc__btn:active{
  filter: brightness(0.90);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

/* Accessible focus */
.tdoo-rtc__btn:focus,
.tdoo-rtc__input:focus,
.tdoo-rtc__select:focus{
  outline: 2px solid rgba(41,41,255,.25);
  outline-offset: 2px;
}
/* ===== Round 1 fixes (paste at bottom) ===== */

/* 1) Force labels to 18px (theme is overriding you) */
.tdoo-rtc .tdoo-rtc__label{
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1.3;
}

/* 2) Buttons: override theme button inheritance + keep full width */
.tdoo-rtc .tdoo-rtc__btn,
.tdoo-rtc button.tdoo-rtc__btn{
  appearance: none;
  -webkit-appearance: none;

  display: block !important;     /* stops theme inline button behavior */
  width: 100% !important;        /* full width like before */
  max-width: 100% !important;
  margin: 12px 0 0 !important;

  text-align: center !important; /* centers text */
  justify-content: center !important;
  align-items: center !important;

  border: none !important;
  background: #2929FF !important;
  color: #fff !important;

  padding: 12px 14px !important; /* use your preferred padding */
  border-radius: 14px;

  font-family: Helvetica, sans-serif !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;

  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.tdoo-rtc .tdoo-rtc__btn:hover{
  filter: brightness(0.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.10);
}

.tdoo-rtc .tdoo-rtc__btn:active{
  filter: brightness(0.90);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

.tdoo-rtc .tdoo-rtc__btn:focus{
  outline: 2px solid rgba(41,41,255,.25);
  outline-offset: 2px;
}
/* ===== Results column tightening ===== */

/* 1) Reduce padding inside result cards */
.tdoo-rtc .tdoo-rtc__card{
  padding: 10px !important;  /* was 12px+ */
}

/* Reduce inner label/value spacing a bit */
.tdoo-rtc .tdoo-rtc__card-label{
  margin-bottom: 4px !important;
}

/* 2) Set spacing between cards to 10px */
.tdoo-rtc .tdoo-rtc__cards{
  gap: 10px !important;
}

/* Optional: tighten overall results panel padding slightly */
.tdoo-rtc .tdoo-rtc__panel--results{
  padding: 14px !important;
}

/* 3) Make Total estimate + Per person sit on the same row */
.tdoo-rtc .tdoo-rtc__card--total{
  grid-column: span 1 !important; /* no longer full-width */
}

.tdoo-rtc .tdoo-rtc__card--per-person{
  grid-column: span 1 !important;
}

/* Ensure the cards grid can place them as 2 columns */
.tdoo-rtc .tdoo-rtc__cards{
  grid-template-columns: 1fr 1fr !important;
}

/* If screen is too narrow, stack them */
@media (max-width: 420px){
  .tdoo-rtc .tdoo-rtc__cards{
    grid-template-columns: 1fr !important;
  }
  .tdoo-rtc .tdoo-rtc__card--total,
  .tdoo-rtc .tdoo-rtc__card--per-person{
    grid-column: 1 / -1 !important; /* full width on small screens */
  }
}

/* 4) Add breathing room above the summary box */
.tdoo-rtc .tdoo-rtc__summarybox{
  margin-top: 12px !important;
}

.tdoo-rtc__panel--results > .tdoo-rtc__card{
  margin-bottom: 10px;
}

