/* ---------------------------------------------
   Colours
--------------------------------------------- */
:root {
  --tvg-green: #7bae95;
  --tvg-grey: #ececec;
  --tvg-text: #3f3f3f;
  --tvg-border: #ccc;
  --tvg-muted: #8fa4a6;
  --tvg-white: #fff;
  --tvg-warning: #c00;
}

/* ---------------------------------------------
   Tooltips
--------------------------------------------- */
.tvg-warning {
  position: relative;
  z-index: 5;
}
.tvg-warning-icon {
  color: var(--tvg-white);
  background: var(--tvg-warning);
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  cursor: help;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 18px;
}
.tvg-warning-tooltip {
  position: absolute;
  top: 110%;
  left: 0;
  width: max-content;
  max-width: 240px;
  padding: 10px 14px;
  background: var(--tvg-green);
  color: var(--tvg-white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.tvg-warning:hover .tvg-warning-tooltip,
.tvg-warning-icon:hover + .tvg-warning-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------------------------------------------
   Notifications
--------------------------------------------- */
.tvg-toast {
  position: fixed;
  width: 80%;
  max-width: 600px;
  top: 20px;
  right: 50%;
  transform: translate(50%, 20px);
  background: var(--tvg-text);
  color: var(--tvg-white);
  padding: 12px 18px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999999;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.tvg-toast.show {
  opacity: 1;
  transform: translate(50%, 0px);
}
.tvg-toast-success {
  background: #39b26b;
}
.tvg-toast-error {
  background: #d64545;
}
.tvg-toast-info {
  background: #2d79c7;
}
.tvg-field-error {
  outline: 2px solid #d63638;
  outline-offset: 2px;
}

/* ---------------------------------------------
   Quote Builder Base
--------------------------------------------- */
.tvg-quote-builder {
  font-family: Georgia, sans-serif;
  font-size: 1rem;
  color: var(--tvg-text);
  background: var(--tvg-white);
  -webkit-text-size-adjust: 100%;
  padding: 30px;
  border: 1px solid var(--tvg-border);
  overflow: hidden;
}
.tvg-quote-builder strong {
  font-weight: 700;
}
/* Headings */
#tvg-quote-builder h2 {
  position: relative;
  margin: 0 0 10px 0;
  padding: 4px 0;
  font-size: 22px;
  line-height: 22px;
  font-weight: bold;
  font-style: normal;
}
#tvg-quote-builder .tvg-step h2 {
  padding: 4px 0 4px 40px;
}
#tvg-quote-builder .tvg-step h2 span:not(.description) {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 30px;
  height: 30px;
  padding: 2px 0 8px 0;
  font-size: 18px;
  text-align: center;
  color: var(--tvg-white);
  border-radius: 50%;
  background: var(--tvg-text);
  box-sizing: border-box;
}
#tvg-quote-builder h2 span.description {
  text-align: left;
  opacity: 0.6;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  padding-top: 10px;
  display: block;
}
/* Separator */
#tvg-quote-builder .separator hr {
  position: relative;
  width: 100%;
  height: 20px;
  margin: 30px 0;
  border: none;
  background: url(../images/flourish-grey.svg) center center no-repeat;
  background: url(https://ashtonlodgecountryhouse.com/wp-content/themes/wedding-sites/assets/images/flourish-grey.svg) center center no-repeat; /*fallack for dev site*/
  background-size: 195.4px 20px;
  overflow: hidden;
}
.tvg-quote-builder .separator hr::before,
.tvg-quote-builder .separator hr::after {
  position: absolute;
  top: 14px;
  width: 50%;
  height: 2px;
  margin-top: -1px;
  content: "";
  background: var(--tvg-grey);
}
.tvg-quote-builder .separator hr::before {
  left: -100px;
}
.tvg-quote-builder .separator hr::after {
  right: -100px;
}

/* ----- Inputs ----- */
.tvg-quote-builder input[type="checkbox"],
.tvg-quote-builder input[type="number"],
.tvg-quote-builder input[type="text"],
.tvg-quote-builder input[type="email"] {
  border: 1px solid var(--tvg-border);
  transition: border-color 0.2s;
}
.tvg-quote-builder input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 0;
  margin: 0;
  outline: none;
  accent-color: var(--tvg-border);
  border: 1px solid var(--tvg-border);
  border-color: var(--tvg-border);
  vertical-align: middle;
}
.tvg-quote-builder input[type="text"],
.tvg-quote-builder input[type="email"] {
  width: 100%;
  height: 40px;
  line-height: 20px;
  padding: 10px;
  border: 1px solid var(--tvg-border);
  box-sizing: border-box;
}
.tvg-quote-builder input[type="number"] {
  width: 60px;
  padding: 10px 0;
  text-align: center;
  border: 1px solid var(--tvg-border);
  box-sizing: border-box;
  height: 40px;
  line-height: 20px;
}
.tvg-quote-builder input[type="number"]::-webkit-inner-spin-button,
.tvg-quote-builder input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.tvg-quote-builder input:focus,
.tvg-quote-builder input:hover,
.tvg-quote-builder input:active {
  outline: none;
  border-color: var(--tvg-green);
}

/* ----- Radio/checkbox cards ----- */
.tvg-quote-builder label.radio {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  border: 1px solid var(--tvg-border);
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tvg-quote-builder label.radio:hover {
  border-color: var(--tvg-green);
}
.tvg-quote-builder label.radio input {
  position: absolute;
  left: -9999px;
}
.tvg-quote-builder label.radio.checked,
.tvg-quote-builder label.radio:has(input:checked) {
  color: var(--tvg-white);
  border-color: var(--tvg-green);
  background: var(--tvg-green);
}
.tvg-quote-builder label.radio:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----- Buttons ----- */
.tvg-quote-builder button {
  color: var(--tvg-white) !important;
  background: var(--tvg-green);
  display: inline-block;
  height: 40px;
  line-height: 38px;
  margin: 0;
  padding: 0 15px;
  font-size: 15px;
  font-weight: normal;
  text-decoration: none;
  font-family: Georgia, sans-serif;
  font-style: italic;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tvg-quote-builder button:hover {
  background: var(--tvg-text);
  color: var(--tvg-white) !important;
}
.tvg-quote-builder button:disabled,
#tvg-submit-quote:disabled,
#tvg-submit-email:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----- Layouts ----- */
.tvg-options-container,
.tvg-products-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.tvg-products-container {
  flex-direction: column;
}
.tvg-options-container.step-days,
.tvg-options-container.step-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.tvg-options-container.step-guests {
  flex-direction: column;
}
.tvg-options-container.step-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tvg-products-container .product > span,
.tvg-products-container .product > label {
  flex-basis: 100%;
}
.tvg-products-description {
  width: 100%;
  padding: 20px;
  background: var(--tvg-grey);
}
.tvg-date-option.tvg-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tvg-min-spend-label-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* ----- Contact & Summary ----- */
.tvg-contact-summary-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tvg-contact-summary-container label {
  width: 100%;
}
.tvg-contact-summary-container .tvg-contact,
.tvg-contact-summary-container .tvg-summary {
  width: 100%;
  box-sizing: border-box;
}
.tvg-contact-summary-container .tvg-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.tvg-summary {
  padding: 25px 20px;
  background: var(--tvg-grey);
}
.tvg-summary ul {
  margin: 0;
  margin-left: 1rem;
  padding: 0;
}
.tvg-summary ::marker {
  color: var(--tvg-green);
}
.tvg-summary p {
  margin-bottom: 0;
}

/* ----- Quote Table ----- */
#tvg-quote-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#tvg-quote-table td:not(:first-child) {
  text-align: center;
}
#tvg-quote-table thead {
  background: var(--tvg-grey);
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4em;
}
#tvg-quote-table tr {
  border: none;
}
#tvg-quote-table tr:last-child {
  font-weight: 700;
}
#tvg-quote-table td {
  border-color: var(--tvg-grey);
}

/* ---------------------------------------------
   Desktop (1024px+)
--------------------------------------------- */
@media (min-width: 1024px) {
  .tvg-options-container,
  .tvg-products-container {
    gap: 10px;
  }
  .tvg-options-container.step-menu,
  .tvg-options-container.step-drinks,
  .tvg-options-container.step-eveningfood {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .tvg-products-container .product {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 0;
  }
  #tvg-quote-builder h2 span.description {
    display: inline-block;
    padding-top: 0px;
    padding-left: 10px;
  }
  .tvg-options-container.step-months {
    grid-template-columns: repeat(6, 1fr);
  }
  .tvg-options-container.step-days .radio {
    flex-grow: 1;
  }
  .tvg-contact-summary-container {
    flex-direction: row;
    align-items: flex-end;
  }
  .tvg-contact-summary-container .tvg-contact {
    width: 65%;
  }
  .tvg-contact-summary-container .tvg-summary {
    width: 35%;
  }
  #tvg-quote-builder h2 {
    margin: 0 0 30px 0;
  }
}

/* ---------------------------------------------
   Mobile (<979px)
--------------------------------------------- */
@media only screen and (max-width: 979px) {
  .tvg-quote-builder {
    padding: 10px;
  }
  .tvg-products-container .product + .product,
  .tvg-products-description {
    margin-top: 5px;
  }
  .tvg-warning-tooltip {
    display: none;
  }
  #tvg-quote-table {
    min-width: max-content;
  }
  #tvg-quote-table th:first-child {
    width: 80px;
  }
  #tvg-quote-table td:first-child {
    font-size: 14px;
    position: sticky;
    left: 0;
    z-index: 6;
    background: var(--tvg-white);
  }
  #tvg-quote-table td,
  #tvg-quote-table th {
    padding: 5px;
  }
  .tvg-quote-builder .quote-table {
    overflow: auto;
    margin-right: -10px;
    margin-left: -10px;
  }
  .tvg-warning-tooltip {
    display: none;
  }
}