/* Design System for Blue Energia - Liquid Glass Brand Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Blue Energia Official Palette */
  --primary: #0071e3;
  --primary-hover: #0051a5;
  --primary-glow: rgba(0, 113, 227, 0.15);
  --primary-light: rgba(0, 113, 227, 0.04);
  --accent-blue-light: #78b5ff;
  --accent-yellow: #f5a623;
  --accent-yellow-glow: rgba(245, 166, 35, 0.1);

  --text-dark: #1d2939;
  --text-primary: #1d2939;
  --text-medium: #475467;
  --text-light: #667085;

  --bg-page: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-input: rgba(0, 0, 0, 0.02);
  --bg-glass-input-focus: rgba(255, 255, 255, 0.95);

  /* Liquid Glass Border Highlights */
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-dark: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(0, 113, 227, 0.25);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #f5a623;
  --danger: #ef4444;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-liquid:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 10px 40px rgba(0, 113, 227, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  --step-width: 120px;

  /* Footer variables from principal style.css */
  --bg-header-footer: rgba(255, 255, 255, 0.85);
  --text-link-footer: var(--text-medium);
  --gradient-text-blue: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  --blue-primary: var(--primary);
  --text-muted: var(--text-light);
  --text-secondary: var(--text-medium);
  --text-tertiary: var(--text-light);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f8fc;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(120, 181, 255, 0.15) 0%, rgba(120, 181, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* --- Header --- */
.global-header {
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 12px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 120;
}

.header-nav>ul {
  display: flex;
  align-items: center;
  list-style: none;
}

.header-nav li {
  margin-left: 20px;
}

@media (min-width: 992px) {
  .header-nav li {
    margin-left: 30px;
  }
}

.header-nav li.nav-item-login {
  margin-left: 10px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

.header-nav a:hover {
  opacity: 0.7;
}

/* Botão 'Assine Agora' no Nav com gradiente */
.header-nav .nav-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  color: white;
  padding: 8px 18px;
  border-radius: 15px;
  font-weight: 500;
  transition: filter 0.3s ease;
  border: none;
}

.header-nav .nav-button:hover {
  filter: brightness(90%);
  opacity: 1;
}

/* Estilo secundário para botões no nav (Área do Cliente) */
.header-nav .nav-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-nav .nav-button-secondary:hover {
  background: rgba(0, 113, 227, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  opacity: 1;
  transform: translateY(-1px);
}

.header-nav .nav-button-secondary svg {
  flex-shrink: 0;
}

/* --- Dropdown Menu (Área do Cliente) --- */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  margin-top: 12px;
  z-index: 1000;
  list-style: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  display: block !important;
  margin: 0 !important;
}

.dropdown-menu a {
  display: block !important;
  padding: 12px 20px !important;
  color: var(--text-dark) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background 0.2s ease !important;
  text-align: left !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.dropdown-menu a:hover {
  background: rgba(0, 113, 227, 0.08) !important;
  color: var(--primary) !important;
  opacity: 1 !important;
}

.nav-item-dropdown>a::after {
  content: '▼';
  font-size: 0.6em;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-item-dropdown:hover>a::after {
  transform: rotate(180deg);
}

.mobile-section-header {
  padding: 15px 20px 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1.2px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 5px;
  opacity: 0.7;
  list-style: none;
}

.header-nav-mobile a.nav-link-sub {
  padding-left: 35px !important;
  font-size: 14px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  color: var(--primary) !important;
  font-weight: 500 !important;
}

.header-nav-mobile a.nav-link-sub::before {
  content: '→';
  margin-right: 10px;
  font-size: 0.9em;
  opacity: 0.5;
}

.header-logo {
  font-size: 2.0rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-dark);
  display: inline-block;
  position: relative;
  line-height: 1;
  padding-bottom: 10px;
}

.logo-text-container {
  display: inline-block;
  position: relative;
}

.logo-main {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.logo-suffix {
  position: absolute;
  bottom: -10px;
  right: 1px;
  font-size: 0.4em;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentcolor;
  white-space: nowrap;
}

/* --- Botão Hamburguer --- */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 110;
  position: absolute;
  top: 10px;
  right: 20px;
}

.menu-icon {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-dark);
  position: relative;
  transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: transform 0.3s ease;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.menu-trigger[aria-expanded="true"] .menu-icon,
.menu-trigger.active .menu-icon {
  background-color: transparent;
}

.menu-trigger[aria-expanded="true"] .menu-icon::before,
.menu-trigger.active .menu-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-trigger[aria-expanded="true"] .menu-icon::after,
.menu-trigger.active .menu-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Navegação Mobile --- */
.header-nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding-top: 100px;
  z-index: 100;
  text-align: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
  pointer-events: none;
  visibility: hidden;
}

.header-nav-mobile.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.header-nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav-mobile li {
  margin-bottom: 8px;
}

.header-nav-mobile a {
  display: block;
  padding: 8px 20px;
  font-size: 1.15rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 300;
}

.header-nav-mobile a.nav-button {
  font-weight: 500;
  margin: 10px auto;
  text-align: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  color: #ffffff;
  width: 90%;
  max-width: 300px;
  padding: 12px 20px;
}

.header-nav-mobile a.nav-button-secondary {
  font-weight: 500;
  margin: 15px auto;
  text-align: center;
  border-radius: 20px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 90%;
  max-width: 300px;
  padding: 12px 20px;
}

/* --- Ações Mobile no Header --- */
.header-mobile-actions {
  display: none;
}

@media (max-width: 991px) {
  .menu-trigger {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
  }

  .header-nav {
    display: none;
  }

  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 50px;
    z-index: 120;
  }

  .header-mobile-actions .mobile-action-btn:active {
    transform: scale(0.95);
  }

  .header-mobile-actions .mobile-action-subscribe {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
  }

  .header-mobile-actions .mobile-action-login {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
  }
}

/* Liquid Glass Card Container */
.form-container {
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 120px auto 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-liquid);
  border: 1px solid var(--border-glass);
  padding: 48px;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.form-title {
  text-align: center;
  font-size: 28px;
  font-weight: 550;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.form-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 40px;
}

/* Stepper Progress Tracker */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stepper-line {
  position: absolute;
  top: 20px;
  left: calc(var(--step-width) / 2);
  right: calc(var(--step-width) / 2);
  height: 2px;
  background-color: rgba(29, 41, 57, 0.12);
  z-index: 1;
}

.step-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  z-index: 1;
  width: 0%;
  transition: var(--transition);
  box-shadow: 0 0 10px var(--primary-glow);
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--step-width);
  flex-shrink: 0;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
  transition: var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  transition: var(--transition);
}

/* Stepper Active & Completed States */
.step.active .step-circle {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  border: none;
  color: white;
  box-shadow: none;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step.completed .step-circle {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  border: none;
  color: white;
  box-shadow: none;
}

.step.completed .step-label {
  color: var(--text-dark);
}

/* Form Sections */
.form-step {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Liquid Glass Persona Toggle — True Aave clip-path technique */
.liquid-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  width: 100%;
}

.liquid-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding: 4px;
}

.liquid-toggle-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.035);
  border-radius: 44px;
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 0;
  pointer-events: none;
}

/* Base options: always visible, muted look */
.liquid-toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: rgba(29, 41, 57, 0.38);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.1px;
}

.liquid-toggle-option svg {
  width: 20px;
  height: 20px;
  color: inherit;
}

/* ─── AAVE TECHNIQUE ───────────────────────────────────────────────────────
   The overlay has the PAGE BACKGROUND as its fill.
   clip-path cuts it into the pill shape of the active thumb.
   The SVG feDisplacementMap filter bends the background pixels at the edge
   of the clip-path — creating the glass lens refraction effect.
   Inside the overlay is a copy of the options with vibrant colors.
   ──────────────────────────────────────────────────────────────────────── */
.liquid-toggle-overlay {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 40px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.liquid-toggle-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.75);
  z-index: -1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.liquid-toggle[data-active="pj"] .liquid-toggle-overlay {
  transform: translateX(100%);
}

/* Specular highlight — bright strip at top simulating curved glass under light */
.liquid-toggle-specular {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(175deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.30) 25%,
      rgba(255, 255, 255, 0.05) 55%,
      rgba(190, 215, 255, 0.08) 100%);
  pointer-events: none;
}

/* Inner div aligned the same as the base options so icons overlap exactly */
.liquid-toggle-overlay-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 200%;
  display: flex;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.liquid-toggle[data-active="pj"] .liquid-toggle-overlay-inner {
  transform: translateX(-50%);
}

/* Overlay options: same layout but primary-colored */
.liquid-toggle-overlay-inner .liquid-toggle-option {
  color: var(--text-dark);
  font-weight: 700;
  cursor: default;
}

.liquid-toggle-overlay-inner .liquid-toggle-option svg {
  color: var(--primary);
  filter: drop-shadow(0 1px 3px rgba(0, 113, 227, 0.3));
}

/* Headings */
.section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  margin-top: 32px;
  letter-spacing: -0.3px;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-12 {
  grid-column: span 12;
}

.col-8 {
  grid-column: span 8;
}

.col-6 {
  grid-column: span 6;
}

.col-5 {
  grid-column: span 5;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  :root {
    --step-width: 80px;
  }

  .col-8,
  .col-6,
  .col-5,
  .col-4,
  .col-3,
  .col-2 {
    grid-column: span 12;
  }

  .liquid-toggle-option {
    font-size: 13px;
    gap: 6px;
    padding: 12px 8px;
  }

  .form-container {
    padding: 24px;
  }
}

/* Liquid Glass Inputs & Dropdowns */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
}

.form-group input,
.form-group select {
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass-input);
  border: 1px solid var(--border-glass);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.form-group select option {
  background-color: #ffffff;
  color: var(--text-dark);
}

.form-group input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus {
  background: var(--bg-glass-input-focus);
  border-color: var(--primary);
  box-shadow:
    0 0 15px rgba(0, 113, 227, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Valid state — green border + subtle glow */
.form-group input.is-valid {
  border-color: var(--success) !important;
  box-shadow:
    0 0 12px var(--success-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 38px;
}

/* Invalid state — keep same pattern for consistency */
.form-group input.is-invalid {
  border-color: var(--danger) !important;
  box-shadow:
    0 0 12px rgba(239, 68, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 38px;
}

/* Upload Cards - Liquid Glass Style */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-card {
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-input);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  gap: 12px;
  min-width: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.01);
}

.upload-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.upload-card:hover {
  border-color: rgba(0, 113, 227, 0.2);
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.upload-card.uploaded {
  border-color: var(--success);
  background-color: rgba(16, 185, 129, 0.05);
  box-shadow:
    0 8px 20px rgba(16, 185, 129, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.upload-card.uploaded::before {
  border-color: transparent;
}

.upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.upload-icon {
  width: 38px;
  height: 38px;
  color: var(--text-light);
  transition: var(--transition);
}

.upload-card:hover .upload-icon {
  color: var(--primary);
}

.upload-card.uploaded .upload-icon {
  color: var(--success);
  filter: drop-shadow(0 0 5px var(--success-glow));
}

/* Uploading State styles */
.upload-card.uploading {
  border-color: var(--primary);
  background-color: rgba(0, 113, 227, 0.03);
}

.upload-card.uploading::before {
  border-color: var(--primary);
  opacity: 0.5;
}

.upload-card.uploading .upload-icon {
  color: var(--primary);
  animation: upload-pulse 1.5s infinite ease-in-out;
}

.upload-loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 113, 227, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: upload-spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 8px;
  flex-shrink: 0;
}

@keyframes upload-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

@keyframes upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.upload-subtext {
  font-size: 12px;
  color: var(--text-medium);
  width: 100%;
  box-sizing: border-box;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  margin-top: 12px;
  box-shadow: var(--shadow-liquid);
  z-index: 10;
  box-sizing: border-box;
}

.file-name {
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
  margin-right: 8px;
}

.remove-file {
  color: var(--danger);
  cursor: pointer;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  transition: var(--transition);
  z-index: 15;
  flex-shrink: 0;
}

.remove-file:hover {
  background-color: rgba(239, 68, 68, 0.08);
}

/* Collapsible Contract Viewer */
.contract-viewer-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.contract-viewer {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  height: 160px;
  /* Collapsed height */
  overflow: hidden;
  /* Hide overflow when collapsed */
  padding: 28px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.01);
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contract-viewer-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  transition: opacity 0.3s ease;
}

/* Expanded State */
.contract-viewer-wrapper.expanded .contract-viewer {
  height: 400px;
  overflow-y: auto;
}

.contract-viewer-wrapper.expanded::after {
  opacity: 0;
}

/* Expand Button */
.btn-expand-contract {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -12px auto 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-glass);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-liquid);
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.btn-expand-contract:hover {
  background: #ffffff;
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-expand-contract svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contract-viewer-wrapper.expanded .btn-expand-contract svg {
  transform: rotate(180deg);
}

.contract-viewer h3 {
  text-align: center;
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.contract-viewer section {
  margin-bottom: 20px;
}

.contract-viewer h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contract-viewer ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Checkbox Alignment with Glassmorphic styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.checkbox-group input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 13px;
  color: var(--text-medium);
  cursor: pointer;
  line-height: 1.5;
}

.contract-viewer a,
.checkbox-group a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.contract-viewer a:hover,
.checkbox-group a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

/* Action Buttons with Neomorphic / Glow style */
.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  color: white;
  border: none;
  box-shadow:
    0 8px 20px rgba(0, 113, 227, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow:
    0 12px 25px rgba(0, 113, 227, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: var(--text-light);
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-medium);
  border: 1px solid var(--border-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.01);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

/* Success Card with Glassmorphic styles */
.success-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
  width: 72px;
  height: 72px;
  background-color: rgba(16, 185, 129, 0.05);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 12px;
  border: 1px solid var(--success);
  box-shadow: 0 0 20px var(--success-glow);
}

.success-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}

.success-subtitle {
  font-size: 15px;
  color: var(--text-medium);
  max-width: 480px;
  margin-bottom: 32px;
}

.info-alert {
  background-color: rgba(0, 113, 227, 0.03);
  border: 1px solid rgba(0, 113, 227, 0.1);
  color: var(--primary-hover);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 100%;
  max-width: 550px;
  text-align: left;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-liquid);
}

.next-steps-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 550px;
  margin-bottom: 32px;
  position: relative;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  position: relative;
}

.steps-timeline::before {
  display: none;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  width: 100%;
}

.step-row::before {
  content: '';
  position: absolute;
  left: 14px;
  /* Align with horizontal center of 28px number */
  width: 2px;
  background-color: var(--primary);
  opacity: 0.3;
  z-index: 1;
}

/* First row: starts at center of number, goes to bottom of row + half gap */
.step-row:first-child::before {
  top: 50%;
  bottom: -8px;
  /* half of 16px gap */
}

/* Middle rows: starts at top of row - half gap, goes to bottom of row + half gap */
.step-row:not(:first-child):not(:last-child)::before {
  top: -8px;
  bottom: -8px;
}

/* Last row: starts at top of row - half gap, goes to center of number */
.step-row:last-child::before {
  top: -8px;
  height: calc(50% + 8px);
}

.step-item {
  flex: 1;
  padding: 20px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: left;
  background-color: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-liquid);
  position: relative;
  z-index: 2;
}

.step-item-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.15);
  position: relative;
  z-index: 3;
  margin-top: 0;
  /* Aligned vertically to the center of the step-item box */
}

.step-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.step-item-desc {
  font-size: 13px;
  color: var(--text-medium);
}

.warning-banner {
  background-color: rgba(245, 166, 35, 0.03);
  border: 1px solid rgba(245, 166, 35, 0.1);
  color: #c2410c;
  border-radius: var(--radius-md);
  padding: 20px;
  width: 100%;
  max-width: 550px;
  text-align: left;
  font-size: 14px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-liquid);
}

/* ClickSign Widget secure embedding container styles */
#clicksign-iframe-container {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-top: 24px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: var(--shadow-liquid);
}

/* --- Footer --- */
.global-footer {
  background: var(--bg-header-footer);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  color: var(--text-secondary);
  padding: 50px 0 30px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-glass);
  width: 100%;
  margin-top: auto;
  /* Pushes footer to bottom if form is short */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
}

.footer-shop {
  color: var(--text-tertiary);
}

.footer-shop a {
  color: var(--primary);
  text-decoration: none;
}

.footer-shop a:hover {
  text-decoration: underline;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-directory-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.footer-directory ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-directory li {
  margin-bottom: 10px;
}

.footer-directory a {
  color: var(--text-link-footer);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-directory a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-legal {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-legal {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

.footer-legal-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.footer-contact-list .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-list .social-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.footer-directory a.social-link {
  color: var(--text-link-footer);
}

.footer-directory a.social-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.copyright-brand {
  background: var(--gradient-text-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-primary);
  font-weight: 500;
}

.brand-suffix {
  font-size: 1em;
  font-weight: inherit;
  color: var(--text-muted);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentcolor;
  vertical-align: baseline;
}

.footer-legal-copyright .brand-suffix {
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .footer-directory {
    text-align: center;
  }
  .footer-directory-column {
    margin-bottom: 20px;
  }
}

/* --- Admin Panel Styles --- */
.admin-container {
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 0 20px;
  flex: 1;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.admin-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-liquid);
  margin-bottom: 32px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.lead-table th {
  padding: 16px;
  border-bottom: 2px solid var(--border-glass);
  color: var(--text-dark);
  font-weight: 600;
}

.lead-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-medium);
}

.lead-table tr {
  cursor: pointer;
  transition: var(--transition);
}

.lead-table tr:hover td {
  background: rgba(0, 113, 227, 0.02);
}

.lead-table tr.active td {
  background: rgba(0, 113, 227, 0.04);
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending_review {
  background-color: rgba(245, 166, 35, 0.1);
  color: #c2410c;
}

.status-pending_email_verification {
  background-color: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
}

.status-sent_to_clicksign {
  background-color: rgba(0, 113, 227, 0.1);
  color: #0369a1;
}

.status-signed {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.status-signature_canceled {
  background-color: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  height: auto;
  border-radius: 6px;
}

/* Detail view */
.lead-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .lead-detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.detail-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 14px;
}

.detail-label {
  width: 180px;
  font-weight: 600;
  color: var(--text-medium);
  flex-shrink: 0;
}

.detail-value {
  color: var(--text-dark);
  word-break: break-all;
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: flex-end;
}

.file-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  transition: var(--transition);
}

.file-link-btn:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-hover);
}

/* Password Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 41, 57, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}

.password-modal {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-glass);
}

.password-modal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.password-modal p {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 24px;
}

.password-modal input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  margin-bottom: 20px;
  outline: none;
  text-align: center;
  font-size: 16px;
}

.password-modal input:focus {
  border-color: var(--primary);
}

.password-modal button {
  width: 100%;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s var(--transition), transform 0.3s var(--transition);
}

@keyframes toastIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.toast-error {
  border-left: 4px solid var(--danger);
  border-color: rgba(239, 68, 68, 0.15);
}

.toast-success {
  border-left: 4px solid var(--success);
  border-color: rgba(16, 185, 129, 0.15);
}

.toast-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-error .toast-icon {
  color: var(--danger);
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 3px;
  letter-spacing: -0.1px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-top: -2px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--text-dark);
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 16px;
    right: 24px;
    left: 24px;
    width: auto;
    max-width: none;
  }
}

/* Registration Summary Styles */
.summary-container {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-liquid);
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.summary-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .summary-sections {
    gap: 20px;
  }
  .summary-list {
    gap: 12px;
  }
  .summary-item {
    flex-direction: column;
    gap: 2px;
  }
  .summary-item-label {
    width: auto;
  }
}

.summary-section {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.summary-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-item {
  display: flex;
  font-size: 13px;
  line-height: 1.4;
}

.summary-item-label {
  font-weight: 500;
  color: var(--text-medium);
  width: 140px;
  flex-shrink: 0;
}

.summary-item-value {
  color: var(--text-dark);
  font-weight: 600;
  word-break: break-word;
}

/* Status Check Modal Styles */
.status-modal {
  max-width: 480px;
  background: var(--bg-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.status-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}

.status-result-name {
  font-size: 14px;
  color: var(--text-dark);
}

.status-result-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-medium);
}

.status-result-desc {
  margin: 0 0 8px 0;
}

.status-result-date {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
}

.modal-close-btn {
  background: none;
  border: none;
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  padding: 0;
  outline: none;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.modal-close-btn:active {
  transform: scale(0.9) rotate(90deg);
}

#status-cpf-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 113, 227, 0.12);
  width: 90%;
  max-width: 600px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: inherit;
  color: var(--text-dark);
  z-index: 9999;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  flex-wrap: wrap;
}

#cookie-banner div:first-child {
  flex: 1 1 60%;
}

#cookie-banner div:last-child {
  display: flex;
  gap: 12px;
  flex: 0 1 auto;
}

#cookie-banner h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

#cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-medium);
}

#cookie-banner a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

#cookie-banner a:hover {
  color: var(--primary-hover);
}

#accept-cookies {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

#accept-cookies:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}

#reject-cookies {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-medium);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

#reject-cookies:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  border-color: var(--border-glass-hover);
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
  }

  #cookie-banner div:first-child,
  #cookie-banner div:last-child {
    width: 100%;
  }

  #cookie-banner div:last-child {
    flex-direction: column;
    gap: 8px;
  }

  #cookie-banner button {
    width: 100%;
    padding: 12px 0;
  }

  .modal-overlay {
    align-items: flex-start;
  }

  .password-modal {
    padding: 24px 16px;
    margin: 20px auto;
    width: 100%;
    box-sizing: border-box;
  }

  #status-cpf-input::placeholder {
    font-size: 13px;
  }
}

/* ===========================================================================
   RESPONSIVE STATUS MODAL OVERRIDES
   =========================================================================== */
.status-modal {
  max-width: 460px !important;
  width: 100% !important;
  box-sizing: border-box;
}

#status-cpf-input {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .status-modal {
    padding: 24px 16px !important;
    margin: 12px auto !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }
  
  #btn-search-status {
    width: 100% !important;
    min-width: unset !important;
  }

  .status-result-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .status-result-header .status-badge {
    align-self: flex-start !important;
  }
}

/* ===========================================================================
   PREMIUM SIGNATURE BUTTON STYLING
   =========================================================================== */
.btn-signature {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #ffffff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-signature:hover {
  background: linear-gradient(135deg, #0077ed 0%, #0066cc 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 113, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-signature:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.2);
}

.btn-signature svg {
  transition: transform 0.3s ease;
}

.btn-signature:hover svg {
  transform: rotate(10deg) translateY(-1px) scale(1.1);
}