/* Contact & Support public pages — layout polish and mobile-first refinements */

/* ---- Shared page shell ---- */
.cs-page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  overflow: hidden;
}

.cs-page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 992px) {
  .cs-page-hero__grid--contact {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.cs-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary, #ff6600);
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.28);
  margin-bottom: 0.75rem;
}

.cs-page-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: #fff;
}

.cs-page-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 38rem;
}

.cs-page-hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 102, 0, 0.18);
}

.cs-page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Contact layout ---- */
.cs-contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 992px) {
  .cs-contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.cs-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .cs-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cs-info-card {
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1rem 1rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  min-height: 100%;
}

.cs-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 102, 0, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cs-info-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 102, 0, 0.15);
  color: var(--color-secondary, #ff6600);
  font-size: 1rem;
}

.cs-info-card__body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.cs-info-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cs-info-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.cs-info-card__text a {
  color: var(--color-secondary, #ff6600);
  text-decoration: none;
}

.cs-info-card__text a:hover {
  text-decoration: underline;
}

.cs-info-card__watermark {
  position: absolute;
  right: -0.25rem;
  bottom: -0.35rem;
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.12;
  object-fit: contain;
  pointer-events: none;
}

.cs-hours-panel {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-hours-panel__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: #fff;
  font-weight: 700;
}

.cs-hours-panel__head i {
  color: var(--color-secondary, #ff6600);
}

.cs-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.cs-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cs-hours-list__day {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.cs-hours-list__time {
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
}

/* Ensure contact column spans full grid width */
.contact-info-section-enhanced {
  width: 100%;
  min-width: 0;
}

/* Map widget — full-width responsive embed */
.cs-map-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-map-frame.contact-map-container-enhanced,
.contact-map-container-enhanced.cs-map-frame {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 0 56.25%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.cs-map-frame iframe,
.contact-map-container-enhanced iframe.contact-map-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
}

body.genpro-futuristic .cs-map-frame.contact-map-container-enhanced {
  border: 1px solid var(--fx-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--fx-radius-md, 16px);
  box-shadow: var(--fx-shadow-glass, 0 8px 28px rgba(0, 0, 0, 0.18));
}

body.genpro-futuristic .cs-map-frame iframe.contact-map-enhanced {
  filter: grayscale(0.2) contrast(1.05);
}

.cs-map-actions,
.cs-map-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-map-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: min(100%, 9.5rem);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cs-map-action:hover {
  background: rgba(255, 102, 0, 0.28);
  border-color: rgba(255, 102, 0, 0.7);
  color: #fff;
  transform: translateY(-1px);
}

.cs-map-action i {
  font-size: 0.85rem;
  color: var(--color-secondary, #ff6600);
}

button.cs-map-action {
  font-family: inherit;
}

/* Fullscreen map modal */
body.cs-map-modal-open {
  overflow: hidden;
}

.cs-map-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.cs-map-modal[hidden] {
  display: none !important;
}

.cs-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.cs-map-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(255, 102, 0, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.cs-map-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-map-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.cs-map-modal__close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cs-map-modal__close:hover {
  border-color: rgba(255, 102, 0, 0.6);
  color: var(--color-secondary, #ff6600);
}

.cs-map-modal__frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: min(56vh, 56.25%);
  flex-shrink: 0;
}

.cs-map-modal__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-map-modal__actions {
  padding: 0.85rem 1rem 1rem;
}

.cs-form-panel {
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.cs-form-panel__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary, #ff6600);
}

.cs-form-panel__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fff;
}

.cs-form-panel__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* ---- Support layout ---- */
.cs-support-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 992px) {
  .cs-support-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

.cs-support-side {
  display: grid;
  gap: 1.25rem;
}

.cs-faq-panel {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-faq-panel__title {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.cs-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-faq-item:last-child {
  border-bottom: 0;
}

.cs-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.75rem 0.85rem 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  position: relative;
}

.cs-faq-item summary::-webkit-details-marker {
  display: none;
}

.cs-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary, #ff6600);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.cs-faq-item[open] summary::after {
  content: '−';
}

.cs-faq-item__answer {
  margin: 0;
  padding: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .cs-info-grid {
    grid-template-columns: 1fr;
  }

  .cs-map-frame.contact-map-container-enhanced,
  .contact-map-container-enhanced.cs-map-frame {
    padding-bottom: 75%;
    border-radius: 14px;
  }

  .cs-map-action {
    flex: 1 1 100%;
    min-width: 0;
  }

  .cs-hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .cs-hours-list__time {
    text-align: left;
  }

  .cs-form-panel {
    padding: 1rem;
  }
}

/* Light-theme fallback (non-futuristic) */
body:not(.genpro-futuristic) .cs-info-card,
body:not(.genpro-futuristic) .cs-hours-panel,
body:not(.genpro-futuristic) .cs-form-panel,
body:not(.genpro-futuristic) .cs-faq-panel {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body:not(.genpro-futuristic) .cs-info-card__title,
body:not(.genpro-futuristic) .cs-hours-panel__head,
body:not(.genpro-futuristic) .cs-form-panel__title,
body:not(.genpro-futuristic) .cs-faq-panel__title,
body:not(.genpro-futuristic) .cs-faq-item summary {
  color: #111;
}

body:not(.genpro-futuristic) .cs-info-card__text,
body:not(.genpro-futuristic) .cs-form-panel__subtitle,
body:not(.genpro-futuristic) .cs-faq-item__answer,
body:not(.genpro-futuristic) .cs-hours-list__time {
  color: #555;
}

body:not(.genpro-futuristic) .cs-hours-list__day {
  color: #222;
}

/* Force override main.css fixed map heights (400px / 300px / 250px) */
.contact-page-enhanced .contact-map-container-enhanced.cs-map-frame {
  height: 0 !important;
  max-height: none !important;
}

.contact-page-enhanced .contact-map-container-enhanced .contact-map-enhanced {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}
