/* Invite modal — white / black / #C6A75C */
.sharelle-invite-modal {
  --sim-black: #0b0b0b;
  --sim-white: #ffffff;
  --sim-gold: #c6a75c;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.sharelle-invite-modal.is-open {
  display: flex;
  animation: sharelle-invite-modal-in 0.28s ease both;
}

@keyframes sharelle-invite-modal-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sharelle-invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.sharelle-invite-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 880px);
  overflow: auto;
  background: var(--sim-white);
  color: var(--sim-black);
  border: 1px solid rgba(198, 167, 92, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 28px 32px;
  box-sizing: border-box;
}

.sharelle-invite-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--sim-black);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.sharelle-invite-modal__close:hover,
.sharelle-invite-modal__close:focus-visible {
  background: rgba(198, 167, 92, 0.2);
  color: var(--sim-black);
  outline: none;
}

.sharelle-invite-modal__headline {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 36px 10px 0;
  text-transform: none;
  color: var(--sim-black);
  letter-spacing: -0.02em;
}

.sharelle-invite-modal__sub {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sim-gold);
  margin: 0 36px 16px 0;
}

.sharelle-invite-modal__intro {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 22px;
  color: rgba(11, 11, 11, 0.82);
}

/* CF7 inside modal */
.sharelle-invite-modal .wpcf7 {
  margin: 0;
}

.sharelle-invite-modal .wpcf7 form {
  margin: 0;
}

.sharelle-invite-modal .wpcf7 input[type="text"],
.sharelle-invite-modal .wpcf7 input[type="email"],
.sharelle-invite-modal .wpcf7 input[type="tel"],
.sharelle-invite-modal .wpcf7 input[type="url"],
.sharelle-invite-modal .wpcf7 select,
.sharelle-invite-modal .wpcf7 textarea {
  border: 1px solid rgba(11, 11, 11, 0.2);
  background: #fafafa;
  color: var(--sim-black);
}

.sharelle-invite-modal .wpcf7 input:focus,
.sharelle-invite-modal .wpcf7 select:focus,
.sharelle-invite-modal .wpcf7 textarea:focus {
  border-color: var(--sim-gold);
  outline: none;
}

.sharelle-invite-modal .wpcf7 input[type="submit"] {
  background: var(--sim-gold) !important;
  color: var(--sim-black) !important;
  border: none !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 24px !important;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.sharelle-invite-modal .wpcf7 input[type="submit"]:hover {
  filter: brightness(1.05);
}

.sharelle-invite-modal .wpcf7 .ajax-loader {
  margin-left: 8px;
}

/* Form 9 ships a two-column “contact section”; in the modal we only need the fields */
.sharelle-invite-modal .contact-section {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.sharelle-invite-modal .contact-info {
  display: none !important;
}

.sharelle-invite-modal .contact-form-container {
  padding: 0 !important;
}

.sharelle-invite-modal .custom-wp-form {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

body.sharelle-invite-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .sharelle-invite-modal__panel {
    padding: 22px 18px 26px;
  }

  .sharelle-invite-modal__headline {
    font-size: 1.3rem;
  }
}
