/* Inhouse booking — overlay on standard text_on_image sizing (homepage subhead) */

.text_on_image--inhouse {
  width: 100%;
}

.text_on_image--inhouse .inhouse-booking {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.inhouse-booking.is-active {
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.inhouse-booking__panel {
  width: min(100%, 24rem);
  margin: 0 auto;
  padding: 0.65rem 0.8rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 12, 14, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transition:
    width 0.4s ease,
    padding 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

.inhouse-booking.is-active .inhouse-booking__panel,
.inhouse-booking.is-sent .inhouse-booking__panel {
  width: min(100%, 58rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(8, 12, 14, 0.92);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

/* —— Head —— */
.inhouse-booking__eyebrow,
.inhouse-booking__lead,
.inhouse-booking__login {
  display: none;
}

.inhouse-booking.is-active .inhouse-booking__eyebrow,
.inhouse-booking.is-active .inhouse-booking__lead {
  display: block;
}

.inhouse-booking__login {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.inhouse-booking.is-active .inhouse-booking__login {
  display: flex;
}

.inhouse-booking__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.inhouse-booking.is-active .inhouse-booking__eyebrow {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
}

.inhouse-booking__title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.inhouse-booking.is-active .inhouse-booking__title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.15;
  color: #fff;
}

.inhouse-booking__lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.inhouse-booking__login-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inhouse-booking__login-link:hover,
.inhouse-booking__login-link:focus {
  color: #7fe8ee;
}

/* —— Teaser (always visible) —— */
.inhouse-booking__form {
  display: block;
}

.inhouse-booking__teaser {
  margin: 0;
}

.inhouse-booking__teaser-grid {
  display: grid;
  gap: 0.45rem;
}

.inhouse-booking.is-active .inhouse-booking__teaser-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.inhouse-booking.is-active .inhouse-booking__field--company {
  grid-column: 1 / -1;
}

.inhouse-booking.is-active .inhouse-booking__field--date,
.inhouse-booking.is-active .inhouse-booking__field--time {
  grid-column: span 1;
}

.inhouse-booking__teaser-hint {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.inhouse-booking.is-active .inhouse-booking__teaser-hint {
  display: none;
}

.inhouse-booking__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.inhouse-booking__open:hover,
.inhouse-booking__open:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.inhouse-booking.is-active .inhouse-booking__open {
  display: none;
}

/* —— Details (hidden until expanded) —— */
.inhouse-booking__details {
  display: grid;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.45s ease, opacity 0.35s ease, gap 0.35s ease, margin 0.35s ease;
}

.inhouse-booking.is-active .inhouse-booking__details {
  gap: 0.7rem;
  max-height: 120rem;
  margin-top: 0.85rem;
  opacity: 1;
  pointer-events: auto;
}

.inhouse-booking__grid {
  display: grid;
  gap: 0.7rem;
}

.inhouse-booking__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.inhouse-booking__field {
  display: grid;
  gap: 0.22rem;
}

.inhouse-booking.is-active .inhouse-booking__field {
  gap: 0.28rem;
}

.inhouse-booking__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.inhouse-booking.is-active .inhouse-booking__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

.inhouse-booking__input,
.inhouse-booking__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.inhouse-booking.is-active .inhouse-booking__input,
.inhouse-booking.is-active .inhouse-booking__textarea {
  padding: 0.58rem 0.72rem;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  font-size: inherit;
}

.inhouse-booking__input::placeholder,
.inhouse-booking__textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.inhouse-booking.is-active .inhouse-booking__input::placeholder,
.inhouse-booking.is-active .inhouse-booking__textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.inhouse-booking__input:focus,
.inhouse-booking__textarea:focus {
  outline: none;
  border-color: rgba(0, 196, 204, 0.85);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.22);
}

.inhouse-booking__input.inhouse-booking__input--invalid,
.inhouse-booking__textarea.inhouse-booking__input--invalid {
  border-color: rgba(255, 118, 118, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.22);
}

.inhouse-booking__time-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.25rem;
  align-items: center;
}

.inhouse-booking__time-sep {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.inhouse-booking__textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.inhouse-booking__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.inhouse-booking.is-active .inhouse-booking__hint {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.72rem;
}

.inhouse-booking__hint:hover,
.inhouse-booking__hint:focus {
  background: rgba(255, 255, 255, 0.24);
}

.inhouse-booking__hint-text {
  margin: -0.2rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.inhouse-booking__hint-text:not([hidden]) {
  display: block;
}

.inhouse-booking__check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.inhouse-booking__check input {
  margin-top: 0.2rem;
}

.inhouse-booking__privacy {
  color: #fff;
  text-decoration: underline;
}

.inhouse-booking__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inhouse-booking__error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(204, 6, 7, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #fff;
  font-size: 0.86rem;
}

.inhouse-booking__error:not([hidden]) {
  display: block;
}

.inhouse-booking__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.78rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #cc0607;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.inhouse-booking__submit:hover,
.inhouse-booking__submit:focus {
  background: #a80506;
  box-shadow: 0 10px 24px rgba(204, 6, 7, 0.35);
}

.inhouse-booking__submit-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* —— Success —— */
.inhouse-booking__thanks,
.inhouse-booking__contact {
  text-align: center;
}

.inhouse-booking__thanks-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
}

.inhouse-booking__calc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.inhouse-booking__dots span {
  animation: inhouseDotPulse 1.1s infinite ease-in-out;
}

.inhouse-booking__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.inhouse-booking__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes inhouseDotPulse {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.inhouse-booking__contact-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.inhouse-booking__contact-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  font-weight: 600;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

/* Exclusive business card — content only in .vcf download */
.inhouse-booking__bizcard {
  position: relative;
  width: min(100%, 17.5rem);
  aspect-ratio: 1.586 / 1;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: linear-gradient(152deg, #ffffff 0%, #fafafa 42%, #f0f0f2 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: perspective(800px) rotateX(2deg);
  transform-style: preserve-3d;
}

.inhouse-booking__bizcard-shine {
  position: absolute;
  inset: -80% -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(255, 255, 255, 0.15) 44%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.15) 56%,
    transparent 62%
  );
  animation: inhouseBizcardShine 5s ease-in-out infinite;
}

@keyframes inhouseBizcardShine {
  0%,
  72%,
  100% {
    transform: translateX(-55%) rotate(18deg);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  38% {
    transform: translateX(55%) rotate(18deg);
    opacity: 0.85;
  }
  52% {
    opacity: 0;
  }
}

.inhouse-booking__bizcard-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  padding: 1.1rem 1.15rem 1rem;
  box-sizing: border-box;
}

.inhouse-booking__bizcard-mark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #cc0607;
  line-height: 1;
}

.inhouse-booking__bizcard-line {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #cc0607, rgba(204, 6, 7, 0.15));
}

.inhouse-booking__bizcard-name {
  margin: auto 0 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  line-height: 1.1;
}

.inhouse-booking__bizcard-badge {
  align-self: flex-end;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.inhouse-booking__bizcard-hint {
  margin: 0 auto 1rem;
  max-width: 20rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.inhouse-booking__vcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.inhouse-booking__vcard-btn:hover,
.inhouse-booking__vcard-btn:focus {
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #000;
}

.inhouse-booking.is-sent.is-contact-ready .inhouse-booking__bizcard {
  animation: inhouseBizcardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes inhouseBizcardReveal {
  from {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(2deg) translateY(0) scale(1);
  }
}

.inhouse-booking.is-sent .inhouse-booking__form {
  display: none;
}

.inhouse-booking.is-sent.is-contact-ready .inhouse-booking__thanks {
  display: none !important;
}

.inhouse-booking.is-sent.is-contact-ready .inhouse-booking__contact {
  display: block !important;
}

.inhouse-booking.is-sent .inhouse-booking__thanks:not([hidden]) {
  display: block;
}

@media (min-width: 540px) {
  .inhouse-booking:not(.is-active) .inhouse-booking__teaser-grid {
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 0.4rem;
    align-items: end;
  }

  .inhouse-booking:not(.is-active) .inhouse-booking__panel {
    width: min(100%, 32rem);
  }
}

@media (max-width: 720px) {
  .inhouse-booking.is-active .inhouse-booking__grid--2 {
    grid-template-columns: 1fr;
  }

  .inhouse-booking.is-active .inhouse-booking__teaser-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inhouse-booking__panel,
  .inhouse-booking__details,
  .inhouse-booking__input,
  .inhouse-booking__submit {
    transition: none;
  }

  .inhouse-booking__dots span {
    animation: none;
    opacity: 1;
  }

  .inhouse-booking__bizcard-shine {
    animation: none;
    opacity: 0;
  }

  .inhouse-booking.is-sent.is-contact-ready .inhouse-booking__bizcard {
    animation: none;
  }
}
