:root {
  --accent: #3fc7c3;
  --text: #003366;
  --bg: #ffffff;
  --card-bg: #f9f9f9;
  --radius: 10px;
  --spacing: 24px;
  --step-bg: #eef6fa;
  --border: #bed9df;
  --error-bg: #ffe0e6;
  --error-border: #e63946;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: var(--spacing);
  background-color: var(--bg);
  color: var(--text);
}

.logo {
  display: block;
  margin: 0 auto 1.5em auto;
  max-width: 160px;
}

.card {
  background: var(--card-bg);
  padding: 2em;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 2em auto;
}

.step-indicator {
  background: var(--step-bg);
  border-radius: 24px;
  color: var(--text);
  font-size: 0.98em;
  padding: 0.48em 1.2em;
  display: inline-block;
  margin-bottom: 1.1em;
  border: 1px solid var(--border);
  font-weight: 600;
}

h1 {
  margin-bottom: 0.1em;
  font-size: 2em;
  text-align: left;
}

.subtitle {
  color: #375f6a;
  font-size: 1.12em;
  margin-bottom: 1.5em;
}

.fieldset {
  border: 1px solid var(--border);
  background: var(--step-bg);
  border-radius: var(--radius);
  padding: 1em 1em 0.8em 1em;
  margin-bottom: 2em;
}

.alt-switch {
  font-size: 0.98em;
  margin-bottom: 0.8em;
  font-weight: 500;
  color: #43687e;
  display: flex;
  align-items: center;
}

.alt-switch input[type=checkbox] {
  margin-right: 0.55em;
}

label {
  display: block;
  margin-top: 1.3em;
  font-weight: 600;
}

.helptext {
  font-size: 0.93em;
  color: #517b96;
  margin-top: 0.18em;
  margin-bottom: 0.18em;
}

input[type="text"],
input[type="email"] {
  padding: 0.6em;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  margin-top: 0.3em;
  transition: background 0.18s, border 0.18s;
}

input.invalid {
  border-color: var(--error-border);
  background: var(--error-bg);
}

.suggestion-wrapper {
  position: relative;
}

ul.suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-top: none;
  position: absolute;
  background: #fff;
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
}

ul.suggestions-list li {
  padding: 0.5em;
  cursor: pointer;
  font-size: 1.08em;
  padding: 0.9em 0.6em;
}

ul.suggestions-list li:hover,
ul.suggestions-list li:focus {
  background: #eee;
  outline: none;
}

.hidden {
  display: none;
}

.error-inline {
  color: var(--error-border);
  font-size: 0.95em;
  margin-top: 0.25em;
  margin-bottom: -0.7em;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
}

.error {
  background: var(--error-bg);
  color: var(--error-border);
  border: 1px solid var(--error-border);
  border-radius: 7px;
  font-size: 0.98em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  padding: 0.7em 1em;
  font-weight: 600;
}

.privacy {
  font-size: 0.97em;
  color: #527090;
  margin-top: 2.1em;
  background: #f3faff;
  border-radius: 7px;
  padding: 0.65em 1.1em;
}

input[readonly] {
  background-color: #f0f0f0;
}

button {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.8em 1.4em;
  font-size: 1em;
  cursor: pointer;
  margin-top: 2em;
  margin-right: 1em;
  min-width: 110px;
  min-height: 48px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.14s;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button.secondary {
  background-color: #ccc;
  color: #333;
}

button:hover:not(:disabled) {
  background-color: #2fa5a2;
}

.progress-container {
  width: 100%;
  max-width: 600px;
  margin: 1.5em auto 1.5em auto;
  background: #e5f3f7;
  border-radius: 10px;
  height: 14px;
  position: relative;
}

#progress-bar-fill {
  background: linear-gradient(90deg, var(--accent), #2fa5a2);
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 0.35s cubic-bezier(0.36, 0.66, 0.04, 1);
  box-shadow: 0 2px 8px rgba(63,199,195,0.15);
  position: absolute;
  top: 0; left: 0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.7em 0 0.5em 0;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.progress-step {
  font-size: 0.99em;
  color: #a3b7c5;
  font-weight: 600;
  position: relative;
}

.progress-step.active {
  color: var(--accent);
}

@media (max-width: 600px) {
  body {
    margin: 8px;
  }
  .card {
    padding: 1em 0.7em;
    margin: 1em auto;
    max-width: 99vw;
  }
  input[type="text"],
  input[type="email"] {
    font-size: 1.08em;
    padding: 1em 0.85em;
    min-height: 44px;
  }
  label {
    margin-top: 1em;
  }
  button, .suggestions-list li {
    font-size: 1.1em;
    min-height: 48px;
    padding: 1em 0.5em;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1em;
  }
  .step-indicator {
    font-size: 1em;
    padding: 0.7em 0.7em;
  }
  .fieldset {
    padding: 0.5em 0.3em 0.3em 0.3em;
    margin-bottom: 1em;
  }
  .progress-container,
  .progress-steps {
    max-width: 98vw;
    margin-left: 0;
    margin-right: 0;
  }
}

[id$="-status"], [id$="-sector"] {
  margin-top: 0.35em;
  font-size: 0.98em;
  background: #eef6fa;
  padding: 0.5em 0.7em;
  border-radius: 5px;
  display: block;
}
