@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* * 1. Global Variables: These are safe to define at the top.
 */
:root {
  --primary-color: #387b5b;
  --accent-color: #ffb74d;
  --light-bg: #d5e4d9;
}

/* * 2. Removed/Relocated Styles:
 * - The 'body' and main '.modal' styles MUST be removed from here 
 * as they affect the parent index.html or are defined by the 
 * pre-existing modal structure.
 *
 * The styles below are prefixed with #risk-form-content 
 * to ensure they only affect the loaded form fragment.
 */

/* Scoped H2 (Applies to the form's internal step titles) */
#risk-form-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Scoped Form Steps */
#risk-form-content .form-step {
  display: none;
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 12px;
}

#risk-form-content .form-step.active {
  display: block;
}

/* Scoped Input/Select Fields */
#risk-form-content input, 
#risk-form-content select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

#risk-form-content label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

#risk-form-content input[type="radio"], 
#risk-form-content input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

#risk-form-content .button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Scoped Buttons */
#risk-form-content .ready-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#risk-form-content .ready-btn:hover {
  background: #2f664a;
}

/* Scoped Form Sections */
#risk-form-content .summary {
  background: #eef6f3;
  padding: 20px;
  border-radius: 8px;
}

#risk-form-content .option-block {
  margin-bottom: 15px;
  padding-left: 10px;
}

#risk-form-content .option-block label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

#risk-form-content .option-block input[type="radio"] {
  margin-top: 4px;
}

#risk-form-content .question-block {
  margin-bottom: 30px;
}

#risk-form-content .review-block {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 3px solid #0077b6;
  background-color: #f9f9f9;
}