/*
Theme Name: Qurvey Theme
Theme URI: https://qurvey.example
Author: Your Name
Author URI: https://your-site.example
Description: Custom theme for Qurvey website
Version: 1.0
Text Domain: qurvey
*/

/* ========== Стили из index.html ========== */


/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ukrainian-blue: #0057b7;
  --ukrainian-yellow: #FFD700;
  /* Standard gold, can be adjusted */
  --white: #ffffff;
  --header-footer-bg-rgba: rgba(0, 87, 183, 0.65);
  /* Blue with 65% opacity */
  --footer-text-color: white;
  --footer-link-color: white;
  --footer-link-hover-color: rgba(255, 255, 255, 0.8);
  --cta-button-bg-rgba: rgba(0, 87, 183, 0.65);
  /* CTA button background 65% */
  --cta-button-hover-bg-rgba: rgba(0, 74, 159, 0.75);
  /* Darker blue, slightly more opaque */
  --mobile-menu-bg-rgba: rgba(0, 87, 183, 0.65);
  /* Mobile menu background 65% */
}

body {
  background-color: #f5f5f5;
  padding-top: 60px;
  /* Adjusted from 70px */
  font-family: 'Montserrat', sans-serif;
  display: flex;
  /* Added for footer */
  flex-direction: column;
  /* Added for footer */
  min-height: 100vh;
  /* Added for footer */
}

/* Fixed header */
header {
  background-color: var(--header-footer-bg-rgba);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 60px;
  /* Adjusted from 70px */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
}

.logo-square {
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--ukrainian-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: 'Orbitron', sans-serif;
}

a.logo {
  text-decoration: none;
  /* Remove underline from logo link */
}

/* --- Desktop Navigation --- */
.nav-container {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.main-nav li {
  margin-right: 25px;
}

.main-nav li:last-child {
  margin-right: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  padding: 5px 0;
}

.main-nav a:hover {
  opacity: 0.8;
}

/* --- Mobile Menu Button (Burger) --- */
#mobileMenuToggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  margin-left: 15px;
}

/* --- Language Toggle (In Header) --- */
.lang-toggle {
  color: var(--white) !important;
  cursor: pointer;
  position: relative;
  margin-left: 20px;
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background-color 0.2s;
  font-size: 20px;
  /* Adjust icon size if needed */
}

.lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-toggle i {
  /* Target the Font Awesome icon specifically */
  line-height: 1;
  /* Prevent extra spacing */
}

/* Language dropdown menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  width: 160px;
  display: none;
  overflow: hidden;
  z-index: 101;
}

.lang-menu.active {
  display: block;
}

.lang-option {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  color: #333;
  font-size: 14px;
}

.lang-option:hover {
  background-color: #f5f5f5;
}

.lang-option.active {
  font-weight: 600;
  color: var(--ukrainian-blue);
}

.lang-flag {
  margin-right: 10px;
  font-size: 16px;
}

.lang-option .tick-mark {
  display: none;
  margin-left: auto;
  color: var(--ukrainian-blue);
  font-weight: bold;
  font-size: 16px;
}

.lang-option.active .tick-mark {
  display: inline;
}

/* --- Separator Line --- */
.separator-line {
  height: 15px;
  /* UPDATED: 5 lines * 3px */
  width: 100%;
  background: linear-gradient(to bottom,
      var(--white) 0%, var(--white) 20%,
      /* 0-3px White */
      var(--ukrainian-blue) 20%, var(--ukrainian-blue) 40%,
      /* 3-6px Blue */
      var(--white) 40%, var(--white) 60%,
      /* 6-9px White */
      var(--ukrainian-yellow) 60%, var(--ukrainian-yellow) 80%,
      /* 9-12px Yellow */
      var(--white) 80%, var(--white) 100%
      /* 12-15px White */
    );
  /* Positioned relative to the flow */
}

/* Main content */
.main-content {
  padding: 40px 0 60px 0;
  /* Vertical padding */
  background-color: var(--white);
  /* White background */
  flex: 1 0 auto;
  /* Added for footer */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Index specific styles */
.index-logo {
  max-width: 300px;
  height: auto;
}

/* Control logo size */
.index-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.index-card p {
  color: #555;
  font-size: 16px;
  /* Slightly larger text */
  line-height: 1.53;
  /* Reduced from 1.7 */
  margin-bottom: 1rem;
  /* Consistent paragraph spacing */
}

.index-card p:last-child {
  margin-bottom: 0;
}

/* Waitlist Form Styles (Basic) */
.waitlist-form .input-group {
  margin-bottom: 0 !important;
  /* Remove default margin */
  display: flex;
  /* Enable flexbox for width control */
  justify-content: center;
  /* Center items within the group if needed */
}

.waitlist-form .form-control {
  flex: 2 1 auto;
  /* Make input roughly twice as wide as button */
  border-radius: 8px 0 0 8px;
  /* Rounded left corners */
  border: 1px solid #ccc;
  padding: 12px 15px;
  font-size: 15px;
}

.waitlist-form .btn-primary {
  background-color: var(--ukrainian-blue);
  border-color: var(--ukrainian-blue);
  color: white;
  flex: 1 1 auto;
  /* Allow button to take remaining space */
  border-radius: 0 8px 8px 0;
  /* Rounded right corners */
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s;
}

.waitlist-form .btn-primary:hover {
  background-color: #004494;
  /* Darker blue */
  border-color: #004494;
}

/* Popup Message Styles */
#formMessage {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
  /* Hidden by default */
  transition: opacity 0.3s ease-out;
}

#formMessage.success {
  background-color: #d1e7dd;
  /* Light green */
  color: #0f5132;
  /* Dark green */
  border: 1px solid #badbcc;
}

#formMessage.error {
  background-color: #f8d7da;
  /* Light red */
  color: #842029;
  /* Dark red */
  border: 1px solid #f5c2c7;
}


/* Footer */
footer {
  background-color: var(--header-footer-bg-rgba);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--footer-text-color);
  padding: 0;
  /* Remove padding, height will control size */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  /* Added for footer */
  height: 60px;
  /* Set exact height */
  display: flex;
  /* Enable flex for vertical centering */
  align-items: center;
  /* Vertically center content */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  /* Ensure container takes full width */
}

.footer-info {
  display: flex;
  flex-direction: row;
  /* Changed from column */
  align-items: center;
  /* Align items vertically */
  gap: 15px;
  /* Add gap between logo and text */
}

.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--footer-text-color);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0;
  /* Removed margin-bottom */
}

footer p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--footer-link-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--footer-link-hover-color);
  text-decoration: underline;
}

/* ===== Pricing Page Styles ===== */

.pricing-header h1 {
  font-family: 'Orbitron', sans-serif;
  color: var(--ukrainian-blue);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.pricing-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px 25px;
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 280px;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--ukrainian-blue);
  margin-bottom: 25px;
}

.plan-price .currency {
  font-size: 14px;
  vertical-align: top;
  margin-right: 2px;
}

.plan-price .period {
  font-size: 14px;
  color: #777;
  font-weight: 400;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
}

.feature-list li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid #f1f1f1;
}

.feature-name {
  color: #555;
}

.feature-value {
  color: var(--ukrainian-blue);
  font-weight: 600;
}

.cta-button {
  display: inline-block;
  background-color: var(--cta-button-bg-rgba);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--cta-button-hover-bg-rgba);
}

/* Center note under grid */
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
    /* Adjusted from 70px */
  }

  /* -- Header Mobile -- */
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    /* Adjusted from 70px */
    left: 0;
    right: 0;
    background-color: var(--mobile-menu-bg-rgba);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
  }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-nav li {
    margin-right: 0;
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: white;
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  #mobileMenuToggle {
    display: block;
  }

  .lang-toggle {
    margin-left: auto;
    margin-right: 10px;
  }

  /* -- Content Mobile -- */
  .main-content {
    padding: 30px 0 40px 0;
  }

  .index-logo {
    max-width: 200px;
  }

  .index-card p {
    font-size: 15px;
  }

  .waitlist-form .input-group {
    flex-direction: column;
    gap: 10px;
  }

  .waitlist-form .form-control,
  .waitlist-form .btn-primary {
    border-radius: 8px !important;
    width: 100%;
  }


  /* -- Footer Mobile -- */
  footer {
    height: auto;
    /* Override fixed height */
    padding: 30px 0;
    /* Restore padding */
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .footer-info {
    flex-direction: column;
    /* Stack logo and text */
    align-items: center;
    gap: 8px;
    /* Adjust gap for vertical stacking */
  }

  .footer-logo {
    margin-bottom: 8px;
    /* Add margin back below logo */
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-links {
    gap: 12px;
  }

  .lang-toggle {
    font-size: 18px;
    width: 34px;
    height: 34px;
    padding: 6px;
  }
}

/* Смещение фиксированного хедера под админ-бар WP */
body.admin-bar header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* Компенсируем отступ контента под увеличенный top */
body.admin-bar {
  padding-top: calc(60px + 32px);
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(60px + 46px);
  }
}

/* ===== Contact Page Styles ===== */

.contact-header h1 {
  font-family: 'Orbitron', sans-serif;
  color: var(--ukrainian-blue);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

/* ===== Fix contact page centering ===== */
.contact-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}


.contact-section p {
  margin-bottom: 10px;
}

.contact-section a {
  color: var(--ukrainian-blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* ===== Absolute Center Fix for Contact Page ===== */
.page-id-134 .contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-id-134 .contact-header {
  margin-top: 40px;
}

.page-id-134 .contact-section p {
  width: 100%;
  text-align: center;
}

/* ===== Final Fix for Contacts Centering ===== */
.page-id-134 .main-content .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-id-134 .contact-section {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

/* === PRIVACY PAGE (exact Qurvey style) === */
.privacy-policy-container {
  margin: 80px auto;
  max-width: 900px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.privacy-policy-container .page-header {
  text-align: center;
  margin-bottom: 20px;
}

.privacy-policy-container .page-header h1 {
  font-family: 'Orbitron', sans-serif;
  color: #0057b7;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-policy-container .page-content h2 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.privacy-policy-container .page-content p {
  color: #555;
  font-size: 14px;
  line-height: 1.44;
  margin-bottom: 1rem;
  text-align: left;
}

/* === FINAL: Qurvey Privacy Policy — pixel perfect === */
.page-id-159 .privacy-policy-container {
  margin: 80px auto;
  max-width: 900px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
  padding: 45px 55px;
}

/* Синій заголовок по центру */
.page-id-159 .privacy-policy-container h1 {
  color: #0057b7;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 30px;
  letter-spacing: 0.3px;
}

/* Підзаголовки */
.page-id-159 .privacy-policy-container h2 {
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 17px;
  margin-top: 25px;
  margin-bottom: 8px;
}

/* Основний текст */
.page-id-159 .privacy-policy-container p {
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Внутрішній card-блок */
.page-id-159 .index-card {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 25px 35px;
  background-color: #fff;
}

/* --- FIX for missing Font Awesome icons (language globe) --- */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

.fa,
.fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  color: white !important;
}

.fa-globe:before {
  content: "\f0ac";
}

/* === FEATURES (page-features.php) — FINAL FIX (1:1 with qurvey.app) === */
/* Працює для UA (122) і EN (120) */

/* Заголовок */
.page-id-120 .terms-header h1,
.page-id-122 .terms-header h1 {
  font-family: "Orbitron", sans-serif !important;
  color: #0057b7 !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  margin: 0 0 25px 0 !important;
}

/* Центруємо блок */
.page-id-120 .row.justify-content-center,
.page-id-122 .row.justify-content-center {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 80px;
}

/* Колонка з ширшою зоною */
.page-id-120 .col-md-8,
.page-id-122 .col-md-8 {
  max-width: 1250px;
  /* 🔹 зробили трохи ширше */
  width: 100%;
  margin: 0 auto;
}


/* Основна біла картка */
.page-id-120 .index-card,
.page-id-122 .index-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px 40px;
  /* 🔹 зменшили падінги */
  margin: 0 auto;
  width: 100%;
  max-width: 1050px;
  /* 🔹 як у колонці */
}

/* Вміст тексту */
.page-id-120 .terms-content p,
.page-id-120 .terms-content li,
.page-id-122 .terms-content p,
.page-id-122 .terms-content li {
  font-family: "Montserrat", sans-serif;
  color: #555;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-id-120 .terms-content ul,
.page-id-122 .terms-content ul {
  padding-left: 25px;
  margin-bottom: 25px;
}

/* Підзаголовки */
.page-id-120 .terms-content h2,
.page-id-122 .terms-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 20px 0 8px 0;
  text-align: left;
}

/* Жирний текст */
.page-id-120 .terms-content b,
.page-id-120 .terms-content strong,
.page-id-122 .terms-content b,
.page-id-122 .terms-content strong {
  color: #000;
  font-weight: 600;
}

/* Адаптація */
@media (max-width: 992px) {

  .page-id-120 .col-md-8,
  .page-id-122 .col-md-8 {
    max-width: 90%;
  }

  .page-id-120 .index-card,
  .page-id-122 .index-card {
    padding: 25px 20px;
  }

  .page-id-120 .terms-header h1,
  .page-id-122 .terms-header h1 {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
}

/* === PRIVACY POLICY — 1:1 COPY OF QURVEY.APP === */

/* === PERFECT COPY OF QURVEY.APP PRIVACY PAGE === */

.page-id-160 main.main-content,
.page-id-179 main.main-content {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 80px 0;
}

/* Контейнер */
.page-id-160 .container,
.page-id-179 .container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Біла картка (основний блок) */
.page-id-160 .index-card,
.page-id-179 .index-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  padding: 40px 50px 50px 50px;
  width: 100%;
}

/* Заголовок — всередині білого блоку */
.page-id-160 .page-header,
.page-id-179 .page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-id-160 .page-header h1,
.page-id-179 .page-header h1 {
  color: #0057b7;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.3px;
}

/* Вміст сторінки */
.page-id-160 .page-content,
.page-id-179 .page-content {
  text-align: left;
}

.page-id-160 .page-content h2,
.page-id-179 .page-content h2 {
  color: #222;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin-top: 25px;
  margin-bottom: 8px;
}

.page-id-160 .page-content p,
.page-id-179 .page-content p {
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Центрування */
.page-id-160 .row.justify-content-center,
.page-id-179 .row.justify-content-center {
  display: flex;
  justify-content: center;
}

/* Колонка */
.page-id-160 .col-md-8,
.page-id-179 .col-md-8 {
  max-width: 1050px;
  width: 100%;
}

/* Адаптив */
@media (max-width: 992px) {

  .page-id-160 .index-card,
  .page-id-179 .index-card {
    padding: 30px 25px;
  }

  .page-id-160 .page-header h1,
  .page-id-179 .page-header h1 {
    font-size: 24px;
  }
}

/* === Terms of Service pages (EN #165, UA #186) — 1:1 copy from qurvey.app === */

.page-id-165 main.main-content,
.page-id-186 main.main-content {
  background: #fff;
  padding: 80px 0 90px 0;
}

.page-id-165 .terms-header,
.page-id-186 .terms-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-id-165 .terms-header h1,
.page-id-186 .terms-header h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  color: #0057b7;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0;
}

.page-id-165 .row.justify-content-center,
.page-id-186 .row.justify-content-center {
  display: flex;
  justify-content: center;
}

.page-id-165 .col-md-8,
.page-id-186 .col-md-8 {
  max-width: 1050px;
  width: 100%;
}

.page-id-165 .index-card,
.page-id-186 .index-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  padding: 45px 55px 55px 55px;
}

.page-id-165 .terms-content h2,
.page-id-186 .terms-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-top: 30px;
  margin-bottom: 10px;
  text-align: left;
}

.page-id-165 .terms-content p,
.page-id-186 .terms-content p {
  font-family: "Montserrat", sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 14px;
  text-align: left;
}

/* Кнопка */
.page-id-165 .offer-button-wrapper,
.page-id-186 .offer-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-id-165 .offer-button,
.page-id-186 .offer-button {
  display: inline-block;
  background-color: #0057b7;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 35px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease-in-out;
}

.page-id-165 .offer-button:hover,
.page-id-186 .offer-button:hover {
  background-color: #00449c;
  transform: translateY(-1px);
}

/* Адаптив */
@media (max-width: 992px) {

  .page-id-165 .index-card,
  .page-id-186 .index-card {
    padding: 30px 25px;
  }

  .page-id-165 .terms-header h1,
  .page-id-186 .terms-header h1 {
    font-size: 24px;
  }
}


.user-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-links a {
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: white;
}

.login-btn {
  background-color: #0d6efd;
  /* синий акцент Qurvey */
}

.login-btn:hover {
  background-color: #0b5ed7;
}

.register-btn {
  background-color: #198754;
  /* зелёная регистрация */
}

.register-btn:hover {
  background-color: #157347;
}

.cabinet-btn {
  background-color: #0d6efd;
}

.cabinet-btn:hover {
  background-color: #0b5ed7;
}

.logout-btn {
  background-color: #dc3545;
}

.logout-btn:hover {
  background-color: #bb2d3b;
}

/* =======================================================
   QURVEY POPUP AUTH (Sign in / Sign up / Reset)
   ======================================================= */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 40px 35px 35px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.3s ease;
  position: relative;
  text-align: center;
  border-top: 4px solid #0057b7;
}

.modal-content h2 {
  font-family: "Orbitron", sans-serif;
  color: #0057b7;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  color: #777;
  cursor: pointer;
  transition: 0.25s;
}

.modal-close:hover {
  color: #000;
}

/* ===== FORM INPUTS ===== */
.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  transition: 0.25s;
}

.modal-content input:focus {
  outline: none;
  border-color: #0057b7;
  box-shadow: 0 0 4px rgba(0, 87, 183, 0.4);
}

/* ===== SUBMIT BUTTON ===== */
.modal-content input[type="submit"],
.modal-content button[type="submit"] {
  width: 100%;
  background: linear-gradient(90deg, #0057b7, #00449c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content input[type="submit"]:hover {
  background: linear-gradient(90deg, #00449c, #003a8a);
  transform: translateY(-1px);
}

/* ===== LINKS ===== */
.modal-content a {
  color: #0057b7;
  text-decoration: none;
  font-size: 14px;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === REMOVE PLUGIN LINKS (Sign in / Sign up / Reset) === */
#authModal .modal-content a[href*="register"],
#authModal .modal-content a[href*="signup"],
#authModal .modal-content a[href*="lostpassword"],
#authModal .modal-content a[href*="reset"],
#authModal .modal-content a[href*="login"],
#authModal .modal-content a[href*="signin"],
#authModal .modal-content span {
  display: none !important;
}

#authModal .wpuf-login-links {
  display: none !important;
}

/* === CLEAN UP UL / LI === */
#authModal ul,
#authModal li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === PASSWORD FIELD WRAP === */
#authModal .pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#authModal .pw-wrap>input[type="password"],
#authModal .pw-wrap>input[type="text"] {
  width: 100%;
  padding-right: 42px !important;
  height: 42px;
  font-size: 15px;
  line-height: 1.4;
}

/* === EYE BUTTON === */
#authModal .pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.1s ease-in-out;
}

#authModal .pw-toggle:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#authModal .pw-toggle svg {
  width: 20px;
  height: 20px;
  color: #444;
  pointer-events: none;
}

#authModal .pw-toggle .eye-open {
  display: none;
}

#authModal .pw-toggle[aria-pressed="true"] .eye-closed {
  display: none;
}

#authModal .pw-toggle[aria-pressed="true"] .eye-open {
  display: inline;
}

/* === DISABLE DEFAULT WPUF EYE === */
#authModal .wpuf-pass-toggle,
#authModal .dashicons-visibility,
#authModal .dashicons-hidden {
  display: none !important;
  pointer-events: none !important;
}

/* === REMEMBER ME (CENTERED) === */
#authModal li.rememberme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  width: fit-content;
  margin: 10px auto 0;
}

#authModal li.rememberme input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0057b7;
  margin: 0;
}

#authModal li.rememberme label {
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  color: #333;
  cursor: pointer;
  line-height: 1;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  #authModal .pw-toggle {
    right: 8px;
  }

  .modal-content {
    padding: 30px 25px;
  }
}