/* ==========================================================================
   site-extras.css — footer, cookie consent, contact form popup
   ========================================================================== */

/* ==========================================================================
   FOOTER
   ========================================================================== */
.x3-footer {
  background: #0d0f1a;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 60px 40px 30px;
  color: #b9bcd6;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.x3-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(48px, 8vw, 140px);
}
.x3-footer-inner .x3-footer-brand { margin-bottom: 0; flex: 0 0 auto; }
.x3-footer-col--info {
  max-width: 400px;
  text-align: left;
  padding-left: 24px;
  border-left: 2px solid rgba(87, 94, 254, .35);
}
.x3-footer-col--info > p:first-child { color: #fff; }
.x3-footer h4 {
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}
.x3-footer h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: #575EFE;
}
.x3-footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 24px;
}
.x3-footer-brand span { color: #00D7FF; }
.x3-footer-legal { margin-top: 20px; }
.x3-footer-legal p {
  margin: 4px 0;
  font-size: 13px;
  color: #8a8db0;
}
.x3-footer-legal strong {
  color: #b9bcd6;
  font-weight: 600;
}
.x3-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.x3-footer li { margin-bottom: 10px; }
.x3-footer a {
  color: #b9bcd6;
  text-decoration: none;
  transition: color .2s;
}
.x3-footer a:hover { color: #fff; }
.x3-footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5e6180;
}
.x3-footer-bottom a {
  color: #00D7FF;
  font-weight: 600;
  transition: opacity .2s;
}
.x3-footer-bottom a:hover { opacity: .8; color: #00D7FF; }
@media (max-width: 767px) {
  .x3-footer { padding: 40px 20px 24px; }
  .x3-footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .x3-footer-inner .x3-footer-brand { margin-bottom: 0; }
  .x3-footer-col--info {
    max-width: none;
    text-align: left;
    padding-left: 16px;
    border-left: 2px solid rgba(87, 94, 254, .35);
  }
  .x3-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   CONTACT US SECTION (before footer)
   ========================================================================== */
.x3-contact-section {
  text-align: center;
  padding: 60px 40px;
  background: #10122a;
}
.x3-contact-section .x3-cta-btn {
  display: inline-block;
  padding: 18px 56px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #575EFE 0%, #7B5EFE 100%);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  letter-spacing: .5px;
}
.x3-contact-section .x3-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(87,94,254,.4);
}

/* ==========================================================================
   CONTACT FORM POPUP
   ========================================================================== */
.x3-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(4px); /* Safari needs the prefix or the blur is silently dropped */
  backdrop-filter: blur(4px);
}
.x3-popup-overlay.active { display: flex; }
.x3-popup {
  background: #181a2e;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 520px;
  position: relative;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
}
.x3-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #8a8db0;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.x3-popup-close:hover { color: #fff; }
.x3-popup h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.x3-popup p {
  color: #b9bcd6;
  margin-bottom: 24px;
  font-size: 15px;
}
.x3-popup label {
  display: block;
  font-size: 13px;
  color: #8a8db0;
  margin-bottom: 6px;
  font-weight: 500;
}
.x3-popup input,
.x3-popup textarea {
  /* iOS Safari renders text inputs/textareas with native chrome (its own
     background, border-radius, inset shadow) that visually fights a custom
     dark theme unless appearance is explicitly reset. */
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 16px;
  background: #0d0f1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
}
.x3-popup input:focus,
.x3-popup textarea:focus {
  border-color: #575EFE;
}
.x3-popup textarea { resize: vertical; min-height: 100px; }
.x3-popup-submit {
  width: 100%;
  padding: 14px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #575EFE 0%, #7B5EFE 100%);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.x3-popup-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(87,94,254,.35);
}
.x3-popup .x3-form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.x3-popup .x3-form-success h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  color: #575EFE;
  margin-bottom: 12px;
}

/* ==========================================================================
   COOKIE CONSENT (GDPR — EU full)
   ========================================================================== */
.x3-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #181a2e;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 40px;
  font-family: 'Public Sans', sans-serif;
  color: #b9bcd6;
  font-size: 14px;
  box-shadow: 0 -4px 30px rgba(0,0,0,.4);
}
.x3-cookie-banner.active { display: block; }
.x3-cookie-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.x3-cookie-inner h4 {
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.x3-cookie-inner p {
  margin-bottom: 12px;
  line-height: 1.5;
}
.x3-cookie-inner a {
  color: #575EFE;
  text-decoration: underline;
}
.x3-cookie-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.x3-cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
}
.x3-cookie-toggle input[type="checkbox"] {
  accent-color: #575EFE;
  width: 16px;
  height: 16px;
}
.x3-cookie-toggle input:disabled { opacity: .5; }
.x3-cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.x3-cookie-btn {
  padding: 10px 24px;
  border-radius: 60px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.x3-cookie-btn:hover { transform: translateY(-1px); }
.x3-cookie-btn--accept {
  background: linear-gradient(135deg, #575EFE 0%, #7B5EFE 100%);
  color: #fff;
}
.x3-cookie-btn--settings {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.x3-cookie-btn--reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: #8a8db0;
}
.x3-cookie-toggle {
  flex-direction: column;
  align-items: flex-start;
}
.x3-cookie-desc {
  display: block;
  font-size: 12px;
  color: #8a8db0;
  margin-top: 2px;
  padding-left: 24px;
  line-height: 1.4;
}
/* Floating reopen button */
.x3-cookie-reopen {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #181a2e;
  border: 1px solid rgba(255,255,255,.1);
  font-size: 22px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s;
  padding: 0;
}
.x3-cookie-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
@media (max-width: 767px) {
  .x3-cookie-banner { padding: 16px 20px; }
  .x3-cookie-btns { flex-direction: column; }
  .x3-cookie-btn { width: 100%; text-align: center; }
}
