/* Button */

.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: var(--br-rounded);
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease);
  color: var(--text-color);
  border: var(--border-width) solid var(--primary-color);
  background: var(--white);
}

.button:hover,
input[type="submit"]:hover {
  background: var(--primary-10);
  text-decoration: none;
  box-shadow: var(--button-shadow);
}

/* Focus reads as the border turning pink and thickening: the global outline is
   pulled inward over the border (offset -2px) — no outer halo, no layout shift.
   Shared by .cta-button below. */
.button:focus-visible,
input[type="submit"]:focus-visible,
.cta-button:focus-visible {
  outline-offset: -2px;
}

/* The global `a:focus` underline (typography.css) out-specifies the base
   `text-decoration: none` above, so link-buttons would underline on focus/click.
   The focus ring is the indicator; keep the label clean. */
.button:focus,
.cta-button:focus {
  text-decoration: none;
}

.button.secondary,
input[type="submit"].secondary {
  border: var(--border-width) solid var(--secondary-color);
  background: var(--white);
}

.button.secondary:hover,
input[type="submit"].secondary:hover {
  background: var(--secondary-10);
}

/* Disabled — same treatment as the disabled .cta-button below: greyed out,
   no hover state, clearly non-actionable. */
.button:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--grey-50);
  color: var(--grey-70);
  background: var(--white);
}

.button:disabled:hover,
input[type="submit"]:disabled:hover {
  background: var(--white);
  box-shadow: none;
}

.button.inactive {
  border-color: var(--grey-50);
  color: var(--grey-70);
  background-color: var(--white);
}

.button.inactive:hover {
  border-color: var(--primary-color);
  color: var(--text-color);
  background: var(--primary-10);
}

@media (max-width: 42rem) {
  input[type="submit"] {
    width: 100%;
  }
}

/* CTA button */

.cta-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  border-radius: var(--br-rounded);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
  color var(--duration) var(--ease);
  white-space: nowrap;
  background-color: var(--white);
  border: var(--border-width) solid var(--primary-color);
  color: var(--text-color);

}

.cta-button__arrow {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  background-color: var(--primary-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M13.50005,27.00005c-3.582367.009766-7.01976-1.414032-9.545998-3.95401C1.414067,20.519795-.009723,17.082417.00005,13.50005c-.009766-3.582367,1.414017-7.019745,3.954002-9.54599C6.48029,1.414082,9.917683-.009716,13.50005.00005c3.582367-.009766,7.01976,1.414032,9.545998,3.95401,2.539986,2.526245,3.963776,5.963623,3.954002,9.54599.009766,3.582367-1.414017,7.019745-3.954002,9.54599-2.526237,2.539978-5.963631,3.963776-9.545998,3.95401ZM7.44405,11.963063c-.868843.001099-1.572899.70517-1.573997,1.574005.000542.869232.704765,1.573914,1.573997,1.575012h7.764l-3.611,3.610992c-.296738.294647-.46312.695831-.461998,1.114014-.00116.418457.165215.819977.461998,1.11499.288857.290009.679718.455444,1.088997.460999h.050003c.409279-.005554.80014-.17099,1.088997-.460999l6.300003-6.299988c.296921-.294525.463341-.695801.461998-1.114014.001007-.418152-.165359-.819305-.461998-1.114014h0v-.005005l-6.300003-6.299988c-.288918-.289917-.679741-.455353-1.088997-.460999h-.050003c-.409256.005646-.800079.171082-1.088997.460999-.296738.294647-.46312.695831-.461998,1.114014-.001122.418182.16526.819366.461998,1.114014l3.611,3.612-7.764.003967Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M13.50005,27.00005c-3.582367.009766-7.01976-1.414032-9.545998-3.95401C1.414067,20.519795-.009723,17.082417.00005,13.50005c-.009766-3.582367,1.414017-7.019745,3.954002-9.54599C6.48029,1.414082,9.917683-.009716,13.50005.00005c3.582367-.009766,7.01976,1.414032,9.545998,3.95401,2.539986,2.526245,3.963776,5.963623,3.954002,9.54599.009766,3.582367-1.414017,7.019745-3.954002,9.54599-2.526237,2.539978-5.963631,3.963776-9.545998,3.95401ZM7.44405,11.963063c-.868843.001099-1.572899.70517-1.573997,1.574005.000542.869232.704765,1.573914,1.573997,1.575012h7.764l-3.611,3.610992c-.296738.294647-.46312.695831-.461998,1.114014-.00116.418457.165215.819977.461998,1.11499.288857.290009.679718.455444,1.088997.460999h.050003c.409279-.005554.80014-.17099,1.088997-.460999l6.300003-6.299988c.296921-.294525.463341-.695801.461998-1.114014.001007-.418152-.165359-.819305-.461998-1.114014h0v-.005005l-6.300003-6.299988c-.288918-.289917-.679741-.455353-1.088997-.460999h-.050003c-.409256.005646-.800079.171082-1.088997.460999-.296738.294647-.46312.695831-.461998,1.114014-.001122.418182.16526.819366.461998,1.114014l3.611,3.612-7.764.003967Z'/%3E%3C/svg%3E") no-repeat center / contain;
  /* The disc fills the viewBox edge-to-edge, so at fractional pixel sizes the
     mask clips the antialiased top/bottom into flat edges. Shrinking the mask a
     hair off the box boundary keeps the circle round without changing its size. */
  -webkit-mask-size: calc(100% - 2px);
  mask-size: calc(100% - 2px);
  transition: transform var(--duration) var(--ease);
}

.cta-button:hover {
  text-decoration: none;
  background-color: var(--primary-20);
}

/* Disabled CTA (e.g. the booking submit while an email is refused as ineligible):
   greyed out, no hover lift, muted arrow — clearly non-actionable. */
.cta-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--grey-50);
  color: var(--grey-70);
  background-color: var(--white);
}

.cta-button:disabled:hover {
  background-color: var(--white);
}

.cta-button:disabled .cta-button__arrow {
  background-color: var(--grey-50);
}

.cta-button.white {
  background-color: transparent;
  border: var(--border-width) solid var(--white);
  color: var(--white);
}

.cta-button.white:hover {
  background-color: var(--white-10);
}

/* Pink on the purple panel is weak contrast — use white there. */
.cta-button.white:focus-visible {
  outline-color: var(--white);
}

.cta-button.white .cta-button__arrow {
  background-color: var(--white);
}

/* Small button */

.button.small {
  padding: 0.4rem 0.8rem;
  font-size: var(--font-sm);
}

