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

body {
  font-family: Nunito, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 2rem 1rem;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

/* Honeypot – invisible to real users */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

legend {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 0.5rem;
  color: #1a1a1a;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

.checkbox-group label,
.radio-group .radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Disabled sections */
.section-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.hint {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Companion entry */
.companion-entry {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fafafa;
  position: relative;
}

.companion-entry .companion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.companion-entry .companion-header strong {
  font-size: 0.9rem;
}

.btn-remove {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.btn-remove:hover {
  background: #fce4e4;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.btn-primary {
  background: #292E66;
  color: #fff;
  font-weight: 600;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background:#7BB9F4;
}

.btn-secondary {
  background: #7BB9F4;
  color: #fff;
}

.btn-secondary:hover {
  background: #4b83b8;
}

/* Success page */
.success-page {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  font-size: 2rem;
  background: #5cb85c;
  color: #fff;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.success-page h1 {
  margin-bottom: 0.75rem;
}

.success-page p {
  margin-bottom: 1.5rem;
  color: #555;
}

/* Responsive */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .container {
    padding: 1.25rem;
  }
}
