/* ==========================================================================
   THE INVITATION PALACE - CONTACT US PAGE STYLES
   Ultra-luxury editorial aesthetic matching Collections, Story, Process & Blog
   ========================================================================== */

@font-face {
  font-family: 'Absans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/absans.woff2') format('woff2'),
       url('../assets/fonts/absans.ttf') format('truetype'),
       url('https://static.wixstatic.com/ufonts/8c3f0e_59fb57afe89a464494e49a7d8036fb75/woff2/file.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Header & Glassy Sticky Navbar (Matching Collections, Story, Process & Blog)
   Top state: Navlink text is Black over light background
   Scrolled state: Navbar takes #3B0301 and Navlink text becomes White
   -------------------------------------------------------------------------- */
.site-header {
  background: #FAF8F5 !important;
  background-color: #FAF8F5 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03) !important;
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

/* Nav links when at the top: Black */
.site-header .nav-link {
  color: #000000 !important;
  text-shadow: none !important;
  transition: color 0.3s ease, opacity 0.25s ease !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #b58d3d !important;
}

/* Mobile hamburger bars when at the top: Black */
.mobile-menu-toggle span {
  background-color: #000000 !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease !important;
}

/* Scrolled State: Navbar takes #3B0301 background and Nav links turn White */
.site-header.is-scrolled {
  background: #3B0301 !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.site-header.is-scrolled .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.active {
  color: #D4AF37 !important;
}

/* Mobile hamburger bars when scrolled: White */
.site-header.is-scrolled .mobile-menu-toggle span {
  background-color: #FFFFFF !important;
}

/* Mobile Nav Drawer opens right below navbar */
@media (max-width: 768px) {
  .mobile-nav-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    top: 64px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Page Background & Canvas Container (Matching Collections, Story & Process)
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-light);
  color: #2b2725;
}

.contact-main {
  min-height: auto;
  position: relative;
  width: 100%;
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Contact Page Hero Header (Unified luxury title matching Collections, Story, Process & Blog)
   -------------------------------------------------------------------------- */
.contact-hero-section {
  position: relative;
  text-align: center;
  padding: 45px 20px 28px 20px;
  background-color: #ffffff;
}

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

.contact-hero-title {
  font-family: 'Cinzel', 'Libre Caslon Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-align: center;
  margin: 0 auto;
  line-height: 1.25;
}

.contact-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 140px;
  max-width: 140px;
  min-width: 140px;
  height: auto;
  background: none;
  border: none;
  margin: 18px auto 0 auto;
  padding: 0;
}

.contact-hero-divider::before,
.contact-hero-divider::after {
  content: '';
  flex: 1 1 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b58d3d);
}

.contact-hero-divider::after {
  background: linear-gradient(90deg, #b58d3d, transparent);
}

.contact-hero-divider-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #b58d3d;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.contact-hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: #555555;
  max-width: 720px;
  margin: 18px auto 0 auto;
  text-align: center;
  display: block;
}

@media screen and (max-width: 768px) {
  .contact-hero-section {
    padding: 35px 16px 22px 16px;
  }

  .contact-hero-divider {
    width: 120px;
    max-width: 120px;
    min-width: 120px;
    gap: 12px;
    margin-top: 14px;
  }

  .contact-hero-subtitle {
    font-size: 16px;
    margin-top: 14px;
    padding: 0 10px;
  }
}

/* ==========================================================================
   ATELIER STATIONERY ENQUIRY SECTION (ByGG London Exact Replica & Luxury Enhancements)
   ========================================================================== */
.atelier-enquiry-section {
  position: relative;
  background-color: #FFFFFF;
  padding: 15px 30px 90px 30px;
  width: 100%;
  box-sizing: border-box;
}

.atelier-enquiry-container {
  max-width: 1220px;
  margin: 0 auto;
}

/* Section Header (Matches ByGG London 'GET IN TOUCH' 1:1) */
.atelier-enquiry-header {
  margin-bottom: 38px;
}

.atelier-enquiry-title {
  font-family: 'Cinzel', 'Libre Caslon Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #8F7256;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.atelier-enquiry-note {
  font-family: 'Absans', 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  color: #6a6159;
  line-height: 1.5;
  margin: 0;
}

.atelier-enquiry-lead {
  font-weight: 600;
  font-style: italic;
  color: #3B0301;
}

/* Main Form Layout Grid (Exact 2-column desktop split) */
.atelier-enquiry-form {
  width: 100%;
}

.atelier-enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 52px;
  row-gap: 24px;
  align-items: start;
}

.atelier-form-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Dual input fields row (First Name + Last Name, Email + Phone) */
.atelier-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 24px;
}

.atelier-field-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* Labels: Sharp uppercase editorial typography */
.atelier-label {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2C3531;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.req-star {
  color: #b58d3d;
  font-size: 13px;
  font-weight: 700;
  margin-left: 3px;
}

/* Inputs, Textareas, and Dropdown Selects */
.atelier-input,
.atelier-textarea,
.atelier-select {
  width: 100%;
  border: 1px solid #000000;
  border-radius: 0px;
  background-color: #FFFFFF;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 13px 14px;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  -webkit-appearance: none;
}

.atelier-input:focus,
.atelier-textarea:focus,
.atelier-select:focus {
  border-color: #3B0301;
  box-shadow: 0 0 0 1px #3B0301, 0 4px 14px rgba(59, 3, 1, 0.12);
  outline: none;
}

.atelier-input::placeholder,
.atelier-textarea::placeholder {
  color: #999999;
  font-weight: 300;
  font-size: 13.5px;
}

.atelier-textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.55;
}

/* Select Dropdown with Custom Luxury Chevron */
.atelier-select-wrap {
  position: relative;
  width: 100%;
}

.atelier-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-color: #FFFFFF;
}

.atelier-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease;
}

.atelier-select:focus + .atelier-select-arrow {
  color: #3B0301;
  transform: translateY(-50%) rotate(180deg);
}

/* Artwork Card (Right Column illustration of bespoke triptych wedding suite) */
.atelier-artwork-card {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

/* Visibility controls: Mobile image first */
.atelier-mobile-artwork {
  display: none;
}

.atelier-desktop-artwork {
  display: flex;
}

.atelier-artwork-frame {
  width: 100%;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.atelier-artwork-frame:hover {
  transform: translateY(-4px) scale(1.015);
}

.atelier-artwork-img {
  width: 100%;
  max-width: 474px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.08));
}

/* Error Validation State */
.atelier-input.is-invalid,
.atelier-textarea.is-invalid,
.atelier-select.is-invalid {
  border-color: #b3261e !important;
  box-shadow: 0 0 0 1px #b3261e, 0 2px 10px rgba(179, 38, 30, 0.15) !important;
  animation: atelierFieldShake 0.45s ease-in-out;
}

@keyframes atelierFieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.atelier-error-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #b3261e;
  margin-top: 5px;
  display: none;
}

.atelier-field-group.has-error .atelier-error-text {
  display: block;
}

/* ==========================================================================
   UNIQUE & DIFFERENT ROYAL ATELIER SUBMIT BUTTON (Premium Luxury Animation)
   ========================================================================== */
.atelier-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 40px;
  position: relative;
  width: 100%;
}

.royal-atelier-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 340px;
  height: 60px;
  padding: 0 42px;
  border-radius: 4px;
  background: linear-gradient(135deg, #3B0301 0%, #200100 100%);
  color: #FFFFFF;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #D4AF37;
  box-shadow: inset 0 0 0 1px rgba(255, 235, 160, 0.25), 0 8px 24px rgba(59, 3, 1, 0.28);
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Magnetic Cursor Reflection Spotlight */
.royal-atelier-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 230, 150, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* Liquid Gold Foil Light Sweep */
.royal-btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 238, 175, 0.55) 50%, transparent 80%);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: goldShimmerSweep 5.5s infinite ease-in-out;
  z-index: 1;
}

@keyframes goldShimmerSweep {
  0%, 65% {
    left: -120%;
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    left: 230%;
    opacity: 0;
  }
}

/* Ambient Breathing Aura */
.royal-atelier-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Button Hover State */
.royal-atelier-btn:hover {
  transform: translateY(-2.5px);
  border-color: #F8E192;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 14px 36px rgba(59, 3, 1, 0.42), 0 0 28px rgba(212, 175, 55, 0.45);
}

.royal-atelier-btn:hover::before,
.royal-atelier-btn:hover::after {
  opacity: 1;
}

.royal-atelier-btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 6px 16px rgba(59, 3, 1, 0.35);
}

/* Button Text */
.royal-btn-text {
  position: relative;
  z-index: 2;
  transition: letter-spacing 0.35s ease, color 0.35s ease;
}

.royal-atelier-btn:hover .royal-btn-text {
  letter-spacing: 4px;
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(255, 235, 170, 0.6);
}

/* Golden Calligraphy Arrow */
.royal-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #D4AF37;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  z-index: 2;
}

.royal-atelier-btn:hover .royal-btn-arrow {
  transform: translateX(7px);
  color: #FFFFFF;
}

/* Loading / Submitting State */
.royal-atelier-btn.is-submitting {
  pointer-events: none;
  opacity: 0.85;
  cursor: wait;
}

/* Clean & Elegant Success State */
.royal-atelier-btn.is-success {
  pointer-events: none;
  background: #3B0301 !important;
  border-color: #b58d3d !important;
  box-shadow: 0 4px 16px rgba(59, 3, 1, 0.25) !important;
}

.royal-atelier-btn.is-success .royal-btn-text {
  color: #FFFFFF;
  letter-spacing: 2px;
}

.royal-atelier-btn.is-success .royal-btn-arrow {
  display: none;
}

/* Simple & Elegant Confirmation Card */
.atelier-success-card {
  display: none;
  width: 100%;
  max-width: 680px;
  margin-top: 24px;
  padding: 24px 28px;
  background: #FAF8F5;
  border: 1px solid rgba(181, 141, 61, 0.35);
  border-left: 3px solid #3B0301;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.atelier-success-card.is-visible {
  display: block;
}

.atelier-success-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.atelier-success-emblem {
  width: 32px;
  height: 32px;
  color: #b58d3d;
  flex-shrink: 0;
}

.atelier-success-title {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3B0301;
  margin: 0;
}

.atelier-success-desc {
  font-family: 'Absans', 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #4a453e;
  margin: 0 0 14px 0;
}

.atelier-success-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8F7256;
  font-weight: 500;
  margin: 0;
}

/* Responsive Breakpoints */
@media screen and (min-width: 992px) {
  .atelier-enquiry-grid {
    align-items: stretch;
  }

  .atelier-form-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    height: 100%;
  }

  .atelier-desktop-artwork {
    margin-top: -34px;
    margin-bottom: 12px;
  }

  .atelier-desktop-artwork .atelier-artwork-frame {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .atelier-desktop-artwork .atelier-artwork-img {
    max-width: 385px;
    max-height: 250px;
  }

  .atelier-form-right .atelier-form-row:first-of-type {
    /* Budget */
    margin-bottom: 22px;
  }

  .atelier-form-right .atelier-form-row:last-of-type {
    /* How Did You Hear About Us - aligned with Enquiry Type in left section */
    margin-top: auto;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 991px) {
  .atelier-mobile-artwork {
    display: flex;
    margin: 0 auto 32px auto;
    width: 100%;
    max-width: 520px;
  }

  .atelier-desktop-artwork {
    display: none !important;
  }

  .atelier-enquiry-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .royal-atelier-btn {
    width: 100%;
    min-width: 100%;
  }

  .atelier-submit-wrap {
    align-items: stretch;
  }
}

@media screen and (max-width: 580px) {
  .atelier-enquiry-section {
    padding: 10px 18px 70px 18px;
  }

  .atelier-dual-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .atelier-enquiry-header {
    margin-bottom: 28px;
  }

  .royal-atelier-btn {
    padding: 0 20px;
    font-size: 12px;
    letter-spacing: 2.5px;
  }
}

/* ==========================================================================
   FULL-WIDTH GOOGLE MAP SECTION
   ========================================================================== */
.contact-map-section {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #FAF8F5;
  border-top: 1px solid rgba(181, 141, 61, 0.25);
  border-bottom: 1px solid rgba(181, 141, 61, 0.25);
  line-height: 0;
}

.contact-map-wrapper {
  width: 100%;
  height: 480px;
  position: relative;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: block;
  border: 0;
}

@media screen and (max-width: 768px) {
  .contact-map-wrapper {
    height: 380px;
  }
  .contact-map-wrapper iframe {
    min-height: 380px;
  }
}

@media screen and (max-width: 480px) {
  .contact-map-wrapper {
    height: 320px;
  }
  .contact-map-wrapper iframe {
    min-height: 320px;
  }
}
