:root {
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;
  
  --secondary-50: #f0f9ff;
  --secondary-100: #e0f2fe;
  --secondary-200: #bae6fd;
  --secondary-300: #7dd3fc;
  --secondary-400: #38bdf8;
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;
  --secondary-800: #075985;
  --secondary-900: #0c4a6e;
  
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  --success-800: #166534;
  --success-900: #14532d;
  
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;
  
  --danger-50: #fef2f2;
  --danger-100: #fee2e2;
  --danger-200: #fecaca;
  --danger-300: #fca5a5;
  --danger-400: #f87171;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;
  --danger-800: #991b1b;
  --danger-900: #7f1d1d;
  
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-800);
  text-decoration: underline;
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-900);
  text-decoration: none;
}

.navbar-brand i {
  color: var(--primary-600);
}

.navbar-brand span {
  font-family: var(--font-heading);
}

.navbar-toggler {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--neutral-700);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar-toggler:hover {
  background-color: var(--neutral-100);
  color: var(--primary-600);
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  color: var(--neutral-700);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  text-decoration: none;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" fill="rgba(99, 102, 241, 0.03)"><path d="M0,0 L1000,0 L1000,1000 L0,1000 Z M200,200 L800,200 L800,800 L200,800 Z"/></svg>');
  background-size: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
}

.hero-badge i {
  color: var(--primary-500);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--neutral-900);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-600);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-700);
  font-family: var(--font-heading);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.main-content {
  flex: 1;
  padding: 0rem 0;
}

.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 3rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--neutral-200);
  background: linear-gradient(to right, var(--primary-50), var(--secondary-50));
}

.card-title {
  margin-bottom: 0.25rem;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-subtitle {
  color: var(--neutral-600);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.card-body {
  padding: 1.5rem;
}

.steps-wrapper {
  margin-bottom: 2rem;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--neutral-200);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--neutral-500);
  transition: var(--transition);
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-full);
  background-color: var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-500);
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-500);
  transition: var(--transition);
}

.step.active .step-icon,
.step.completed .step-icon {
  background-color: var(--primary-500);
  color: white;
}

.step.active .step-number,
.step.completed .step-number {
  background-color: var(--primary-500);
  color: white;
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--primary-700);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  z-index: 2;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: white;
  transition: var(--transition);
  color: var(--neutral-800);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control:hover:not(:focus):not(:disabled),
.form-select:hover:not(:focus):not(:disabled) {
  border-color: var(--neutral-400);
}

.form-control:disabled,
.form-select:disabled {
  background-color: var(--neutral-100);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-download {
  padding: 1rem;
  font-size: 1.125rem;
}

.download-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  gap: 1rem;
}

.download-section .btn {
    flex: 1;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid;
}

.alert-notice {
  background-color: var(--warning-50);
  border-color: var(--warning-200);
  color: var(--warning-800);
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-notice .alert-icon {
  color: var(--warning-500);
}

.alert-content {
  flex: 1;
}

.alert-heading {
  margin-bottom: 0.5rem;
  color: inherit;
}

.alert-text {
  margin-bottom: 0;
  color: inherit;
}

.alert-text a {
  color: inherit;
  font-weight: 600;
}

.alert-text a:hover {
  text-decoration: underline;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-500), var(--secondary-500));
  border-radius: var(--border-radius-full);
}

.section-faq,
.section-seo {
  margin-bottom: 3rem;
}

.accordion-item {
  border: 1px solid var(--neutral-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background-color: white;
  border: none;
  font-weight: 600;
  color: var(--neutral-800);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.accordion-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.accordion-button::after {
  content: "▼";
  font-size: 0.75rem;
  transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-collapse {
  transition: var(--transition);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--neutral-50);
  border-top: 1px solid var(--neutral-200);
  color: var(--neutral-700);
  line-height: 1.7;
}

.accordion-body a {
  color: var(--primary-600);
  font-weight: 500;
}

.accordion-body a:hover {
  text-decoration: underline;
}

.seo-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--neutral-800);
}

.seo-content h3:first-child {
  margin-top: 0;
}

.seo-content p {
  color: var(--neutral-600);
  margin-bottom: 1rem;
}

.site-footer {
  background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
  color: white;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand h5 i {
  color: var(--primary-400);
}

.footer-brand p {
  color: var(--neutral-400);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-links h6 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h6::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-500);
  border-radius: var(--border-radius-full);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--neutral-300);
  text-decoration: none;
  padding: 0.25rem 0;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.footer-links ul li a i {
  font-size: 0.875rem;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--neutral-400);
  margin-bottom: 0;
  font-size: 0.875rem;
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(4px);
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.active {
  opacity: 1;
  display: flex;
}

.loading-content {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
  max-width: 450px;
  margin: 1rem;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.loading-overlay.active .loading-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.loading-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
  position: relative;
}

.loading-spinner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.loading-subtext {
  font-size: 0.95rem;
  color: var(--neutral-600);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: var(--neutral-200);
  border-radius: var(--border-radius-full);
  margin-top: 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--border-radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
  position: relative;
  z-index: 1;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-900);
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 5px;
  border-radius: var(--border-radius-sm);
}

.progress-container {
  width: 100%;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
  margin-top: 40px;
  text-align: center;
}

.adsense-slot {
  margin: 15px 0;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adsense-label {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-500);
  margin: 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.adsense-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
  position: relative;
}

.loading-spinner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@media (min-width: 576px) {
  .navbar-nav {
    flex-direction: row;
    margin-top: 0;
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .card-header {
    padding: 2rem;
  }
  
  .card-body {
    padding: 2rem;
  }
  
  .form-grid {
    gap: 2rem;
  }
  
  .download-section {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .stat-item {
    flex-direction: column;
  }
  
  .footer-content {
    gap: 3rem;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .hero-stats {
    gap: 3rem;
  }
  
  .step-indicator {
    margin-bottom: 3rem;
  }
  
  .step-content {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .step-label {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-label {
    font-size: 0.875rem;
  }
  
  .form-control,
  .form-select {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
  }
  
  .input-wrapper i {
    left: 0.75rem;
    font-size: 0.875rem;
  }
  
  .btn-download {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  .alert {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .alert-icon {
    font-size: 1.25rem;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.9375rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links ul li a {
    justify-content: center;
  }
  
  .loading-content {
    padding: 1.5rem;
    max-width: 90%;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
  
  .loading-text {
    font-size: 1.125rem;
  }
  
  .loading-subtext {
    font-size: 0.875rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: linear-gradient(to bottom right, var(--primary-50), var(--secondary-50));
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--primary-200);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.feature-card p {
  color: var(--neutral-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.commitment-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.commitment-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-200);
}

.commitment-list li:last-child {
  border-bottom: none;
}

.commitment-list i {
  color: var(--success-500);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-section .btn {
  background: white;
  color: var(--primary-600);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-800);
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.policy-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.policy-list li:before {
  content: "•";
  color: var(--primary-500);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--primary-50);
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-200);
  transition: var(--transition);
}

.contact-method:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.contact-details h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--neutral-900);
}

.contact-details p {
  font-size: 1rem;
  color: var(--neutral-800);
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

.contact-details small {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.contact-form-section {
  background: var(--secondary-50);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
}

.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  min-width: 300px;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow: hidden;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.toast-content i {
  font-size: 1.5rem;
}

.toast-info i {
  color: #3b82f6;
}

.toast-success i {
  color: #10b981;
}

.toast-danger i {
  color: #ef4444;
}

.toast-warning i {
  color: #f59e0b;
}

@media print {
  .site-header,
  .hero-section,
  .site-footer,
  .loading-overlay,
  .btn-download,
  .steps-wrapper {
    display: none;
  }
  
  .main-content {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: none;
  }
  
  .form-grid {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.content-wrapper {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.left-sidebar {
  width: 336px;
  order: 1;
}

.right-sidebar {
  width: 336px;
  order: 3;
}

.main-area {
  flex: 1;
  order: 2;
  min-width: 0; /* Allows flex item to shrink below content size */
}

.ad-unit {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 80px; /* Adjusted to account for navbar height */
  align-self: flex-start; /* Ensures the sticky element stays at the top of its flex container */
}

.ad-336x600 {
  width: 336px;
  height: 600px;
}

/* Responsive design for ad layouts */
@media (max-width: 1199px) {
  .left-sidebar,
  .right-sidebar {
    display: none;
  }

  .content-wrapper {
    display: block;
  }

  .main-area {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    gap: 1rem;
  }
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

::-moz-selection {
  background: var(--primary-500);
  color: white;
}

::selection {
  background: var(--primary-500);
  color: white;
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .contact-icon {
    margin: 0 auto;
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
  
  .cta-section h3 {
    font-size: 1.5rem;
  }
  
  .toast-notification {
    min-width: 250px;
    right: 10px;
    left: 10px;
  }
}

/* Styles for the newspaper dropdown menu */
.newspaper-dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 300px;
  content-visibility: auto;
}

.newspaper-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.newspaper-dropdown-menu::-webkit-scrollbar-track {
  background: var(--neutral-100);
  border-radius: 4px;
}

.newspaper-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--neutral-400);
  border-radius: 4px;
}

.newspaper-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

.newspaper-dropdown-menu .dropdown-item {
  white-space: normal;
  word-wrap: break-word;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.newspaper-dropdown-menu .dropdown-item:hover {
  background-color: var(--primary-100);
}

/* Responsive adjustments for the dropdown */
@media (max-width: 992px) {
  .newspaper-dropdown-menu {
    width: 250px;
  }
}

#ap-player_inContentCloseBtnContainer {
    display: none !important;
}

#div-gpt-ad-1769477450051-0 {
  pointer-events: none;
}