/*---- Existing layout pulled from tgws ----*/
.ofw-banner .flexible-content {
  padding: 0 0 10px 80px;
}
.ofw-banner .flexible-content h1 {
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  margin-bottom: 0;
  font-size: 3em;
}
/* The hero's bottom edge, blurred by the shared ::before backdrop-filter,
   bleeds into the intro and fades to black. `cover` so it never clips. */
.glass-effect.mixClass {
  background: url('../images/toast/hero_desktop.jpg?ver=1') center bottom/cover no-repeat;
}
.glass-effect.mixClass::before {
  background: linear-gradient(0deg, #000000 17.15%, rgba(204, 204, 204, 0) 105.96%);
}
.glass-effect.mixClass::after {
  width: 100%;
  height: 1px;
}
.charred-block {
  background:
    linear-gradient(
      to left,
      rgb(78 85 103) 0px,
      rgb(78 85 103) 2px,
      rgb(78 85 103 / 0.83) 3px,
      rgb(78 85 103 / 0.67) 4px,
      rgb(78 85 103 / 0.52) 5px,
      rgb(78 85 103 / 0.37) 6px,
      rgb(78 85 103 / 0.25) 7px,
      rgb(78 85 103 / 0.15) 8px,
      rgb(78 85 103 / 0.1) 9px,
      rgb(78 85 103 / 0.06) 10px,
      transparent 12px
    ),
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(10, 16, 34, 0.25), transparent 70%),
    linear-gradient(
      to right,
      #1c2a4d 0%,
      #1b294c 6%,
      #1a2748 26%,
      #182340 51%,
      #17223d 70%,
      #16203a 83%,
      #162038 100%
    );

  padding-right: 20px;
}

.mixContent .p:last-child {
  margin-bottom: 0;
}

/*---- Toast Generator ----*/
.toast-section {
  background: #000;
  color: #fff;
  padding: 60px 20px 100px;
}
.toast-section .h2 {
  color: #fff;
}
.toast-section .separator {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/*---- Card ----*/
.toast-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 42px);
  backdrop-filter: blur(38px);
  -webkit-backdrop-filter: blur(38px);
  box-shadow: 0 24px 60px rgba(8, 14, 26, 0.55);
}
.toast-form {
  margin-top: 40px;
}
.toast-form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
/* Outscopes the fieldset reset above, so div and fieldset fields space alike. */
.toast-form .toast-field {
  margin-bottom: 26px;
}
.field-label {
  display: block;
  font-size: 14px;
  font-family: 'brandon-grotesque';
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fcb33c;
  margin-bottom: 12px;
  padding: 0;
}
.optional {
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 400;
}

/*---- Pills ----*/
.pill-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* The input is kept focusable but out of flex flow so it adds no gap. */
.pill-group input[type='radio'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
}
.choice {
  font-family: 'brandon-grotesque';
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: 200ms ease-out;
}
.choice:hover {
  border-color: #fff;
}
.pill-group input:checked + .choice {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.pill-group input:focus-visible + .choice {
  outline: 2px solid #fcb33c;
  outline-offset: 2px;
}

/*---- Dark override for .form-control ----*/
.toast-form .form-control {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  /* 16px minimum keeps iOS from auto-zooming the field */
  font-size: 16px;
  padding: 0 16px;
}
.toast-form textarea.form-control {
  padding: 13px 16px;
  min-height: 90px;
  resize: vertical;
}
.toast-form .form-control:focus {
  color: #fff;
}
.toast-form .form-control:focus-visible {
  outline: 2px solid #fcb33c;
  border-color: transparent;
}
#milestoneAge {
  max-width: 140px;
}
.details-note {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: #fcb33c;
}

/*---- Submit and loading state ----*/
.btn-submit {
  width: 100%;
}
.btn-submit .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn-submit.pouring .btn-label {
  display: none;
}
.btn-submit.pouring .btn-loading {
  display: flex;
}
.btn-submit.pouring {
  cursor: wait;
}
.mini-glass {
  width: 14px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.mini-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: #fcb33c;
  animation: miniPour 1.6s ease-in-out infinite;
}
@keyframes miniPour {
  0% {
    height: 8%;
  }
  55% {
    height: 88%;
  }
  100% {
    height: 8%;
  }
}

/*---- Result ----*/
.toast-result {
  margin-top: 34px;
  text-align: center;
}
/* article is display:block in common.css, which outranks the UA [hidden] rule. */
.toast-result[hidden] {
  display: none;
}
.toast-result:focus,
.toast-result:focus-visible {
  outline: none;
}
.toast-result .separator {
  max-width: 240px;
  margin: 26px auto;
}
.toast-text {
  font-family: 'open-sans';
  font-size: 24px;
  line-height: 1.6em;
  font-style: italic;
  margin: 0;
  min-height: 90px;
  white-space: pre-wrap;
}
.toast-text .caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  vertical-align: -0.2em;
  background: #fcb33c;
  animation: toastBlink 1s steps(1) infinite;
}
@keyframes toastBlink {
  50% {
    opacity: 0;
  }
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.library-note {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Banner sizing matches tgws/clean-cocktails. */
@media screen and (max-width: 1279px) {
  .ofw-banner .flexible-content {
    padding: 0 0 34px 34px;
  }
  .ofw-banner .flexible-content h1 {
    font-size: 2.5em;
  }
}

@media screen and (max-width: 767px) {
  /* Mobile crop puts the bottle bottom-left, so the title moves to the top
     over the bar shelves, with a scrim for legibility. */
  .ofw-banner .flexible-content {
    align-items: flex-start;
    padding: 25px 15px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%);
  }
  .ofw-banner .flexible-content h1 {
    font-size: 2em;
  }
  .glass-effect.mixClass {
    background-image: url('../images/toast/hero_mobile.jpg?ver=1');
  }
  .toast-section {
    padding: 50px 20px 60px;
  }
  .toast-form {
    margin-top: 28px;
  }
  .toast-text {
    font-size: 19px;
  }
  .result-actions {
    gap: 16px;
  }
  .charred-block {
    background:
      radial-gradient(ellipse 70% 60% at 100% 0%, rgba(10, 16, 34, 0.25), transparent 70%),
      linear-gradient(
        to right,
        #1c2a4d 0%,
        #1b294c 6%,
        #1a2748 26%,
        #182340 51%,
        #17223d 70%,
        #16203a 83%,
        #162038 100%
      );
    padding-right: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-fill {
    animation: none;
    height: 60%;
  }
  .toast-text .caret {
    animation: none;
  }
}
