/* ============================================================
   services.php — page styles
   Moved out of the page on 14 Aug 2026. Values come from
   css/tokens.css: edit a token there and it changes here too.
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(145deg, #f9fcff 0%, #edf2f9 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.service-img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-icon {
  position: absolute;
  top: 16px;
  left: 20px;
  background: white;
  box-shadow: 0 12px 22px -10px #1434a4;
  border-radius: 60px;
  padding: 0.5rem 1.4rem 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #102a63;
  border: 1px solid #cddfff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.btn-glow {
  background: linear-gradient(95deg, #1434a4, #1f4bb5);
  box-shadow: 0 10px 18px -8px #102a63;
  transition: var(--gx-transition-fast);
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-glow:hover {
  background: linear-gradient(95deg, #102a63, #1434a4);
  box-shadow: 0 18px 25px -8px #0b1d47;
  transform: scale(1.02);
}

.section-title span {
  background: linear-gradient(130deg, #102a63, #2a4eb0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FEATURES-PAGE STYLE LAYOUT ===== */
.features-hero {
  background: linear-gradient(135deg, #0b1730 0%, #102a63 45%, #1f4bb5 100%);
  position: relative;
  overflow: hidden;
}
.features-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255,193,7,0.12), transparent 45%);
}
.hero-stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  transition: all 0.35s ease;
}
.hero-stat-box:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
}

/* Sidebar with background image */
.module-sidebar {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  padding: 1.8rem 1.5rem;
  background-image: linear-gradient(135deg, rgba(11,23,48,0.92) 0%, rgba(16,42,99,0.88) 50%, rgba(31,75,181,0.85) 100%),
                    url('https://images.unsplash.com/photo-1497032205916-ac775f0649ae?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px -20px rgba(16,42,99,0.4);
}

/* ===== MODULE TABS – Increased height & padding ===== */
.module-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.2rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #e6ecfb;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.module-tab:hover {
  background: rgba(255,255,255,0.14);
  color: var(--gx-white);
  border-color: rgba(255,255,255,0.25);
}

.module-tab.active {
  background: linear-gradient(95deg, #ffc107, #ffb300);
  color: #102a63;
  box-shadow: 0 8px 25px -8px rgba(255,193,7,0.5);
  border-color: transparent;
}

.module-tab .module-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--gx-white);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.module-tab.active .module-icon {
  background: rgba(16,42,99,0.15);
  color: #102a63;
}

.module-tab .block {
  font-weight: 700;
  font-size: 1.05rem;
}

.module-tab .text-xs {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ===== FEATURE DETAIL PANEL ===== */
.feature-panel {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 1.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.feature-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--gx-white);
  border: 1px solid var(--gx-surface-tint);
  transition: var(--gx-transition);
}
.feature-step:hover {
  border-color: #1434a4;
  box-shadow: 0 15px 30px -15px #1434a4;
  transform: translateY(-4px);
}

.feature-step-num {
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #1434a4, #1f4bb5);
  color: var(--gx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.fade-in-panel {
  animation: panelFade 0.4s ease;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #102a63 0%, #1434a4 50%, #1f4bb5 100%);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,193,7,0.18), transparent 45%);
}

/* ===== POPUP STYLES ===== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.popup-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gx-white);
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  border-radius: var(--gx-r);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  z-index: 10000;
  overflow: hidden;
  flex-direction: column;
}

.popup-header {
  background: #1434a4;
  color: var(--gx-white);
  padding: 18px 22px;
  border-radius: 12px 12px 0 0;
  position: relative;
  flex-shrink: 0;
}

.popup-header h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.popup-close {
  position: absolute;
  right: 18px;
  top: 12px;
  cursor: pointer;
  font-size: 26px;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gx-r-circle);
  background: rgba(255,255,255,0.2);
  transition: var(--gx-transition-fast);
}

.popup-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.popup-form {
  padding: 25px 25px 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.popup-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 14px;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--gx-r-sm);
  font-size: 14px;
  transition: var(--gx-transition-fast);
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
  outline: none;
  border-color: #1434a4;
  box-shadow: 0 0 0 3px rgba(20, 52, 164, 0.1);
}

.popup-submit-btn {
  width: 100%;
  padding: 14px;
  background: #1434a4;
  color: var(--gx-white);
  border: none;
  border-radius: var(--gx-r-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gx-transition-fast);
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-submit-btn:hover {
  background: #102a63;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 52, 164, 0.2);
}

.note-text {
  font-size: 12px;
  color: #666;
  margin-top: -12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Hide scrollbar but keep functionality */
.popup-form::-webkit-scrollbar {
  width: 5px;
}
.popup-form::-webkit-scrollbar-track {
  background: var(--gx-line-soft);
  border-radius: 10px;
}
.popup-form::-webkit-scrollbar-thumb {
  background: #1434a4;
  border-radius: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .module-tab {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    gap: 12px;
  }
  .module-tab .module-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .module-tab .block {
    font-size: 0.95rem;
  }
  .module-tab .text-xs {
    font-size: 0.7rem;
  }
  
  .popup-container {
    width: 95%;
    max-height: 95vh;
  }
  .popup-header {
    padding: 15px 18px;
  }
  .popup-header h3 {
    font-size: 20px;
  }
  .popup-form {
    padding: 18px 18px 15px;
  }
  .popup-form input,
  .popup-form select,
  .popup-form textarea {
    padding: 10px 12px;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .module-sidebar {
    padding: 1.2rem 1rem;
  }
  .module-tab {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .module-tab {
    padding: 1rem 1.3rem;
    font-size: 1rem;
  }
}