* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f4f7f6; color: #2c3e50; line-height: 1.6; padding: 10px; margin: 0; }
.form-container { max-width: 700px; margin: 20px auto; background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); overflow: hidden; border-top: 6px solid #2e8555; }

.brand-header { background-color: #ffffff; padding: 25px 20px 15px 20px; text-align: center; border-bottom: 2px solid #f1f5f9; position: relative; }
.brand-header img { max-width: 100%; height: auto; max-height: 55px; object-fit: contain; }

.form-content { padding: 30px 25px; }
h1 { font-size: 24px; color: #1a252f; margin: 0 0 8px 0; }
.subtitle { color: #64748b; font-size: 15px; margin-bottom: 20px; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; }
h2 { font-size: 18px; color: #2e8555; margin-top: 10px; border-bottom: 1px solid #eef2f5; padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* Progress Container */
.progress-box { margin-bottom: 25px; }
.progress-bar-bg { background-color: #e2e8f0; height: 8px; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { background-color: #2e8555; height: 100%; width: 20%; transition: width 0.3s ease; }
.step-indicators { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 600; color: #94a3b8; }
.step-indicators .step-dot { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: #e2e8f0; text-align: center; color: #64748b; }
.step-indicators .step-dot.active { background: #2e8555; color: #fff; }

/* Multi-step Display */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease-in-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group { margin-bottom: 20px; position: relative; }
label.group-title { font-weight: 600; display: block; margin-bottom: 8px; color: #34495e; font-size: 15px; padding: 6px 8px; border-radius: 6px; transition: background 0.2s, border 0.2s; }

input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { outline: none; border-color: #2e8555; box-shadow: 0 0 0 3px rgba(46, 133, 85, 0.2); }
textarea { height: 100px; resize: vertical; }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; padding: 4px; border-radius: 8px; }
.radio-group label, .checkbox-group label { font-weight: normal; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #334155; background: #f8fafc; padding: 12px 14px; border-radius: 8px; border: 1px solid #e2e8f0; transition: background-color 0.2s, border-color 0.2s; font-size: 15px; }
.radio-group label:hover, .checkbox-group label:hover { background: #f1f5f9; border-color: #cbd5e1; }
.radio-group input, .checkbox-group input { width: 20px; height: 20px; accent-color: #2e8555; flex-shrink: 0; }

.conditional-field { background-color: #f8fafc; border-left: 4px solid #2e8555; padding: 15px; margin-top: 15px; border-radius: 0 8px 8px 0; display: none; }

.gdpr-box-short { font-size: 12px; color: #64748b; text-align: center; margin-top: 15px; line-height: 1.4; opacity: 0.9; }
.gdpr-box { background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; border-radius: 8px; font-size: 13px; color: #64748b; margin-top: 25px; line-height: 1.5; }
.gdpr-box strong { color: #334155; }

.step-indicators .step-dot.clickable { cursor: pointer; box-shadow: 0 0 0 2px rgba(46, 133, 85, 0.3); }
.step-indicators .step-dot.clickable:hover { background-color: #236c44; color: #fff; }

/* Diskret fotnot i botten av sidan */
.site-footer { text-align: center;v margin: 25px auto 15px auto; font-size: 13px; color: #64748b; }
.site-footer a { color: #2e8555; text-decoration: none; font-weight: 500; transition: color 0.2s, text-decoration 0.2s; }
.site-footer a:hover { color: #236c44; text-decoration: underline; }

/* --- ANPASSADE FELSTYLINGAR (ORANGE/RÖD) --- */
.input-error { border-color: #e65100 !important; background-color: #fff8f6 !important; box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15) !important; }

.label-error { color: #d84315 !important; border: 1.5px dashed #e65100 !important; background-color: #fff3e0 !important; }

.field-error-msg { color: #d84315; font-size: 13px; font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* Knappar */
.nav-buttons { display: flex; justify-content: space-between; gap: 15px; margin-top: 25px; }
.btn-nav { background-color: #e2e8f0; color: #334155; border: none; padding: 14px 24px; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.btn-nav:hover { background-color: #cbd5e1; }
.btn-next { background-color: #2e8555; color: white; border: none; padding: 14px 28px; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.btn-next:hover { background-color: #236c44; }
.btn-submit { background-color: #2e8555; color: white; border: none; padding: 16px 28px; font-size: 18px; font-weight: 600; border-radius: 8px; cursor: pointer; width: 100%; transition: background-color 0.2s; -webkit-tap-highlight-color: transparent; }
.btn-submit:hover { background-color: #236c44; }

.alert-success { background-color: #d1e7dd; color: #0f5132; padding: 25px 20px; border-radius: 8px; text-align: center; border: 1px solid #badbcc; }
.alert-error { background-color: #f8d7da; color: #842029; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #f5c2c7; }

@media (max-width: 480px) {
  body { padding: 0; background-color: #fff; }
  .form-container { margin: 0; border-radius: 0; box-shadow: none; border-top: none; }
  .form-content { padding: 20px 15px; }
  h1 { font-size: 21px; }
  .subtitle { font-size: 14px; }
  .brand-header { padding: 15px 15px 10px 15px; }
  .brand-header img { max-height: 45px; }
}
