/**
 * Contact page — four cinematic scenes BELOW the hero.
 * Hero is intentionally untouched (body.page-contact .fl-hero rules live elsewhere / hero-pages).
 *
 * Scene 1 #invitation — centered invitation + CTA
 * Scene 2 #contact-panel — info + form (two columns)
 * Scene 3 #instagram — social, image-led
 * Scene 4 #closing — emotional ending
 *
 * @package Flamingo_Liqueur
 */

/* --------------------------------------------------------------------------
   Page shell (below hero only)
   -------------------------------------------------------------------------- */

.page-contact .c-entry__content--blocks {
  --fl-contact-pink: #ff4fa3;
  --fl-contact-gold: var(--fl-gold, #c9a14a);
}

.page-contact .c-entry__content--blocks > .fl-story + .fl-story,
.page-contact .c-entry__content--blocks > .fl-story + .fl-contact,
.page-contact .c-entry__content--blocks > .fl-contact + .fl-story {
  border-top: 0;
}

.page-contact .c-entry__content--blocks > *:not(.fl-hero) {
  --fl-container: 72rem;
}

/* --------------------------------------------------------------------------
   SCENE 1 — Invitation (center)
   -------------------------------------------------------------------------- */

.page-contact #invitation {
  padding-block: clamp(5.5rem, 14vh, 9.5rem) clamp(4.5rem, 11vh, 7.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 50% 42% at 50% 38%, rgba(255, 79, 163, 0.14), transparent 65%),
    #050505;
}

.page-contact #invitation .l-container {
  max-width: 40rem;
  margin-inline: auto;
}

.page-contact #invitation .fl-story__grid,
.page-contact #invitation .fl-layout-grid,
.page-contact #invitation .fl-layout-grid--media-end,
.page-contact #invitation .fl-layout-grid--media-start {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.page-contact #invitation .fl-story__media,
.page-contact #invitation .fl-image-frame,
.page-contact #invitation .fl-story__img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.page-contact #invitation .fl-story__copy {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;
  justify-self: center;
  order: 0 !important;
}

.page-contact #invitation.fl-story--image-left .fl-story__copy,
.page-contact #invitation.fl-story--image-right .fl-story__copy {
  order: 0 !important;
  margin-inline: auto;
  text-align: center;
}

.page-contact #invitation .fl-story__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 1.35rem;
  color: var(--fl-contact-pink);
  letter-spacing: 0.34em;
  font-size: 0.68rem;
  width: max-content;
  max-width: 100%;
  text-align: center;
}

.page-contact #invitation .fl-story__label::before,
.page-contact #invitation .fl-story__label::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
  flex: 0 0 auto;
}

.page-contact #invitation .fl-story__title {
  margin: 0 auto clamp(1.25rem, 3vh, 1.85rem);
  max-width: none;
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page-contact #invitation .fl-story__description {
  margin: 0 auto clamp(2rem, 4.5vh, 2.75rem);
}

.page-contact #invitation .fl-story__description p {
  margin: 0 auto;
  max-width: 18rem;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 2.05;
  color: rgba(235, 235, 235, 0.86);
  text-align: center;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page-contact #invitation .fl-story__actions {
  justify-content: center;
  margin: 0;
}

.page-contact #invitation .fl-story__cta,
.page-contact #invitation .fl-btn {
  min-width: 12rem;
  min-height: 2.85rem;
  border-color: rgba(255, 79, 163, 0.65);
  background: transparent;
  color: #fff;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
}

.page-contact #invitation .fl-story__cta:hover,
.page-contact #invitation .fl-story__cta:focus-visible,
.page-contact #invitation .fl-btn:hover,
.page-contact #invitation .fl-btn:focus-visible {
  background: rgba(255, 79, 163, 0.18);
  border-color: var(--fl-contact-pink);
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   SCENE 2 — Contact panel (left info / right form)
   -------------------------------------------------------------------------- */

.page-contact #contact-panel {
  padding-block: clamp(4.5rem, 10vh, 7.5rem) clamp(5rem, 12vh, 8.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(201, 161, 74, 0.08), transparent 55%),
    linear-gradient(180deg, #070709 0%, #050505 100%);
}

.page-contact #contact-panel .l-container {
  max-width: 68rem;
}

.page-contact #contact-panel .fl-contact__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(10px);
}

@media (min-width: 960px) {
  .page-contact #contact-panel .fl-contact__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2.5rem, 4vw, 3.75rem);
    padding: clamp(2.25rem, 4vw, 3.25rem);
  }
}

.page-contact #contact-panel .fl-contact__header {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  text-align: left;
}

.page-contact #contact-panel .fl-contact__label {
  margin: 0 0 0.9rem;
  color: var(--fl-contact-gold);
  letter-spacing: 0.28em;
  font-size: 0.66rem;
}

.page-contact #contact-panel .fl-contact__title {
  margin: 0 0 1rem;
  max-width: 10ch;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-contact #contact-panel .fl-contact__intro {
  margin: 0;
}

.page-contact #contact-panel .fl-contact__intro p {
  margin: 0 0 0.55rem;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(210, 210, 210, 0.88);
  word-break: keep-all;
}

.page-contact #contact-panel .fl-contact__card {
  margin: 0 0 1.35rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-contact #contact-panel .fl-contact__card-label,
.page-contact #contact-panel .fl-contact__meta-label {
  margin: 0 0 0.4rem;
  color: rgba(255, 79, 163, 0.85);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-contact #contact-panel .fl-contact__card-value,
.page-contact #contact-panel .fl-contact__meta-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: #f2f2f2;
}

.page-contact #contact-panel .fl-contact__card-value a,
.page-contact #contact-panel .fl-contact__meta-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 161, 74, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.page-contact #contact-panel .fl-contact__card-value a:hover,
.page-contact #contact-panel .fl-contact__meta-value a:hover {
  color: var(--fl-contact-pink);
  border-color: rgba(255, 79, 163, 0.7);
}

.page-contact #contact-panel .fl-contact__meta {
  margin: 0 0 0.5rem;
}

.page-contact #contact-panel .fl-contact__meta-row {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-contact #contact-panel .fl-contact__meta-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-contact #contact-panel .fl-contact__categories-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.page-contact #contact-panel .fl-contact__categories-item {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(220, 220, 220, 0.9);
  letter-spacing: 0.02em;
}

.page-contact #contact-panel .fl-contact__categories-title {
  display: none;
}

/* Form — luxury underline fields */
.page-contact #contact-panel .fl-contact__form-inner,
.page-contact #contact-panel .fl-contact-form {
  max-width: none;
}

.page-contact #contact-panel .fl-contact-form__legend {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 79, 163, 0.75);
  text-align: right;
}

.page-contact #contact-panel .fl-contact-form__field {
  margin: 0 0 1.45rem;
  display: grid;
  gap: 0.35rem;
}

.page-contact #contact-panel .fl-contact-form__field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.92);
}

.page-contact #contact-panel .fl-contact-form__help {
  font-size: 0.72rem;
  color: rgba(160, 160, 160, 0.85);
  letter-spacing: 0.02em;
}

.page-contact #contact-panel .fl-contact-form__field input[type="text"],
.page-contact #contact-panel .fl-contact-form__field input[type="email"],
.page-contact #contact-panel .fl-contact-form__field input[type="tel"],
.page-contact #contact-panel .fl-contact-form__field select,
.page-contact #contact-panel .fl-contact-form__field textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0 0.65rem;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  appearance: none;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.page-contact #contact-panel .fl-contact-form__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.page-contact #contact-panel .fl-contact-form__field input:focus,
.page-contact #contact-panel .fl-contact-form__field select:focus,
.page-contact #contact-panel .fl-contact-form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--fl-contact-pink);
}

.page-contact #contact-panel .fl-contact-form__field select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 2px), calc(100% - 7px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

.page-contact #contact-panel .fl-contact-form__field--consent {
  margin-top: 1.75rem;
}

.page-contact #contact-panel .fl-contact-form__field--consent label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(210, 210, 210, 0.9);
}

.page-contact #contact-panel .fl-contact-form__field--consent a {
  color: var(--fl-contact-gold);
}

.page-contact #contact-panel .fl-contact-form__actions {
  margin: 2rem 0 0;
  text-align: left;
}

.page-contact #contact-panel .fl-contact-form__submit {
  min-width: 11.5rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 79, 163, 0.7);
  background: transparent;
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.page-contact #contact-panel .fl-contact-form__submit:hover,
.page-contact #contact-panel .fl-contact-form__submit:focus-visible {
  background: rgba(255, 79, 163, 0.18);
  border-color: var(--fl-contact-pink);
}

.page-contact #contact-panel .fl-contact-form__notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.page-contact #contact-panel .fl-contact-form__hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   SCENE 3 — Social (image left / copy right)
   -------------------------------------------------------------------------- */

.page-contact #instagram {
  padding-block: clamp(4.5rem, 11vh, 7.5rem);
  background:
    radial-gradient(ellipse 55% 50% at 20% 50%, rgba(255, 79, 163, 0.16), transparent 58%),
    #050505;
}

.page-contact #instagram .l-container {
  max-width: 68rem;
}

.page-contact #instagram .fl-story__grid,
.page-contact #instagram .fl-layout-grid {
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .page-contact #instagram .fl-story__grid,
  .page-contact #instagram .fl-layout-grid--media-start,
  .page-contact #instagram.fl-story--image-left .fl-story__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.page-contact #instagram .fl-story__img,
.page-contact #instagram .fl-image-frame {
  display: block !important;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 0;
}

.page-contact #instagram .fl-story__label {
  color: var(--fl-contact-pink);
  letter-spacing: 0.3em;
  font-size: 0.66rem;
}

.page-contact #instagram .fl-story__title {
  max-width: 8ch;
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-contact #instagram .fl-story__description p {
  max-width: 18rem;
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(220, 220, 220, 0.88);
  word-break: keep-all;
}

.page-contact #instagram .fl-story__cta,
.page-contact #instagram .fl-btn {
  min-width: 10.5rem;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
}

.page-contact #instagram .fl-story__cta:hover,
.page-contact #instagram .fl-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  transform: none;
}

/* --------------------------------------------------------------------------
   SCENE 4 — Closing (center ending)
   -------------------------------------------------------------------------- */

.page-contact #closing {
  padding-block: clamp(6rem, 16vh, 11rem);
  text-align: center;
  background:
    radial-gradient(ellipse 48% 40% at 50% 35%, rgba(255, 79, 163, 0.12), transparent 62%),
    #030303;
}

.page-contact #closing .l-container {
  max-width: 36rem;
  margin-inline: auto;
}

.page-contact #closing .fl-story__grid,
.page-contact #closing .fl-layout-grid {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-template-columns: minmax(0, 1fr) !important;
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.page-contact #closing .fl-story__media,
.page-contact #closing .fl-image-frame {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.page-contact #closing .fl-story__copy {
  width: 100%;
  margin-inline: auto;
  text-align: center;
  order: 0 !important;
}

.page-contact #closing .fl-story__label {
  margin: 0 auto 1.25rem;
  color: var(--fl-contact-pink);
  letter-spacing: 0.34em;
  font-size: 0.66rem;
}

.page-contact #closing .fl-story__title {
  margin: 0 auto clamp(1.25rem, 3vh, 1.85rem);
  max-width: 8ch;
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page-contact #closing .fl-story__description p {
  margin: 0 auto clamp(1.75rem, 4vh, 2.5rem);
  max-width: 16rem;
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(210, 210, 210, 0.86);
  text-align: center;
  word-break: keep-all;
}

.page-contact #closing .fl-story__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.page-contact #closing .fl-story__label::before,
.page-contact #closing .fl-story__label::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.page-contact #closing .fl-story__actions {
  justify-content: center;
}

.page-contact #closing .fl-story__cta,
.page-contact #closing .fl-btn {
  min-width: 11rem;
  border-color: rgba(201, 161, 74, 0.55);
  background: transparent;
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
}

.page-contact #closing .fl-story__cta:hover,
.page-contact #closing .fl-btn:hover {
  background: rgba(201, 161, 74, 0.16);
  border-color: var(--fl-contact-gold);
  transform: none;
}

/* Soft reveals */
@media (prefers-reduced-motion: no-preference) {
  .page-contact #invitation .fl-story__copy,
  .page-contact #contact-panel .fl-contact__grid,
  .page-contact #instagram .fl-story__grid,
  .page-contact #closing .fl-story__copy {
    animation: fl-contact-rise 1.05s var(--fl-ease) both;
  }
}

@keyframes fl-contact-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .page-contact #contact-panel .fl-contact__grid {
    padding: 1.35rem 1.1rem;
  }

  .page-contact #contact-panel .fl-contact-form__actions {
    text-align: center;
  }

  .page-contact #instagram .fl-story__img {
    aspect-ratio: 4 / 3;
  }
}
