/* Shared booking design, loaded after the base and mobile styles. */
.booking-section {
  position: relative;
  padding: 64px var(--pad) 64px;
  border-top: 0;
}

.contact-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.booking-panel {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.booking-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.booking-heading {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

.booking-heading h2 {
  max-width: 760px;
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
  margin: 18px 0 16px;
}

.booking-heading p {
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.booking-profile {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  padding-bottom: 3px;
}

.booking-profile img {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(23, 32, 43, .08);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
}

.booking-profile > div {
  display: grid;
  gap: 5px;
}

.booking-profile strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.booking-profile span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.booking-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  margin: 0;
}

.booking-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 230px;
  gap: 0;
  padding: 22px 22px 14px;
  border: 1px solid #e1e4de;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.booking-option:hover {
  transform: translateY(-3px);
  border-color: #b9c8e2;
  background: #fff;
  box-shadow: 0 12px 26px rgba(23, 32, 43, .06);
}

.booking-duration {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 48px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--muted);
}

.booking-duration strong {
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.065em;
  color: var(--ink);
}

.booking-duration span {
  font-size: 14px;
  line-height: 1.4;
}

.booking-option-copy {
  flex: 1;
  min-width: 0;
  margin-top: 16px;
}

.booking-option-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.booking-option-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.booking-option-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}

.booking-option-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.booking-option-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f3f9;
  color: var(--blue);
  font-size: 19px;
  line-height: 1;
  transition: transform .2s, color .2s, background .2s;
}

.booking-option:hover .booking-option-arrow,
.booking-option:focus-visible .booking-option-arrow {
  background: var(--blue);
  color: #fff;
}

.booking-option:hover .booking-option-arrow {
  transform: translate(2px, -2px);
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
}

.booking-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.booking-footer .booking-fallback {
  max-width: none;
  margin: 0;
  padding-inline: 0;
  font-size: 13px;
  line-height: 1.65;
}

.booking-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 0;
}

.booking-contact-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.booking-message {
  min-width: 0;
}

.booking-message > p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.booking-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
}

.booking-email:hover {
  color: var(--blue);
}

.booking-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
}

.booking-copy .copy-email {
  margin: 0;
}

.booking-copy .copy-status {
  min-height: 0;
}

.booking-linkedin {
  flex-shrink: 0;
  border-color: var(--line);
  background: #fff;
}

.booking-update {
  max-width: 1150px;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.booking-enhanced .booking-embed {
  display: none;
}

.button {
  font-size: 13px;
}

.contact-links .booking-contact {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.contact-links .button-primary:not(.booking-contact) {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.contact-links .button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.site-header nav {
  font-size: 13px;
}

.site-header nav .nav-booking {
  min-height: 44px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.site-header nav .nav-booking:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.nav-booking-icon {
  display: none;
}

.booking-dialog {
  width: calc(100% - 40px);
  max-width: 640px;
  height: min(850px, calc(100dvh - 40px));
  margin: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(23, 32, 43, .28);
}

.booking-dialog::backdrop {
  background: rgba(23, 32, 43, .48);
  backdrop-filter: blur(4px);
}

.booking-dialog-header {
  gap: 20px;
  padding: 20px 28px;
}

.booking-dialog-header h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.booking-dialog-duration {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 6px;
}

.booking-dialog-close {
  width: 44px;
  height: 44px;
  background: #fff;
}

.booking-dialog-content {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.booking-dialog-frame {
  display: block;
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.booking-dialog-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  pointer-events: none;
}

.booking-loader-text {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.booking-loader-spinner {
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: kyaf-booking-spin .85s linear infinite;
}

.booking-dialog-footer {
  padding: 4px 28px calc(4px + env(safe-area-inset-bottom));
}

.booking-dialog-external {
  font-size: 13px;
  color: var(--muted);
}

.booking-dialog-external:hover {
  color: var(--blue);
}

@keyframes kyaf-booking-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .booking-section {
    padding: 36px var(--pad) 36px;
  }

  .booking-panel {
    padding: 0;
    border-radius: 0;
  }

  .booking-intro {
    display: block;
    margin-bottom: 22px;
  }

  .booking-heading h2 {
    font-size: clamp(34px, 8.8vw, 42px);
    line-height: 1.08;
    letter-spacing: -.05em;
    margin: 16px 0 12px;
  }

  .booking-heading p {
    font-size: 15px;
    line-height: 1.6;
  }

  .booking-profile {
    margin-top: 16px;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 0;
  }

  .booking-profile strong {
    font-size: 13px;
  }

  .booking-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .booking-option {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 28px;
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    min-height: 0;
    padding: 14px 16px 10px;
    border-radius: 16px;
  }

  .booking-duration {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    min-height: 0;
    margin-top: 2px;
    gap: 4px;
  }

  .booking-duration strong {
    font-size: 32px;
    letter-spacing: -.06em;
  }

  .booking-duration span {
    font-size: 12px;
  }

  .booking-option-copy {
    grid-column: 2 / -1;
    grid-row: 1;
    margin-top: 0;
  }

  .booking-option-copy h3 {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 7px;
    letter-spacing: -.025em;
  }

  .booking-option-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .booking-option-footer {
    grid-column: 2 / -1;
    grid-row: 2;
    min-height: 44px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: 8px;
  }

  .booking-option-label {
    font-size: 13px;
  }

  .booking-option-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .booking-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 18px;
  }

  .booking-note,
  .booking-footer .booking-fallback {
    font-size: 13px;
    line-height: 1.6;
  }

  .booking-contact-details {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 24px;
    margin-top: 12px;
    padding-top: 20px;
  }

  .booking-email {
    font-size: 17px;
  }

  .booking-update {
    margin-top: 16px;
    font-size: 14px;
  }

  .booking-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .booking-dialog-header {
    gap: 14px;
    padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  }

  .booking-dialog-header h2 {
    font-size: 20px;
    line-height: 1.25;
  }

  .booking-dialog-footer {
    padding: 0 18px env(safe-area-inset-bottom);
  }
}

@media (max-width: 360px) {
  .site-header nav .nav-booking .nav-booking-icon {
    display: block;
    flex-shrink: 0;
  }

  .site-header nav .nav-booking > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-option,
  .booking-option-arrow {
    transition: none;
  }

  .booking-option:hover,
  .booking-option:hover .booking-option-arrow {
    transform: none;
  }

  .booking-loader-spinner {
    animation: none;
  }
}
