/* Mirage DayZ - Contact page styles
   This file only styles the contact content.
   Global look (background, nav, footer glow/animation) is inherited from index.css.
*/

/*
  Contact page layout fixes
  ------------------------
  Index.php uses an absolute-position nav because the hero section is tall.
  On shorter pages (like Contact) that can cause a "black gap" feeling at the top
  and makes the menu feel different when you scroll.
  Here we make Contact behave like Store (fixed nav + full-page background).
*/

/* Use the same background treatment as the other pages */
body{
  background: url("/images/contact.png") center center / cover no-repeat fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, Arial, sans-serif;
  color: #fff;
}

/* Keep particles covering the screen instead of only the document height */
#particles-js{
  position: fixed;
  inset: 0;
  height: 100vh;
}

/* Make nav behave consistently (same size, centered menu, no scroll-away) */
nav{
  position: fixed;
}

/* We now rely on body background, so don't re-apply the hero background wrapper */
.main-bg{
  background-image: none;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
}

.contact-bg{
  /* Space for fixed nav so content never sits under it */
  padding-top: 110px;
  padding-bottom: 70px;
  min-height: calc(100vh - 70px);
  position: relative;
  z-index: 2;
}

.contact-main{
  /* Slightly wider so the form never feels cramped */
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-container{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px){
  .contact-container{ grid-template-columns: 1fr; }
}

/* Card shells */
.contact-info,
.map-section{
  background-color: rgba(17, 17, 17, 0.85);
  border: 1px solid #333;
  border-radius: 22px;
  padding: 26px 24px;
  min-width: 0; /* prevent grid overflow on narrow screens */
  box-shadow: 0 0 30px rgba(0,255,0,0.10);
}

/* Headings */
.contact-info h2,
.map-section h2{
  margin: 0 0 12px;
  color: #e5e7eb;
  text-shadow: 0 0 10px #0f0;
  letter-spacing: 1px;
  font-size: 22px;
}

/* Remove glow specifically for the main contact title */
.contact-info h2{
  text-shadow: none;
}

/* Disclaimer styling */
.contact-disclaimer{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cfcfcf;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-disclaimer strong{
  color: #ffffff;
  letter-spacing: 0.5px;
}

.contact-info p{
  color: #bdbdbd;
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.6;
}

.contact-info a{
  color: #e5e7eb;
  text-decoration: none;
}
.contact-info a:hover{
  text-decoration: underline;
}

.response-note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,255,0,0.22);
  background: rgba(0,255,0,0.08);
  color: #cfcfcf;
}

/* Form card */
.form-card{
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
  padding: 18px;
}

.form-card h3{
  margin: 0;
font-size: 18px;
  color: #e8e8e8;
  letter-spacing: .5px;
}


/* Form header: title on the left, category on the right */
.form-card-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.form-card-header h3{
  margin: 0;
}

.category-field{
  min-width: 220px;
  max-width: 320px;
}

.category-field label{
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 6px;
}


.alert{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.35);
}
.alert i{ margin-top: 2px; }
.alert.success{
  border-color: rgba(0,255,0,0.25);
  background: rgba(0,255,0,0.10);
}
.alert.error{
  border-color: rgba(255,0,0,0.25);
  background: rgba(255,0,0,0.08);
}
.alert ul{
  margin: 8px 0 0 18px;
  padding: 0;
  color: #d6d6d6;
}

/* Fields */
.field{ margin-bottom: 14px; }
.field label{
  display: block;
  margin-bottom: 8px;
  color: #cfcfcf;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* prevent overflow caused by padding */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 12px 12px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea{ resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus{
  border-color: rgba(0,255,0,0.55);
  box-shadow: 0 0 0 3px rgba(0,255,0,0.10);
}

/* Actions */
.actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}


.privacy-note{
  margin: 14px 0 0;
  color: #9e9e9e;
  font-size: 12px;
  line-height: 1.5;
}

/* Honeypot */
.hp-field{
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px !important;
  width: 1px !important;
  opacity: 0 !important;
}

/* Map section */
.map-section p{
  color: #bdbdbd;
  margin: 10px 0;
}
.map-section img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 25px rgba(0,0,0,0.55);
  display: block;
  margin: 12px 0;
}

.location-note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,255,0,0.18);
  background: rgba(0,255,0,0.06);
  color: #cfcfcf;
}

/* Mobile: keep footer logo from overlapping on very small widths */
@media (max-width: 560px){
  footer .footer-content{
    flex-direction: column;
    gap: 10px;
  }
  footer .footer-server-logo{
    position: static;
    width: 120px;
    margin: 0 auto 6px;
  }
}


/* =========================================================
   V7 Contact Form + HQ styling (restored/strengthened)
   - Only touches: .form-card (contact form card) and .map-section (HQ card)
   ========================================================= */

/* Neon animated border wrapper */
.form-card,
.map-section{
  position: relative;
  overflow: hidden;
}

/* Allow the textarea resize handle and any focus glow to remain visible */
.form-card{
  overflow: visible;
}

/* Animated border ring */
.form-card::before,
.map-section::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(from 180deg,
    rgba(0,255,0,0.05),
    rgba(0,255,0,0.55),
    rgba(255,255,255,0.10),
    rgba(0,255,0,0.55),
    rgba(0,255,0,0.05)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: none;
  pointer-events:none;
}

/* Soft glow */
.form-card::after,
.map-section::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 20% 10%, rgba(0,255,0,0.20), transparent 55%);
  filter: blur(18px);
  opacity: 0.6;
  pointer-events:none;
}

/* Keep content above overlays */
.form-card > *,
.map-section > *{
  position: relative;
  z-index: 1;
}

/* Make the form card feel "premium" like index/store panels */
.form-card{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,255,0,0.18);
  box-shadow: 0 0 34px rgba(0,255,0,0.18);
  backdrop-filter: blur(10px);
}

.form-card h3{
  margin-top: 0;
  color: #eaffea;
  text-shadow: 0 0 10px rgba(0,255,0,0.55);
  letter-spacing: 1px;
}

/* Inputs: stronger glow + consistent spacing */
.field input:focus,
.field textarea:focus{
  border-color: rgba(0,255,0,0.65);
  box-shadow: 0 0 0 3px rgba(0,255,0,0.12), 0 0 22px rgba(0,255,0,0.22);
}

/* HQ card polish */
.map-section img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(0,255,0,0.20);
  box-shadow: 0 0 24px rgba(0,255,0,0.18);
  margin: 12px 0 10px;
}

/* Animation */
@keyframes neonSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .form-card::before,
  .map-section::before{
    animation: none !important;
  }
}


/* Cyan highlight for response note (as requested) */
.response-note{
  color: #7fe7ff;
  border-color: rgba(127,231,255,0.35);
  background: rgba(127,231,255,0.10);
  box-shadow: 0 0 18px rgba(127,231,255,0.22);
  text-shadow: 0 0 10px rgba(127,231,255,0.45);
}


/* HQ image hover expand */
.map-section img{
  transition: transform .18s ease, box-shadow .18s ease;
  transform-origin: center;
}
.map-section img:hover{
  transform: scale(1.03);
  box-shadow: 0 0 34px rgba(127,231,255,0.18), 0 0 24px rgba(0,255,0,0.18);
}


/* Primary button (match index.php donate button look) */
.btn{
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 15px 40px;
  background-color: #e5e7eb;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  transition: background-color 0.3s, transform 0.3s, box-shadow .2s ease;
}
.btn:hover{
  background-color: #0c0;
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(0,255,0,0.30);
}
.btn.loading{
  opacity: 0.9;
  cursor: progress;
}
.btn.sent,
.btn:disabled{
  background-color: #22c55e;
  color: #07110a;
  transform: none;
}


/* White / silver text overrides */
.contact-info,
.contact-info p,
.contact-info a,
.map-section h2,
.form-card h3{
  color: #e5e7eb;
  text-shadow: 0 0 6px rgba(255,255,255,0.25);
}

.contact-info a{
  color: #f1f5f9;
}

.contact-info a:hover{
  color: #ffffff;
}

/* Back to Top Button (same as index.php) */
#backToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: rgba(0, 255, 0, 0.3);
            border: 2px solid #0f0;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 28px;
            color: #0f0;
            box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            z-index: 999;
        }
        #backToTop:hover {
            background: rgba(0, 255, 0, 0.6);
            box-shadow: 0 0 25px rgba(0, 255, 0, 0.9);
            transform: scale(1.1);
        }
#backToTop.show {
            opacity: 1;
            visibility: visible;
        }


/* Discord link hover light-blue */
.contact-info a[href*="discord"]:hover{
  color: #7fe7ff;
  text-shadow: 0 0 10px rgba(127,231,255,0.55);
}


/* Headquarters right align */
.map-section{
  text-align: right;
}

/* Headquarters location info row */
.location-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-note{
  text-align: left;
  flex: 1;
}

.location-note span{
  opacity: 0.85;
  font-size: 0.95em;
}

.info-icon{
  font-size: 18px;
  color: #cbd5e1;
  cursor: default;
  padding: 6px 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}

.info-icon:hover{
  color: #7fe7ff;
  border-color: rgba(127,231,255,0.6);
  box-shadow: 0 0 12px rgba(127,231,255,0.35);
}


/* FIX: Force HQ location text left + icon right (side-by-side) */
.location-info{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  text-align: left !important;
}

.location-info .location-note{
  margin: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}

.location-info .info-icon{
  flex: 0 0 auto !important;
  align-self: center !important;
  margin-left: 14px !important;
}


/* Info icon as oval pill + hover chat bubble */
.location-info{
  position: relative;
}

.info-icon{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 46px !important;
  height: 28px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #e5e7eb !important;
  cursor: default !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.08) !important;
  position: relative !important;
}

/* Bubble */
.info-icon::after{
  content: "Hey live support coming soon...";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(0, -50%) translateY(-14px);
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(127,231,255,0.35);
  color: #e5e7eb;
  box-shadow: 0 0 18px rgba(127,231,255,0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 5;
}

/* Small tail */
.info-icon::before{
  content: "";
  position: absolute;
  right: 14px;
  top: -8px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(2, 6, 23, 0.92);
  border-left: 1px solid rgba(127,231,255,0.35);
  border-top: 1px solid rgba(127,231,255,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 5;
}

.info-icon:hover{
  color: #7fe7ff !important;
  border-color: rgba(127,231,255,0.65) !important;
  box-shadow: 0 0 14px rgba(127,231,255,0.28) !important;
}

.info-icon:hover::after{
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%) translateY(-22px);
}
.info-icon:hover::before{
  opacity: 1;
  visibility: visible;
}


/* Force consistent typing direction/alignment */
.field input,
.field textarea{
  direction: ltr;
  text-align: left;
}
