/* Connect guest form — matches The Rishika Show tokens. */
.connect-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity .35s var(--ease, cubic-bezier(.2, .75, .25, 1)), visibility .35s;
}
.connect-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
body.connect-modal-open { overflow: hidden; }
body.connect-modal-open .call-float { visibility: hidden; pointer-events: none; }
html.connect-modal-open .pin-spacer { visibility: hidden; }

.connect-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 15, .62);
  backdrop-filter: blur(6px);
}

.connect-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  color: var(--ink, #11100f);
  background: var(--paper, #f4efe6);
  border: 1px solid var(--line, rgba(17, 16, 15, .16));
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  overflow: hidden;
  transform: scale(.96);
  transition: transform .4s var(--ease, cubic-bezier(.2, .75, .25, 1));
}
.connect-modal.is-open .connect-modal__dialog {
  transform: none;
}

.connect-modal__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}
.connect-modal__close span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
}
.connect-modal__close span::before,
.connect-modal__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.connect-modal__close span::before { transform: rotate(45deg); }
.connect-modal__close span::after { transform: rotate(-45deg); }
.connect-modal__close:hover {
  color: var(--ink);
  background: var(--red);
  border-color: var(--red);
}

.connect-modal__scroll {
  overflow: auto;
  padding: 36px 32px 28px;
  overscroll-behavior: contain;
}

.connect-modal__head { margin-bottom: 22px; padding-right: 36px; }
.connect-modal__progress {
  margin-bottom: 12px;
  color: var(--sun);
}
.connect-modal__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.connect-modal__lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}
.connect-modal__bar {
  height: 2px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.connect-modal__bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--ink);
  transform-origin: left center;
  transition: transform .35s var(--ease, cubic-bezier(.2, .75, .25, 1));
}
.connect-modal[data-step="2"] .connect-modal__bar span { transform: scaleX(2); }
.connect-modal.is-success .connect-modal__bar,
.connect-modal.is-success .connect-modal__progress,
.connect-modal.is-success .connect-modal__title,
.connect-modal.is-success .connect-modal__lead { display: none; }

.connect-form__step {
  display: none;
}
.connect-form__step.is-active {
  display: block;
  animation: connect-step-in .38s var(--ease, cubic-bezier(.2, .75, .25, 1)) both;
}
.connect-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.connect-q {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.connect-req { color: var(--sun); font-size: 16px; }
.connect-opt {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.connect-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.connect-form input,
.connect-form textarea {
  width: 100%;
  margin: 0;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.connect-form textarea { min-height: 88px; }
#connect-topic { min-height: 148px; }
.connect-form input:focus,
.connect-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.connect-form input.is-invalid,
.connect-form textarea.is-invalid { border-bottom-color: #b42318; }
.connect-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 12px;
}
.connect-error--form { margin-bottom: 12px; }

.connect-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.connect-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease, cubic-bezier(.2, .75, .25, 1));
}
.connect-chip:hover { transform: translateY(-1px); border-color: var(--ink); }
.connect-chip[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.connect-chip__icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.connect-chip__icon[data-icon="instagram"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm5 4.4A4.6 4.6 0 1 0 16.6 12 4.6 4.6 0 0 0 12 7.4zm0 7.6A3 3 0 1 1 15 12a3 3 0 0 1-3 3zm5.15-8.55a1.05 1.05 0 1 0 1.05 1.05 1.05 1.05 0 0 0-1.05-1.05z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm5 4.4A4.6 4.6 0 1 0 16.6 12 4.6 4.6 0 0 0 12 7.4zm0 7.6A3 3 0 1 1 15 12a3 3 0 0 1-3 3zm5.15-8.55a1.05 1.05 0 1 0 1.05 1.05 1.05 1.05 0 0 0-1.05-1.05z'/%3E%3C/svg%3E");
}
.connect-chip__icon[data-icon="youtube"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M23 12.2s0-3.4-.4-4.9c-.3-1.1-1.1-1.9-2.2-2.2C18.7 4.6 12 4.6 12 4.6s-6.7 0-8.4.5c-1.1.3-1.9 1.1-2.2 2.2C1 8.8 1 12.2 1 12.2s0 3.4.4 4.9c.3 1.1 1.1 1.9 2.2 2.2 1.7.5 8.4.5 8.4.5s6.7 0 8.4-.5c1.1-.3 1.9-1.1 2.2-2.2.4-1.5.4-4.9.4-4.9zM9.8 15.5v-6.6l6.3 3.3-6.3 3.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M23 12.2s0-3.4-.4-4.9c-.3-1.1-1.1-1.9-2.2-2.2C18.7 4.6 12 4.6 12 4.6s-6.7 0-8.4.5c-1.1.3-1.9 1.1-2.2 2.2C1 8.8 1 12.2 1 12.2s0 3.4.4 4.9c.3 1.1 1.1 1.9 2.2 2.2 1.7.5 8.4.5 8.4.5s6.7 0 8.4-.5c1.1-.3 1.9-1.1 2.2-2.2.4-1.5.4-4.9.4-4.9zM9.8 15.5v-6.6l6.3 3.3-6.3 3.3z'/%3E%3C/svg%3E");
}
.connect-chip__icon[data-icon="linkedin"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4.98 3.5A2.5 2.5 0 1 1 2.5 6a2.5 2.5 0 0 1 2.48-2.5zM3 8.75h3.96V21H3zM9.34 8.75H13v1.67h.05c.5-.95 1.74-1.95 3.58-1.95 3.83 0 4.54 2.52 4.54 5.8V21h-3.96v-5.4c0-1.29 0-2.94-1.8-2.94s-2.07 1.4-2.07 2.85V21H9.34z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4.98 3.5A2.5 2.5 0 1 1 2.5 6a2.5 2.5 0 0 1 2.48-2.5zM3 8.75h3.96V21H3zM9.34 8.75H13v1.67h.05c.5-.95 1.74-1.95 3.58-1.95 3.83 0 4.54 2.52 4.54 5.8V21h-3.96v-5.4c0-1.29 0-2.94-1.8-2.94s-2.07 1.4-2.07 2.85V21H9.34z'/%3E%3C/svg%3E");
}
.connect-chip__icon[data-icon="x"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.9 2H22l-6.8 7.8L23 22h-6.5l-5.1-6.7L5.7 22H2.6l7.3-8.3L1 2h6.6l4.6 6.1L18.9 2zm-1.1 18h1.8L6.3 3.9H4.4L17.8 20z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.9 2H22l-6.8 7.8L23 22h-6.5l-5.1-6.7L5.7 22H2.6l7.3-8.3L1 2h6.6l4.6 6.1L18.9 2zm-1.1 18h1.8L6.3 3.9H4.4L17.8 20z'/%3E%3C/svg%3E");
}
.connect-chip__icon[data-icon="facebook"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 9h3V6h-3c-2.2 0-4 1.8-4 4v2H7v3h3v7h3v-7h3l1-3h-4V10c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 9h3V6h-3c-2.2 0-4 1.8-4 4v2H7v3h3v7h3v-7h3l1-3h-4V10c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}
.connect-chip__icon[data-icon="tiktok"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.5 3c.4 2.6 1.9 4.2 4.5 4.5v3.1c-1.5 0-2.9-.5-4.1-1.3v6.5A6.8 6.8 0 1 1 9.2 9.2v3.2a3.6 3.6 0 1 0 2.5 3.4V3h2.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.5 3c.4 2.6 1.9 4.2 4.5 4.5v3.1c-1.5 0-2.9-.5-4.1-1.3v6.5A6.8 6.8 0 1 1 9.2 9.2v3.2a3.6 3.6 0 1 0 2.5 3.4V3h2.8z'/%3E%3C/svg%3E");
}

.connect-social-field {
  margin-top: 14px;
  overflow: hidden;
  animation: connect-field-in .28s var(--ease, cubic-bezier(.2, .75, .25, 1)) both;
}
.connect-social-field[hidden] { display: none; }
.connect-social-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.connect-handle {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.connect-handle > span {
  color: var(--muted);
  font-weight: 600;
}

.connect-form__actions .button,
.connect-modal__success .button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--ease, cubic-bezier(.2, .75, .25, 1)), color .25s, background .25s;
}
.connect-form__actions .button-dark,
.connect-modal__success .button-dark {
  color: var(--white);
  background: var(--ink);
}
.connect-form__actions .button-dark:hover,
.connect-modal__success .button-dark:hover {
  color: var(--ink);
  background: transparent;
}
.connect-form__actions--split { justify-content: space-between; }
.connect-back {
  background: transparent;
  color: var(--ink);
}
.connect-back:hover { background: rgba(17, 16, 15, .05); transform: none; }
.connect-form .button[disabled] {
  opacity: .65;
  pointer-events: none;
  transform: none;
}

.connect-modal__success {
  text-align: center;
  padding: 24px 8px 12px;
  animation: connect-step-in .4s var(--ease, cubic-bezier(.2, .75, .25, 1)) both;
}
.connect-modal__success[hidden] { display: none; }
.connect-modal__success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--ink);
}
.connect-modal__success-mark svg { width: 64px; height: 64px; }
.connect-modal__success h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -.04em;
}
.connect-modal__success p {
  margin: 0 0 22px;
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes connect-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes connect-field-in {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 120px; }
}

@media (max-width: 640px) {
  .connect-modal { padding: 10px; align-items: end; }
  .connect-modal__dialog {
    width: 100%;
    max-height: min(96vh, 100%);
    border-radius: 18px 18px 12px 12px;
  }
  .connect-modal__scroll { padding: 28px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .connect-modal,
  .connect-modal__dialog,
  .connect-form__step.is-active,
  .connect-social-field,
  .connect-modal__success,
  .connect-chip,
  .connect-modal__bar span {
    animation: none !important;
    transition: none !important;
  }
  .connect-modal.is-open .connect-modal__dialog {
    transform: none;
    opacity: 1;
  }
}
