/* ==========================================================================
   Apex Eventi - Quiet Luxury One-Page Landing CSS
   Brand Colors:
   Primary Dark: #1C1C1C | Neutral Light: #F1F1F1 | Text Main: #F2F2F2
   Text Muted: #AFAFAF | Divider: #3B3B3B | Subtle Accent: #E8E6E1
   ========================================================================== */

:root {
  --color-primary-dark: #1C1C1C;
  --color-bg-light: #F1F1F1;
  --color-text-main: #F2F2F2;
  --color-text-muted: #AFAFAF;
  --color-divider: #3B3B3B;
  --color-accent-green: #E8E6E1;

  --font-serif: 'Montserrat', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--color-primary-dark);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent-green);
  color: var(--color-primary-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

a:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem 1.5rem;
  background: none;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 108%;
  z-index: -1;
  pointer-events: none;
  /* 68-stop ultra-high-precision cosine-eased scrim gradient (every ~1.5%) */
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.9800) 0%,
    rgba(8, 8, 8, 0.9795) 1.5%,
    rgba(8, 8, 8, 0.9778) 3%,
    rgba(8, 8, 8, 0.9751) 4.5%,
    rgba(8, 8, 8, 0.9714) 6%,
    rgba(8, 8, 8, 0.9666) 7.5%,
    rgba(8, 8, 8, 0.9607) 9%,
    rgba(8, 8, 8, 0.9538) 10.5%,
    rgba(8, 8, 8, 0.9459) 12%,
    rgba(8, 8, 8, 0.9370) 13.5%,
    rgba(8, 8, 8, 0.9271) 15%,
    rgba(8, 8, 8, 0.9162) 16.5%,
    rgba(8, 8, 8, 0.9044) 18%,
    rgba(8, 8, 8, 0.8917) 19.5%,
    rgba(8, 8, 8, 0.8780) 21%,
    rgba(8, 8, 8, 0.8635) 22.5%,
    rgba(8, 8, 8, 0.8481) 24%,
    rgba(8, 8, 8, 0.8319) 25.5%,
    rgba(8, 8, 8, 0.8149) 27%,
    rgba(8, 8, 8, 0.7972) 28.5%,
    rgba(8, 8, 8, 0.7787) 30%,
    rgba(8, 8, 8, 0.7596) 31.5%,
    rgba(8, 8, 8, 0.7398) 33%,
    rgba(8, 8, 8, 0.7195) 34.5%,
    rgba(8, 8, 8, 0.6986) 36%,
    rgba(8, 8, 8, 0.6772) 37.5%,
    rgba(8, 8, 8, 0.6554) 39%,
    rgba(8, 8, 8, 0.6332) 40.5%,
    rgba(8, 8, 8, 0.6107) 42%,
    rgba(8, 8, 8, 0.5879) 43.5%,
    rgba(8, 8, 8, 0.5649) 45%,
    rgba(8, 8, 8, 0.5417) 46.5%,
    rgba(8, 8, 8, 0.5184) 48%,
    rgba(8, 8, 8, 0.4950) 49.5%,
    rgba(8, 8, 8, 0.4716) 51%,
    rgba(8, 8, 8, 0.4483) 52.5%,
    rgba(8, 8, 8, 0.4251) 54%,
    rgba(8, 8, 8, 0.4021) 55.5%,
    rgba(8, 8, 8, 0.3793) 57%,
    rgba(8, 8, 8, 0.3568) 58.5%,
    rgba(8, 8, 8, 0.3346) 60%,
    rgba(8, 8, 8, 0.3128) 61.5%,
    rgba(8, 8, 8, 0.2914) 63%,
    rgba(8, 8, 8, 0.2705) 64.5%,
    rgba(8, 8, 8, 0.2502) 66%,
    rgba(8, 8, 8, 0.2304) 67.5%,
    rgba(8, 8, 8, 0.2113) 69%,
    rgba(8, 8, 8, 0.1928) 70.5%,
    rgba(8, 8, 8, 0.1751) 72%,
    rgba(8, 8, 8, 0.1581) 73.5%,
    rgba(8, 8, 8, 0.1419) 75%,
    rgba(8, 8, 8, 0.1265) 76.5%,
    rgba(8, 8, 8, 0.1120) 78%,
    rgba(8, 8, 8, 0.0983) 79.5%,
    rgba(8, 8, 8, 0.0856) 81%,
    rgba(8, 8, 8, 0.0738) 82.5%,
    rgba(8, 8, 8, 0.0629) 84%,
    rgba(8, 8, 8, 0.0530) 85.5%,
    rgba(8, 8, 8, 0.0441) 87%,
    rgba(8, 8, 8, 0.0362) 88.5%,
    rgba(8, 8, 8, 0.0293) 90%,
    rgba(8, 8, 8, 0.0234) 91.5%,
    rgba(8, 8, 8, 0.0186) 93%,
    rgba(8, 8, 8, 0.0142) 94.5%,
    rgba(8, 8, 8, 0.0098) 96%,
    rgba(8, 8, 8, 0.0058) 97.5%,
    rgba(8, 8, 8, 0.0022) 99%,
    rgba(8, 8, 8, 0) 100%
  );
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-container {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-img {
  height: 140px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header-contact-link {
  font-size: 0.8rem;
  letter-spacing: 3px;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.5rem 0;
  position: relative;
}

.header-contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-accent-green);
  transition: width 0.3s ease;
}

.header-contact-link:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.lang-btn:hover {
  color: var(--color-text-main);
}

.lang-btn.active {
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-accent-green);
}

.lang-divider {
  color: var(--color-divider);
  font-size: 0.75rem;
}

/* Hero Scroll Track & Native Sticky Stage */
.hero-scroll-track {
  position: relative;
  width: 100%;
  height: 340vh;
  background-color: var(--color-primary-dark);
}

.hero-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh; /* Stable viewport height: prevents mobile URL bar collapse jitter */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-dark);
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-media-wrapper picture,
.hero-media-picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-video, .hero-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  /* Lock video/image into browser GPU sRGB shader pipeline so DWM hardware overlay promotion never shifts colors/gamma */
  filter: contrast(1.0001);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(28, 28, 28, 0.35) 0%, rgba(28, 28, 28, 0.8) 100%);
  z-index: 2;
}

/* Circular Portal Mask Layer (holds #1C1C1C background + central logo; circular mask cutout lets the video expand over the logo) */
.hero-portal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  background-color: var(--color-primary-dark);
  --portal-radius: 0%;
  -webkit-mask-image: radial-gradient(
    circle farthest-corner at 50% 50%,
    transparent calc(var(--portal-radius, 0%) - 0.8px),
    #000 var(--portal-radius, 0%)
  );
  mask-image: radial-gradient(
    circle farthest-corner at 50% 50%,
    transparent calc(var(--portal-radius, 0%) - 0.8px),
    #000 var(--portal-radius, 0%)
  );
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Hero Content Elements */
.hero-content-wrapper {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 15;
  opacity: 1;
}

.scroll-text {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  margin-right: -4px; /* Perfectly balances trailing letter-spacing */
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--color-text-muted) 0%, rgba(175, 175, 175, 0) 100%);
  animation: pulseLine 2s infinite ease-in-out;
  margin: 0 auto;
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Central Logo Container (Solution B - Official PNG Logo) */
.central-logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 72vw;
  height: auto;
  z-index: 20;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.apex-official-logo-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

/* Hero Claim Container (Cinematic Bottom-Left Editorial Layout) */
.hero-claim-container {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: left;
  z-index: 25;
  width: 100%;
  max-width: 1600px;
  padding: 0 3rem;
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
}

.hero-claim {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
  max-width: 820px;
}

.hero-subclaim {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.05vw, 1.05rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding-left: 1.25rem;
  border-left: 1px solid var(--color-divider);
}

/* Contact Scene */
.contact-scene {
  position: relative;
  z-index: 30;
  padding: 8rem 3rem 7rem;
  background-color: var(--color-primary-dark);
  width: 100%;
  border-top: 1px solid var(--color-divider);
}

.contact-container {
  max-width: 820px;
  margin: 0 auto;
}

.contact-header {
  text-align: left;
  margin-bottom: 3.5rem;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Form Layout */
.apex-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.required-asterisk {
  color: var(--color-accent-green);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-divider);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(175, 175, 175, 0.4);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-accent-green);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--color-accent-green);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Phone Input Group with Custom Quiet Luxury Dropdown */
.phone-input-group {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  width: 100%;
}

.custom-prefix-dropdown {
  position: relative;
  flex: 0 0 118px;
  user-select: none;
}

.prefix-trigger {
  width: 100%;
  height: 100%;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-divider);
  border-radius: 2px;
  padding: 0.95rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--color-text-main);
  font-family: var(--font-sans);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.prefix-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 230, 225, 0.4);
}

.custom-prefix-dropdown.is-open .prefix-trigger,
.prefix-trigger:focus-visible {
  border-color: var(--color-accent-green);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px var(--color-accent-green);
}

.prefix-trigger-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.prefix-trigger-code {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-main);
}

.prefix-trigger-arrow {
  color: var(--color-text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  flex-shrink: 0;
}

.custom-prefix-dropdown.is-open .prefix-trigger-arrow {
  transform: rotate(180deg);
  color: var(--color-accent-green);
}

/* Dropdown Menu */
.prefix-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 3rem);
  z-index: 1000;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-divider);
  border-radius: 3px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.custom-prefix-dropdown.is-open .prefix-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Search input wrap */
.prefix-search-wrap {
  position: relative;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.02);
}

.prefix-search-icon {
  position: absolute;
  left: 1.45rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.prefix-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  padding: 0.55rem 0.75rem 0.55rem 1.9rem;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.prefix-search-input::placeholder {
  color: rgba(175, 175, 175, 0.5);
  font-size: 0.8rem;
}

.prefix-search-input:focus {
  border-color: var(--color-accent-green);
  background: rgba(255, 255, 255, 0.06);
}

/* Options List */
.prefix-list {
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
  padding: 0.35rem 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #3B3B3B transparent;
}

.prefix-list::-webkit-scrollbar {
  width: 4px;
}

.prefix-list::-webkit-scrollbar-track {
  background: transparent;
}

.prefix-list::-webkit-scrollbar-thumb {
  background: #3B3B3B;
  border-radius: 2px;
}

.prefix-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 0.88rem;
  color: var(--color-text-main);
  font-family: var(--font-sans);
}

.prefix-option:hover,
.prefix-option.is-focused {
  background-color: rgba(255, 255, 255, 0.06);
}

.prefix-option.selected {
  background-color: rgba(232, 230, 225, 0.08);
  font-weight: 500;
}

.prefix-opt-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.prefix-opt-flag {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.prefix-opt-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prefix-opt-code {
  font-size: 0.82rem;
  color: var(--color-accent-green);
  letter-spacing: 0.5px;
  font-weight: 500;
  flex-shrink: 0;
}

.prefix-no-results {
  padding: 1.25rem 0.95rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: none;
}

.phone-number-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Checkbox */
.checkbox-group {
  margin-top: 0.5rem;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-checkbox:checked {
  background-color: var(--color-accent-green);
  border-color: var(--color-accent-green);
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 4px;
  height: 8px;
  border: solid var(--color-primary-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 2px;
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.privacy-link {
  color: var(--color-text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-link:hover {
  color: var(--color-accent-green);
}

/* Google reCAPTCHA v3 Badge (Hidden per Google Official Compliance Policy) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* reCAPTCHA User Flow Compliance Note */
.recaptcha-legal-text {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  opacity: 0.65;
  text-align: center;
  margin-top: 1.25rem;
  letter-spacing: 0.2px;
}

.recaptcha-legal-text a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.recaptcha-legal-text a:hover {
  color: var(--color-accent-green);
}

/* Submit Button */
.submit-group {
  margin-top: 1rem;
}

.btn-primary {
  width: 100%;
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-text-main);
  padding: 1.25rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.btn-primary:hover {
  background: var(--color-text-main);
  color: var(--color-primary-dark);
  border-color: var(--color-text-main);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 4px;
}

.form-status {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.5rem;
  transition: opacity 0.3s ease;
}

.form-status.success {
  color: var(--color-accent-green);
}

.form-status.error {
  color: #E57373;
}

/* ==========================================================================
   Quiet Luxury Privacy Disclaimer Modal
   ========================================================================== */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-modal.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.privacy-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.privacy-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: rgba(22, 22, 22, 0.98);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.privacy-modal.is-active .privacy-modal-container {
  transform: translateY(0) scale(1);
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.015);
}

.privacy-modal-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.privacy-modal-logo {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  align-self: flex-start;
  flex-shrink: 0;
  display: block;
}

.privacy-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-main);
  margin: 0;
}

.privacy-modal-close {
  background: none;
  border: 1px solid var(--color-divider);
  border-radius: 2px;
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.privacy-modal-close:hover {
  color: var(--color-text-main);
  border-color: var(--color-accent-green);
  background: rgba(255, 255, 255, 0.05);
}

.privacy-modal-body {
  padding: 1.75rem 2.25rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3B3B3B transparent;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  font-weight: 300;
}

.privacy-modal-body::-webkit-scrollbar {
  width: 4px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
  background: #3B3B3B;
  border-radius: 2px;
}

.privacy-modal-intro {
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.65;
}

.privacy-modal-section {
  margin-bottom: 1.5rem;
}

.privacy-modal-section h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.privacy-modal-section p {
  margin: 0;
  color: var(--color-text-muted);
}

.privacy-modal-section a {
  color: var(--color-accent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-modal-footer {
  padding: 1.25rem 2.25rem;
  border-top: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  justify-content: flex-end;
}

.privacy-modal-ack-btn {
  width: auto;
  min-height: 42px;
  padding: 0.75rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

body.modal-open {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .privacy-modal {
    padding: 1rem;
  }
  .privacy-modal-header {
    padding: 1.25rem 1.5rem 1rem;
  }
  .privacy-modal-body {
    padding: 1.25rem 1.5rem;
  }
  .privacy-modal-footer {
    padding: 1rem 1.5rem;
  }
  .privacy-modal-logo {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }
  .privacy-modal-title {
    font-size: 1.15rem;
  }
}

/* Footer */
.site-footer {
  background-color: #111111;
  padding: 6rem 3rem 4rem;
  border-top: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 96px;
  width: auto;
  display: block;
}

.footer-copyright {
  color: var(--color-text-main);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-muted);

}

.footer-link:hover {
  color: var(--color-text-main);
}

.footer-sep {
  color: var(--color-divider);
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-legal-text {
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 820px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .site-header {
    padding: 1.25rem 2rem;
  }

  .header-logo-img {
    height: 120px;
  }

  .hero-claim-container {
    padding: 0 2rem;
    bottom: 14vh;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 1rem 1.5rem;
  }

  .header-logo-img {
    height: 102px;
  }

  .footer-logo {
    height: 76px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-scene {
    padding: 6rem 1.5rem 5rem;
  }

  .site-footer {
    padding: 4rem 1.5rem 3rem;
  }

  .central-logo-container {
    width: 220px;
  }

  .hero-claim-container {
    padding: 0 1.5rem;
    bottom: 24vh;
  }

  .hero-subclaim {
    padding-left: 1rem;
  }

  .scroll-indicator {
    bottom: 2rem;
    gap: 0.6rem;
  }

  .scroll-text {
    font-size: 0.64rem;
    letter-spacing: 3px;
    margin-right: -3px;
  }

  .scroll-line {
    height: 30px;
  }
}

@media (max-width: 479px) {
  .hero-claim-container {
    bottom: 22vh;
  }

  .central-logo-container {
    width: 180px;
  }

  .custom-prefix-dropdown {
    flex: 0 0 108px;
  }

  .prefix-trigger {
    padding: 0.95rem 0.65rem;
    gap: 0.3rem;
  }

  .prefix-trigger-code {
    font-size: 0.88rem;
  }

  .prefix-menu {
    width: 290px;
  }

  .btn-primary {
    padding: 1.1rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-claim-container {
    bottom: 8vh !important;
  }
}

/* Fallback & Accessibility: Prefers Reduced Motion / No-JS */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(28,28,28,0.95);
  }

  .hero-scroll-track {
    height: auto !important;
  }

  .hero-stage {
    position: relative !important;
    height: auto;
    min-height: 90vh;
    padding: 8rem 2rem 4rem;
  }

  .hero-portal-mask {
    position: relative !important;
    background: transparent !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .scroll-indicator {
    display: none !important;
  }

  .central-logo-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto 3rem !important;
  }

  #apex-official-logo {
    opacity: 1 !important;
  }

  .hero-claim-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 auto !important;
  }
}
