/* ---------------------------------------------------
      RESG BRAND VARIABLES
----------------------------------------------------- */
:root {
  --resg-yellow: #f9cd48;
  --resg-navy: #15304f;
  --resg-green: #16b75a;
  --resg-green-hover: #13a151;
  --resg-text: #000000;
  --resg-grey: #eae9e6;
}

/* ---------------------------------------------------
      GLOBAL
----------------------------------------------------- */
body {
  font-family: 'DM Sans', 'Roboto', Arial, sans-serif;
  background: var(--resg-yellow);
  color: var(--resg-text);
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

#eco-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--resg-yellow);
  border-radius: 12px;
}

/* Progress bar */
.progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--resg-green);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* ---------------------------------------------------
      HEADINGS
----------------------------------------------------- */
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--resg-text);
}

/* ---------------------------------------------------
      LABELS
----------------------------------------------------- */
label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.3rem;
  color: var(--resg-text);
}

/* Red star for required */
label[data-required="true"]::after {
  content: " *";
  color: #cc0000;
}

/* ---------------------------------------------------
      INPUTS
----------------------------------------------------- */
input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 6px;
  border: 2px solid var(--resg-navy);
  background: #ffffff;
  padding: 10px 12px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 16px;
  font-family: 'DM Sans', 'Roboto', Arial, sans-serif;
}

textarea {
  min-height: 90px;
}

/* ---------------------------------------------------
      RADIO BLOCK
----------------------------------------------------- */
.radio-block label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 500;
}

.radio-block input[type="radio"] {
  margin-right: 10px;
}

/* ---------------------------------------------------
      BUTTONS
----------------------------------------------------- */
button,
.govuk-button {
  background: var(--resg-green) !important;
  color: #ffffff !important;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background .2s ease, transform .15s ease;
  font-family: 'DM Sans', 'Roboto', Arial, sans-serif !important;
}

button:hover,
.govuk-button:hover {
  background: var(--resg-navy) !important;
}

/* Secondary button (Back) */
button.govuk-button--secondary {
  background: var(--resg-grey) !important;
  color: var(--resg-text) !important;
}

/* ---------------------------------------------------
      COMMITMENT BOX
----------------------------------------------------- */
.commitment-box {
  border: 2px solid var(--resg-navy);
  border-radius: 6px;
  padding: 15px;
  background: #fff4c2; /* softer yellow contrast */
  margin-top: 1rem;
}

.commitment-box label {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--resg-text);
}

.commitment-box .note {
  font-size: 0.95rem;
  color: #333;
}

/* ---------------------------------------------------
      HINTS, WARNING TEXT, MISC
----------------------------------------------------- */
.hint-list {
  margin: 8px 0 16px;
  padding-left: 20px;
  color: #444;
}

.hint-list li {
  margin-bottom: 4px;
}

.warn {
  color: #cc0000;
  font-weight: bold;
  margin: 0.5rem 0 0.75rem;
}

.hidden {
  display: none !important;
}

.back-btn {
  margin-top: 1rem;
  display: inline-block;
}
