/* ==========================================================================
   UNTERRO - VIRTUAL SHOWROOM PAGE STYLES (EDITORIAL LIGHT THEME)
   ========================================================================== */

.virtual-showroom-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for modern browsers */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg-primary); /* #fbfaf8 fallback */
  box-sizing: border-box;
}

/* Background image with container bounds fill */
.virtual-showroom__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Luxury dimming and contrast gradient overlay for maximum legibility */
.virtual-showroom__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(16, 15, 14, 0.45) 0%,
    rgba(16, 15, 14, 0.8) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Symmetrical container matching floating header alignments */
.virtual-showroom__container {
  position: relative;
  width: 100%;
  z-index: 3;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .virtual-showroom__container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .virtual-showroom__container {
    padding-left: 36px; /* 20px capsule margin + 16px capsule padding = exactly aligned under the logo */
    padding-right: 36px;
  }
}

/* Centered content block */
.virtual-showroom__content {
  max-width: 860px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Large editorial center title */
.virtual-showroom__title {
  font-family: var(--font-family-sans);
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 3rem); /* Proportional fluid typography scale - reduced size */
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-align: center;
  transition: font-size var(--transition-fast);
}

@media (min-width: 1440px) {
  .virtual-showroom__title {
    font-size: 3.25rem; /* Reduced from 4.5rem for elegant scale */
    margin-bottom: 24px;
  }
}

@media (min-width: 1920px) {
  .virtual-showroom__title {
    font-size: 3.75rem; /* Reduced from 5rem for elegant scale */
    margin-bottom: 28px;
  }
}

/* Sub-heading */
.virtual-showroom__subtitle {
  font-family: var(--font-family-sans);
  font-size: clamp(14px, 13px + 0.3vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 0 36px 0;
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: none; /* Sentence case as requested */
  transition: font-size var(--transition-fast);
}

@media (min-width: 1440px) {
  .virtual-showroom__subtitle {
    font-size: 18px;
    max-width: 640px;
    margin-bottom: 40px;
  }
}

@media (min-width: 1920px) {
  .virtual-showroom__subtitle {
    font-size: 20px;
    max-width: 720px;
    margin-bottom: 48px;
  }
}

/* Buttons actions layout row */
.virtual-showroom__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

@media (max-width: 480px) {
  .virtual-showroom__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (min-width: 1440px) {
  .virtual-showroom__actions {
    gap: 20px;
  }
}

@media (min-width: 1920px) {
  .virtual-showroom__actions {
    gap: 24px;
  }
}

/* Premium luxury buttons */
.virtual-showroom__btn {
  padding: 15px 32px;
  border-radius: 8px; /* Soft rectangular corners (8px radius) */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), 
              border-color var(--transition-fast), 
              color var(--transition-fast), 
              transform var(--transition-fast);
  box-sizing: border-box;
  cursor: pointer;
}

@media (max-width: 480px) {
  .virtual-showroom__btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 1440px) {
  .virtual-showroom__btn {
    padding: 18px 40px; /* Scaled up for large screens */
  }
}

@media (min-width: 1920px) {
  .virtual-showroom__btn {
    padding: 22px 48px; /* Scaled up for ultra-wide screens */
  }
}

.virtual-showroom__btn span {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (min-width: 1440px) {
  .virtual-showroom__btn span {
    font-size: 12px; /* Scaled up for large screens */
  }
}

@media (min-width: 1920px) {
  .virtual-showroom__btn span {
    font-size: 13px; /* Scaled up for ultra-wide screens */
  }
}

/* Primary Button: Muted Copper Accent */
.virtual-showroom__btn--primary {
  background-color: var(--color-accent); /* Muted copper accent */
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

.virtual-showroom__btn--primary:hover {
  background-color: #000000; /* Black background on hover */
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Secondary Button: Transparent Outline */
.virtual-showroom__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.virtual-showroom__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Remove global mobile padding-bottom to close the white line gap before the footer */
@media (max-width: 1023px) {
  .page-template-page-virtual-showroom #content {
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   HIDE SITE HEADER WHEN POPUP MODAL IS ACTIVE
   ========================================================================== */

body.site-modal-active .site-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-20px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

/* ==========================================================================
   HD STREAMING REQUEST POPUP MODAL STYLES (UNTERRO WARM LUXURY EDITORIAL)
   ========================================================================== */

.hd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-modal.is-active {
  opacity: 1;
  visibility: visible;
}

/* Light Soft Backdrop with Subtle Blur */
.hd-modal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 15, 14, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

/* Dialog Container - Clean White Luxury Card */
.hd-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  background-color: #ffffff;
  border: 1px solid #e7e5e0;
  border-radius: 10px;
  padding: 40px 44px;
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Sleek Scrollbar */
.hd-modal__dialog::-webkit-scrollbar {
  width: 6px;
}
.hd-modal__dialog::-webkit-scrollbar-track {
  background: #f7f6f4;
  border-radius: 8px;
}
.hd-modal__dialog::-webkit-scrollbar-thumb {
  background: #d5d2cb;
  border-radius: 8px;
}
.hd-modal__dialog::-webkit-scrollbar-thumb:hover {
  background: #b5b1a8;
}

/* Close Button - Clean Circular Outline */
.hd-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #d5d2cb;
  color: #1a1918;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

.hd-modal__close:hover {
  background-color: #f4f2ee;
  border-color: #1a1918;
  transform: rotate(90deg);
}

/* Header */
.hd-modal__header {
  margin-bottom: 26px;
  padding-right: 40px;
}

.hd-modal__eyebrow {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent); /* Primary Brand Accent #AD622F */
  text-transform: uppercase;
  display: block;
  margin: 0 0 6px 0;
}

.hd-modal__title {
  font-family: var(--font-family-sans);
  font-size: 24px;
  font-weight: 700;
  color: #100f0e;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Form Structure */
.hd-modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hd-modal__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.hd-modal__field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.hd-modal__field--full {
  width: 100%;
}

.hd-modal__label {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4845;
  margin-bottom: 6px;
  user-select: none;
}

/* Form Inputs & Textarea - Unterro Clean Styling */
.hd-modal__input,
.hd-modal__textarea {
  width: 100%;
  background-color: #faf9f6;
  border: 1px solid #dcd8d0;
  border-radius: 6px;
  padding: 12px 15px;
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  color: #1a1918;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hd-modal__input::placeholder,
.hd-modal__textarea::placeholder {
  color: #a09d97;
  font-weight: 400;
}

.hd-modal__input:focus,
.hd-modal__textarea:focus {
  background-color: #ffffff;
  border-color: var(--color-accent); /* #AD622F */
  box-shadow: 0 0 0 3px rgba(173, 98, 47, 0.18);
}

.hd-modal__field.has-error .hd-modal__input,
.hd-modal__field.has-error .hd-modal__textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  background-color: #fffbfa;
}

.hd-modal__error-msg {
  font-family: var(--font-family-sans);
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
  letter-spacing: 0.02em;
}

.hd-modal__field.has-error .hd-modal__error-msg {
  display: block;
}

.hd-modal__textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

/* Actions & Submit Button - Unterro Brand Accent */
.hd-modal__actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.hd-modal__submit-btn {
  background-color: var(--color-accent); /* Copper accent #AD622F */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(173, 98, 47, 0.28);
}

.hd-modal__submit-btn span {
  font-family: var(--font-family-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hd-modal__submit-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-modal__submit-btn:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hd-modal__submit-btn:hover .hd-modal__submit-arrow {
  transform: translate(3px, -3px);
}

.hd-modal__submit-btn:active {
  transform: translateY(0);
}

/* Success View */
.hd-modal__success {
  text-align: center;
  padding: 30px 10px 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.hd-modal__success.is-visible {
  display: flex !important;
}

.hd-modal__success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f6ece3;
  border: 1.5px solid rgba(173, 98, 47, 0.28);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.hd-modal__success-title {
  font-family: var(--font-family-sans);
  font-size: 26px;
  font-weight: 700;
  color: #100f0e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 auto 14px auto;
  text-align: center;
}

.hd-modal__success-desc {
  font-family: var(--font-family-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: #5a544b;
  max-width: 460px;
  margin: 0 auto 32px auto;
  text-align: center;
}

.hd-modal__btn-done {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 48px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hd-modal__btn-done span {
  font-family: var(--font-family-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hd-modal__btn-done:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES FOR MODAL
   ========================================================================== */

@media (max-width: 640px) {
  .hd-modal {
    padding: 12px;
  }

  .hd-modal__dialog {
    padding: 28px 18px;
    border-radius: 8px;
  }

  .hd-modal__close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }

  .hd-modal__eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .hd-modal__title {
    font-size: 20px;
  }

  .hd-modal__header {
    margin-bottom: 20px;
    padding-right: 32px;
  }

  .hd-modal__grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hd-modal__form {
    gap: 14px;
  }

  .hd-modal__submit-btn {
    width: 100%;
    padding: 13px 20px;
  }
}

@media (min-width: 1440px) {
  .hd-modal__dialog {
    max-width: 720px;
    padding: 48px 52px;
  }

  .hd-modal__title {
    font-size: 26px;
  }

  .hd-modal__subtitle {
    font-size: 14.5px;
  }

  .hd-modal__label {
    font-size: 11.5px;
  }

  .hd-modal__input,
  .hd-modal__textarea {
    font-size: 14.5px;
    padding: 14px 17px;
  }

  .hd-modal__submit-btn {
    padding: 16px 40px;
  }

  .hd-modal__submit-btn span {
    font-size: 12px;
  }
}

@media (min-width: 1920px) {
  .hd-modal__dialog {
    max-width: 800px;
    padding: 54px 58px;
  }

  .hd-modal__title {
    font-size: 28px;
  }

  .hd-modal__subtitle {
    font-size: 15.5px;
  }

  .hd-modal__label {
    font-size: 12px;
  }

  .hd-modal__input,
  .hd-modal__textarea {
    font-size: 15.5px;
    padding: 15px 19px;
  }

  .hd-modal__submit-btn {
    padding: 18px 46px;
  }

  .hd-modal__submit-btn span {
    font-size: 13px;
  }
}
