/* === BDORI Study Form — Two-Step Version === */

.bdori-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.bdori-field {
  display: block;
  width: 100%;
  margin: 16px 0;
  position: relative;
}

.bdori-field input,
.bdori-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 16px;
  background: #f7f7f7;
}

.bdori-field textarea {
  min-height: 110px;
  resize: vertical;
}

.bdori-count {
  position: absolute;
  right: 8px;
  bottom: -18px;
  font-size: 12px;
  color: #777;
}

.bdori-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-size: 14px;
  color: #444;
}

.bdori-button {
  display: block;
  margin: 24px auto;
  padding: 14px 28px;
  font-size: 16px;
  letter-spacing: 1px;
  background: #2f64c9;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.bdori-button:hover {
  background-color: #1e3a8a;
  transform: translateY(-1px);
}

.bdori-msg {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #b91c1c;
  margin-top: 14px;
}

/* Warning / Validation Notice Styling */
.bdori-form p[role="alert"],
.bdori-msg:not(:empty) {
  margin-top: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #b91c1c;
  background: #fff3f3;
  padding: 14px 18px;
  border-radius: 6px;
}

/* === Two-Step Specific Styles === */

#bdori-step1,
#bdori-step2 {
  animation: bdoriFadeIn 0.3s ease-in-out;
}

@keyframes bdoriFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bdori-step1-header h3,
.bdori-step2-header h3 {
  font-size: 22px;
  font-weight: 600;
}

.bdori-step2-header {
  border: 1px solid #c8e6c9;
}

/* Healthcare questions card */
.answer-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
}

.answer-card h4 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.answer-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
  margin-top: 4px;
}

.answer-card p {
  margin: 12px 0;
}

.answer-card label {
  display: block;
  font-size: 14px;
  color: #444;
}

/* Skip link styling (make it easy to tap/click) */
.bdori-skip {
  display: inline-block;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #333;
  text-decoration: none;
}

.bdori-skip:hover {
  text-decoration: none;
  background: #f7f7f7;
}

@media (max-width: 520px) {
  .bdori-skip {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
  }
}
