/* app.css - shared layout */

:root {
  --bg: #f5f7fb;
  --bg-card: #ffffff;
  --primary: #5f4bdb;
  --primary-soft: rgba(95, 75, 219, 0.08);
  --primary-dark: #4535a8;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.07); 
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 150ms ease-out;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffffff, #f5f7fb 40%, #edf2ff 100%);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ============================================================
   NAVBAR - Desktop & Mobile
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.5rem 0;
  height: 50px;
}

/* Logo - 50% smaller */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 100%;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
}

/* Right Side - Auth & User Menu */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: white;
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.user-menu-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(95, 75, 219, 0.15);
  transform: translateY(-1px);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.user-menu-btn:hover .chevron {
  transform: translateY(2px);
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--border-subtle);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.5));
  border-radius: 16px 16px 0 0;
}

.user-dropdown-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.user-dropdown-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.dropdown-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.dropdown-item:hover svg {
  color: var(--primary);
}

.dropdown-item:last-of-type {
  border-radius: 0 0 16px 16px;
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(15, 23, 42, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  padding: 1rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.mobile-nav-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  margin-top: 0.5rem;
}

.mobile-nav-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(95, 75, 219, 0.4);
}

.mobile-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.75rem 0;
}

/* ============================================================
   AUTH PAGES - Login & Register Dialog Style
   ============================================================ */

.auth-page {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-dialog {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 75, 219, 0.1);
}

.auth-form .helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 500px) {
  .auth-dialog {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  background: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(95, 75, 219, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(95, 75, 219, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(95, 75, 219, 0.4);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.hero-kicker span.badge-pill {
  background: #ffffff;
  padding: 0.05rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(95, 75, 219, 0.28);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(90deg, var(--primary), #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.97rem;
  max-width: 32rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta-pill {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Hero card */

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(95, 75, 219, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-card-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 163, 74, 0.07);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.hero-card-progress {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-card-progress-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.33);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--primary), #22c55e);
  border-radius: 999px;
}

.hero-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.hero-card-list li span {
  font-weight: 600;
  color: var(--text-main);
}

.hero-card-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4b5563;
  margin-left: -8px;
}

.avatar-circle:first-child {
  margin-left: 0;
}

/* Sections, cards */

.section {
  padding: 1.8rem 0 2.3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.campaign-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.02);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(95, 75, 219, 0.25);
  background: #ffffff;
}

.campaign-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.pill-muted {
  font-size: 0.7rem;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.16);
  color: #4b5563;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.campaign-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.campaign-beneficiary {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.campaign-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.progress-bar-sm {
  height: 6px;
  margin-top: 0.3rem;
}

.progress-bar-sm .progress-bar-fill {
  width: 56%;
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 0.95rem;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

/* Generic card/forms */

.form-card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  padding: 1.3rem 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.52rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.86rem;
  outline: none;
  background: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(95, 75, 219, 0.9);
  box-shadow: 0 0 0 1px rgba(95, 75, 219, 0.15);
  background: #ffffff;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Form Status Messages */
.error-text {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #991b1b;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.error-text::before {
  content: "⚠";
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.info-text {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #1e40af;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.info-text::before {
  content: "ℹ";
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================================
   LEGAL PAGES - Privacy & Terms
   ============================================================ */

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-container {
  max-width: 800px;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-subtle);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.legal-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.legal-section ul {
  margin: 1rem 0 1rem 1.5rem;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.legal-section strong {
  font-weight: 600;
  color: var(--text-main);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page {
  padding: 3rem 0 4rem;
}

.contact-container {
  max-width: 1000px;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-subtle);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 75, 219, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.success-message {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.success-message svg {
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: #10b981;
}

.success-message strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: #065f46;
}

.success-message p {
  margin: 0;
  font-size: 0.9rem;
  color: #047857;
  line-height: 1.5;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-subtle);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0.25rem 0;
}

.contact-info-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .legal-title,
  .contact-title {
    font-size: 2rem;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0 1.4rem;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 1.8rem;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Responsive - Tablet & Below */
@media (max-width: 860px) {
  .mobile-toggle {
    display: flex;
  }

  .user-name-text {
    display: none;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }
}

/* Mobile Responsive - Phone */
@media (max-width: 640px) {
  .navbar-inner {
    padding: 0.4rem 0;
    height: 45px;
    gap: 0.6rem;
  }

  .brand-logo-img {
    max-height: 35px;
  }

  .mobile-menu {
    top: 45px;
  }
  .hero-inner {
    gap: 1.9rem;
  }
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Lightbox/Modal */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.8rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease-out;
  text-align: center;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.lightbox-icon.success {
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: white;
}

.lightbox-icon.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.lightbox-icon.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.lightbox-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.lightbox-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.lightbox-close {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: 0 8px 18px rgba(95, 75, 219, 0.45);
}

.lightbox-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(95, 75, 219, 0.6);
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spin 0.6s linear infinite;
  color: white;
}

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