:root {
  --primary: #1a4b8c;
  --primary-dark: #0f3a6b;
  --primary-light: #2a6bb0;
  --secondary: #f8b81f;
  --secondary-dark: #e5a50a;
  --success: #28a745;
  --danger: #dc3545;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--gray-900);
  line-height: 1.6;
  background-color: var(--gray-100);
}

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

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
}

.logo-icon {
  font-size: 28px;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-cta .badge {
  background-color: var(--secondary);
  color: var(--gray-900);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0.1;
  border-radius: 50%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text {
  max-width: 800px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-700);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-trust {
  display: flex;
  gap: 30px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 20px;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.how-it-works h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--gray-800);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--gray-800);
}

.step p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Form Section */
.form-section {
  padding: 60px 0;
  background: var(--gray-100);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 30px;
  text-align: center;
}

.form-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-header p {
  opacity: 0.9;
  font-size: 16px;
}

form {
  padding: 30px;
}

.form-panel {
  margin-bottom: 30px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.form-panel h3 {
  background: var(--gray-100);
  padding: 15px 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
}

.panel-icon {
  margin-right: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gray-700);
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-family);
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Signature Pad */
.signature-area {
  padding: 0 20px 20px;
}

.signature-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.signature-label label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
}

.signature-hint {
  font-size: 12px;
  color: var(--gray-500);
}

.signature-pad-container {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 100%;
  height: 200px;
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--white);
  touch-action: none;
  cursor: crosshair;
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.terms-box {
  background: var(--gray-100);
  padding: 15px 20px;
  margin: 0 20px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  font-size: 14px;
  color: var(--gray-700);
}

.terms-box a {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

.checkbox-wrapper {
  padding: 0 20px 20px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  transform: scale(1.1);
}

.checkbox-wrapper label {
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
}

.checkbox-wrapper a {
  color: var(--primary);
  text-decoration: underline;
}

.form-footer {
  text-align: center;
  margin-top: 30px;
}

.privacy-note {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 15px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  width: 100%;
  max-width: 400px;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--white);
}

.testimonials h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--gray-800);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--gray-100);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--secondary);
  font-size: 20px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 14px;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.about-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--gray-800);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  background: var(--gray-100);
  padding: 30px;
  border-radius: 12px;
}

.about-stat {
  text-align: center;
}

.about-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 5px;
}

.about-label {
  font-size: 14px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--gray-100);
}

.contact-section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--gray-800);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 28px;
  line-height: 1;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--gray-800);
}

.contact-item p {
  color: var(--gray-600);
  line-height: 1.5;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 3px;
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.contact-form p {
  color: var(--gray-700);
  margin-bottom: 20px;
  font-size: 15px;
}

.simple-contact input,
.simple-contact textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  margin-bottom: 15px;
  font-family: var(--font-family);
  font-size: 15px;
}

.simple-contact input:focus,
.simple-contact textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.simple-contact button {
  width: 100%;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--white);
}

.faq h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 50px;
  color: var(--gray-800);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--gray-100);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.faq-item p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 15px;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon {
  font-size: 24px;
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h5 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-column ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-800);
  font-size: 13px;
  color: var(--gray-500);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow: auto;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  color: var(--gray-500);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: sticky;
  top: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--gray-800);
}

.modal-body {
  margin-top: 20px;
}

.modal-body h3 {
  color: var(--primary);
  margin: 20px 0 10px;
}

.modal-body h4 {
  color: var(--gray-800);
  margin: 15px 0 5px;
}

.modal-body ul {
  padding-left: 20px;
  margin: 10px 0;
  color: var(--gray-700);
}

.modal-body p {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ============================================= */
/* MOBILANPASSNING */
/* ============================================= */

@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .logo {
    font-size: 20px;
    gap: 6px;
  }
  
  .logo-icon {
    font-size: 24px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .nav-cta .badge {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .hero {
    padding: 40px 0 50px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-trust {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    max-width: 100%;
  }
  
  .form-header h2 {
    font-size: 24px;
  }
  
  .form-header p {
    font-size: 14px;
  }
  
  form {
    padding: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .signature-pad-container {
    height: 180px;
  }
  
  .signature-label {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .terms-box {
    margin: 0 15px 15px;
    padding: 12px 15px;
  }
  
  .checkbox-wrapper {
    padding: 0 15px 15px;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-stats {
    padding: 20px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    order: 2;
  }
  
  .contact-form {
    order: 1;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .faq-item {
    padding: 20px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .modal-content {
    margin: 10% 15px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .signature-pad-container {
    height: 150px;
  }
  
  h2 {
    font-size: 28px !important;
    margin-bottom: 30px !important;
  }
  
  .form-panel h3 {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .btn-primary {
    font-size: 15px;
    padding: 12px 20px;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
}