/* Doceree Rooftop Social — event page styles (scoped under #rooftop-social-root).
   Everything is namespaced so the page's base element rules (img, a, typography)
   never leak onto the shared Doceree navbar/footer chrome. */

#rooftop-social-root {
  --event-purple: #6c40f7;
  --event-purple-soft: #7b61ff;
  --event-ink: #1f1f24;
  --event-muted: #4a4d5c;
  --event-line: #e6e2ef;
  --event-bg: #f7f6fa;

  background: #ffffff;
  color: var(--event-ink);
  font-family: "Urbanist", "Work Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#rooftop-social-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

#rooftop-social-root a {
  color: inherit;
}

#rooftop-social-root .event-container {
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
}

/* ===== Hero banner ===== */
#rooftop-social-root .event-banner {
  position: relative;
  width: 100%;
  color: #fff;
  overflow: hidden;
  background-color: var(--event-purple);
  background-image: url("assets/hero-bg.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  isolation: isolate;
}

#rooftop-social-root .event-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(92, 48, 235, 0.5) 0%,
    rgba(108, 64, 247, 0.22) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

#rooftop-social-root .event-banner-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
  min-height: clamp(320px, 46vw, 540px);
  display: flex;
  align-items: center;
  /* Extra top padding clears the fixed Doceree header (announcement + nav + tabs). */
  padding: clamp(140px, 15vw, 178px) 0 clamp(2.25rem, 5vw, 4rem);
}

#rooftop-social-root .event-banner-copy {
  max-width: min(560px, 56%);
  animation: rooftop-rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#rooftop-social-root .banner-kicker {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

#rooftop-social-root .banner-title {
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

#rooftop-social-root .banner-brand {
  font-size: clamp(2.3rem, 5.2vw, 3.85rem);
}

#rooftop-social-root .banner-event {
  font-size: clamp(2.5rem, 5.8vw, 4.2rem);
}

#rooftop-social-root .banner-meta {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

#rooftop-social-root .banner-meta li,
#rooftop-social-root .banner-meta-pair {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
}

#rooftop-social-root .banner-meta-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem 1.75rem !important;
}

#rooftop-social-root .banner-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.12rem;
}

#rooftop-social-root .banner-icon svg {
  width: 100%;
  height: 100%;
}

#rooftop-social-root .banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--event-purple);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(20, 5, 50, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#rooftop-social-root .banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(20, 5, 50, 0.26);
  text-decoration: none;
}

/* ===== About — editorial layout from reference ===== */
#rooftop-social-root .event-about {
  background: var(--event-bg);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

#rooftop-social-root .about-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

#rooftop-social-root .about-heading h2 {
  margin: 0;
  max-width: 11ch;
  color: var(--event-ink);
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

#rooftop-social-root .about-copy .event-lead {
  margin: 0 0 1.15rem;
  color: var(--event-ink);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
}

#rooftop-social-root .about-copy p {
  margin: 0 0 1rem;
  color: var(--event-muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

#rooftop-social-root .event-tagline {
  margin: 1.35rem 0 0 !important;
  color: var(--event-purple) !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* ===== RSVP ===== */
#rooftop-social-root .event-rsvp {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(123, 97, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #f5f2ff 0%, #faf9ff 45%, #ffffff 100%);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  scroll-margin-top: 120px;
}

#rooftop-social-root .rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

#rooftop-social-root .rsvp-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--event-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#rooftop-social-root .rsvp-intro h2 {
  margin: 0 0 0.85rem;
  color: var(--event-ink);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

#rooftop-social-root .rsvp-intro p:not(.rsvp-eyebrow) {
  margin: 0;
  max-width: 28rem;
  color: var(--event-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

#rooftop-social-root .rsvp-panel {
  border: 1px solid #e8e0ff;
  border-radius: 18px;
  background: #ffffff;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(79, 48, 233, 0.08);
}

/* ===== HubSpot form — themed to match the original RSVP form ===== */
#rooftop-social-root .rsvp-form-hs .hs-form {
  display: grid;
  gap: 1rem;
}

#rooftop-social-root .rsvp-form-hs fieldset {
  max-width: none !important;
  width: 100% !important;
  margin: 0;
}

#rooftop-social-root .rsvp-form-hs fieldset.form-columns-1,
#rooftop-social-root .rsvp-form-hs fieldset.form-columns-2 {
  display: grid;
  gap: 1rem;
}

#rooftop-social-root .rsvp-form-hs fieldset.form-columns-2 {
  grid-template-columns: 1fr 1fr;
}

#rooftop-social-root .rsvp-form-hs .hs-form-field {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

#rooftop-social-root .rsvp-form-hs .hs-form-field > label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--event-ink);
}

#rooftop-social-root .rsvp-form-hs .hs-form-field > label .hs-form-required {
  color: var(--event-purple);
  margin-left: 2px;
}

#rooftop-social-root .rsvp-form-hs .hs-field-desc {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--event-muted);
}

#rooftop-social-root .rsvp-form-hs .input {
  margin: 0 !important;
}

#rooftop-social-root .rsvp-form-hs .hs-input {
  width: 100% !important;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid #ddd8f2;
  border-radius: 10px;
  background: #fcfbff;
  font: inherit;
  font-size: 1rem;
  color: var(--event-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

#rooftop-social-root .rsvp-form-hs select.hs-input {
  height: 48px;
}

#rooftop-social-root .rsvp-form-hs textarea.hs-input {
  min-height: 110px;
  height: auto;
  resize: vertical;
}

#rooftop-social-root .rsvp-form-hs .hs-input::placeholder {
  color: #9f9fb8;
}

#rooftop-social-root .rsvp-form-hs .hs-input:hover {
  border-color: #c7b8ff;
}

#rooftop-social-root .rsvp-form-hs .hs-input:focus {
  border-color: var(--event-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.16);
}

#rooftop-social-root .rsvp-form-hs .hs-input.invalid.error {
  border-color: #e35d6a;
  box-shadow: 0 0 0 4px rgba(227, 93, 106, 0.12);
}

#rooftop-social-root .rsvp-form-hs .hs-error-msgs {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

#rooftop-social-root .rsvp-form-hs .hs-error-msg,
#rooftop-social-root .rsvp-form-hs .hs-error-msgs label {
  color: #c0394a;
  font-size: 0.8rem;
}

#rooftop-social-root .rsvp-form-hs .legal-consent-container,
#rooftop-social-root .rsvp-form-hs .hs_error_rollup {
  font-size: 0.8rem;
  color: var(--event-muted);
}

#rooftop-social-root .rsvp-form-hs .hs_submit .actions {
  display: flex;
  margin: 0.5rem 0 0;
  padding: 0;
}

#rooftop-social-root .rsvp-form-hs .hs-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b61ff 0%, #6c40f7 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(108, 64, 247, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#rooftop-social-root .rsvp-form-hs .hs-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(108, 64, 247, 0.45);
}

#rooftop-social-root .rsvp-form-hs .submitted-message {
  color: var(--event-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

@keyframes rooftop-rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rooftop-social-root .event-banner-copy {
    animation: none;
  }
}

@media (max-width: 900px) {
  #rooftop-social-root .about-top,
  #rooftop-social-root .rsvp-layout {
    grid-template-columns: 1fr;
  }

  #rooftop-social-root .about-heading h2 {
    max-width: none;
  }

  #rooftop-social-root .event-banner-inner {
    min-height: auto;
    padding: clamp(108px, 26vw, 140px) 0 clamp(3rem, 12vw, 6rem);
  }

  #rooftop-social-root .event-banner-copy {
    max-width: 100%;
  }

  #rooftop-social-root .event-banner::before {
    background: linear-gradient(
      180deg,
      rgba(92, 48, 235, 0.7) 0%,
      rgba(108, 64, 247, 0.4) 55%,
      rgba(108, 64, 247, 0.18) 100%
    );
  }
}

@media (max-width: 640px) {
  #rooftop-social-root .rsvp-form-hs fieldset.form-columns-2 {
    grid-template-columns: 1fr;
  }

  #rooftop-social-root .banner-cta {
    width: 100%;
  }

  #rooftop-social-root .event-container {
    width: min(100% - 2rem, 1120px);
  }
}
