:root {
  --text-primary: #111111;
  --text-secondary: #333333;
  --bg-color: #ffffff;
  --accent: #62afc9;
  --label-color: #3a7d94;
  --border-light: #d9dce3;
  --bg-hover: #edeef2;
  --divider: #e5e7eb;
  --footer-text: #666666;
  --font-family: Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.header-container {
  background-color: var(--bg-color);
  border-bottom: 3px solid var(--accent);
  width: 100%;
}

.header-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.header-content .logo {
  display: block;
  max-width: 280px;
  height: auto;
}

.header-content .brand-label {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--label-color);
  margin-top: 5px;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px 20px 20px;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

#site-header {
  margin-bottom: 40px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -0.03em;
}

#site-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--divider);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.survey-page {
  margin-bottom: 40px;
}

.question {
  margin-bottom: 40px;
}

.required-asterisk {
  font-weight: normal;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-color);
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.option-label:hover {
  background-color: var(--bg-hover);
}

.option-label:has(input:checked), .option-label.selected {
  border-color: var(--accent);
  background-color: #f2f9fc;
}

.option-label input {
  margin-top: 4px;
  margin-right: 16px;
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.option-label input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.option-text {
  flex: 1;
  padding-top: 2px;
}

.page-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--divider);
}

.page-actions button, button[type="submit"] {
  padding: 16px 24px;
  min-height: 54px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-primary, button[type="submit"] {
  background-color: var(--accent);
  color: var(--text-primary);
  border: none;
  flex: 1;
}

.btn-primary:hover, button[type="submit"]:hover {
  background-color: #559db5;
}

.btn-primary:focus-visible, button[type="submit"]:focus-visible, .btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:disabled, button[type="submit"]:disabled {
  background-color: #c4dbe3;
  color: #888888;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  width: auto;
  min-width: 140px;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
}

.error-msg {
  color: #d93025;
  font-weight: 600;
  margin-top: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.error-msg::before {
  content: "!";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #d93025;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  margin-right: 8px;
  font-size: 12px;
}

.error-banner {
  background-color: #fce8e6;
  color: #d93025;
  border: 1px solid #d93025;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 30px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 16px;
  font-family: inherit;
  font-size: 1.05rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-secondary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(98, 175, 201, 0.2);
}

.final-step-instructions {
  margin-bottom: 25px;
}

#thank-you {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background-color: #f9fafb;
}

#thank-you h2 {
  border-top: none;
  font-size: 2rem;
  margin-bottom: 15px;
  padding-top: 0;
}

.site-footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px 0;
}

.site-footer a {
  color: var(--footer-text);
  font-size: 14px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  main {
    padding: 30px 16px 20px 16px;
  }
  
  .header-content {
    padding: 16px;
  }

  .header-content .logo {
    max-width: 200px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  .page-actions {
    flex-direction: column-reverse;
    gap: 12px;
    border-top: none;
    padding-top: 10px;
  }
  
  .btn-secondary, .btn-primary, button[type="submit"] {
    width: 100%;
    min-width: 100%;
  }

  .option-label {
    padding: 18px 16px;
  }

  .form-group input {
    padding: 18px 16px;
  }
}
