/* style.css */

/* Basic reset & box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Gradient background for the entire page */
body {
  font-family: "Poppins", sans-serif;

  /* background: rgb(185 198 255); */
  color: #333;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Main container (card style) */
.form-container {
  /* background: #fff; */
  border-radius: 8px;
  width: 100%;
  max-width: 820px; /* Good size for tablet displays */
  display: flex;
  flex-direction: column;
}

.form-container .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* border-bottom: 2px solid #dadada; */
  padding: 24px;
  padding-top: 12px;
}
.form-container .header img {
  margin-bottom: 32px;
  width: 240px;
}
/* Headings */
h1,
h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Steps hidden by default; only .act11ive is shown */
.step {
  display: none;
  flex: content;
  flex: 1;
  padding: 24px;
}

.step.active {
  display: flex;
  flex-direction: column;
}

/* Labels and inputs */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #555;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  /* padding: 12px; */
  /* margin-bottom: 16px; */
  /* border: 1px solid #ccc; */
  border: none;
  outline: none;
  border-radius: 4px;
  font-size: 20px;
  transition: border-color 0.3s;
}

/* Red border for error inputs */
input.input-error {
  border-color: rgb(215 95 95);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  border-color: #f56c6c; /* Slight highlight on focus */
}

/* Checkbox list styling */
.question-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.question-list li {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.4;
}

/* Buttons area */

button {
  /* background: rgb(193 29 54);
  color: white;
  border: none;
  padding: 18px 42px;
  font-size: 24px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease; */
  /* width: 40%; */
}

button:focus {
  background: rgb(193 29 54);
  transform: translateY(-1px);
  overflow: hidden;
}

button:hover {
  background: rgb(193 29 54);
  transform: translateY(-1px);
  overflow: hidden;
}

/* Summary list (step 3) */
.summary-list {
  margin: 16px 0;
  padding: 0;
  list-style: none; /* Remove default bullets */
}

/* Each list item has a "card-like" background and custom bullet */
.summary-list li {
  position: relative;
  margin-bottom: 20px;
  padding: 24px 32px;
  background: rgb(235 235 235 / 30%);
  border-bottom: 2px solid #fbe494;
  color: #543f3f;
  font-size: 20px;
  transition: background 0.3s ease;
}

/* Custom bullet using a pseudo-element */
.summary-list li::before {
  content: "•"; /* Could also use an icon or emoji */
  position: absolute;
  left: 16px; /* Align with padding */
  top: 50%;
  display: none;
  transform: translateY(-50%);
  color: rgb(193 29 54); /* Bullet color */
  font-size: 24px; /* Slightly larger bullet */
}

/* Shift the text itself to avoid overlapping the bullet */
.summary-list li p,
.summary-list li span,
.summary-list li div {
  margin-left: 24px; /* Indent text so it doesn't overlap bullet */
}

/* Hover effect for better UX feedback */
.summary-list li:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Final result message */
.result-message {
  font-size: 28px;
  text-align: left;
  font-weight: 500;
  padding: 32px;
  border: 2px solid transparent;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.result-box h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #6a6969;
  font-weight: 600;
  text-align: center;
}

.result-box p {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.4;
  color: #b3b2b2;
  margin-bottom: 0;
}

/* Alert styles */
.alert-warning {
  background: #fcfcfc;
}

.main-result {
  margin-top: 20px;
  box-shadow: 0px 0px 5px 5px #e5e5e53d;
  border-radius: 30px;
}
.result-box {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-color: #f6f6f654;
}
.alert-success {
  background: #fcfcfc;
}

/* Icon size in the result message */
.result-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

/* =====================================
       CUSTOM CHECKBOX (checkbox-wrapper-13)
       ===================================== */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  .checkbox-wrapper-13 {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
    box-shadow: 0px 0px 10px 5px #f0eded91;
    border-radius: 12px;
    padding: 10px;
  }
  .checkbox-wrapper-13 input[type="checkbox"] {
    --active: white;
    --active-inner: #fff;
    --focus: 2px #fbe494;
    --border: #bbc1e1;
    --border-hover: #fbe494;
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-height: 21px;
    min-width: 21px;
    max-height: 21px;
    max-width: 21px;
    outline: none;
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    border-radius: 4px; /* Slightly rounded corners */
  }
  .checkbox-wrapper-13 input[type="checkbox"]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease),
      opacity var(--d-o, 0.2s);
  }
  .checkbox-wrapper-13 input[type="checkbox"]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  .checkbox-wrapper-13 input[type="checkbox"]:checked + label {
    color: black;
  }
  .checkbox-wrapper-13:has(> input[type="checkbox"]:checked) {
    background-color: transparent;
    outline: 2px solid #fbe494;
  }
}
.checkbox-wrapper-13 input[type="checkbox"]:disabled {
  --b: var(--disabled);
  cursor: not-allowed;
  opacity: 0.9;
}
.checkbox-wrapper-13 input[type="checkbox"]:disabled:checked {
  --b: var(--disabled-inner);
  --bc: var(--border);
}
.checkbox-wrapper-13 input[type="checkbox"]:disabled + label {
  cursor: not-allowed;
}
.checkbox-wrapper-13 input[type="checkbox"]:hover:not(:checked):not(:disabled) {
  --bc: var(--border-hover);
}
.checkbox-wrapper-13 input[type="checkbox"]:focus {
  box-shadow: 0 0 0 var(--focus);
}
.checkbox-wrapper-13 input[type="checkbox"]:not(.switch):after {
  opacity: var(--o, 0);
}
.checkbox-wrapper-13 input[type="checkbox"]:not(.switch):checked {
  --o: 1;
}
.checkbox-wrapper-13 input[type="checkbox"] + label {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  margin-bottom: 0px;
  width: 100%;
  padding: 12px 16px;
}
.checkbox-wrapper-13 label:focus {
  outline: 0;
  box-shadow: 0 0 0 var(--focus);
  /* background-color: rgb(135 196 255); */
}

.checkbox-wrapper-13 label:hover {
  outline: 0;
  box-shadow: 0 0 0 var(--focus);
  /* background-color: rgb(135 196 255); */
}

.checkbox-wrapper-13 input[type="checkbox"]:not(.switch):after {
  width: 5px;
  height: 9px;
  border: 2px solid #c32140;
  border-top: 0;
  border-left: 0;
  left: 7px;
  top: 3px;
  transform: rotate(var(--r, 20deg));
}
.checkbox-wrapper-13 input[type="checkbox"]:not(.switch):checked {
  --r: 43deg;
}

.checkbox-wrapper-13 * {
  box-sizing: inherit;
}
.checkbox-wrapper-13 *:before,
.checkbox-wrapper-13 *:after {
  box-sizing: inherit;
}

/* Error message styling for Step 1 fields */
.error-message {
  color: rgb(215 95 95);
  font-size: 18px;
  display: none; /* hidden by default */
  padding-top: 8px;
}

/* Responsive for tablets and smaller screens */
@media (max-width: 840px) {
  .form-container {
    border: none;
  }

  .question-list li {
    font-size: 18px;
  }
  input[type="text"],
  input[type="tel"],
  input[type="email"] {
    font-size: 20px;
  }
  /* button {
    font-size: 20px;
    padding: 16px 42px;
  } */
}

.form__group {
  position: relative;
  padding: 16px 0 0;
  margin-top: 16px;
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 1.5rem;
  color: #543f3f;
  /* padding: 10px; */
  background: transparent;
  transition: border-color 0.2s;
  font-weight: 400;
  min-height: 40px;
  border-radius: 16px;

  &::placeholder {
    color: transparent;
  }

  &:placeholder-shown ~ .form__label {
    font-size: 1.3rem;
    cursor: text;
    top: 26px;
    left: 10px;
    color: gray;
  }
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: #543f3f;
}

#step1 .register-form {
  border-radius: 24px;
  padding-top: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  #step1 .register-form {
    padding: 24px;
    padding-top: 0px;
  }
}

.title-form {
  font-size: 20px;
  color: gray;
}
.title-box {
  padding: 20px 26px;
  background-color: #fbe494;
  border-radius: 20px;
  display: flex;
  margin-bottom: 16px;
  gap: 14px;
  align-items: center;
}
.info-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 20px;
  font-size: 16px;
  font-weight: bold;
  color: gray;
  background-color: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  border: 2px solid gray;
}
.main-step2 {
  display: flex;
  padding: 16px 26px;
  flex-direction: column;
  background-color: #f8f8f8a8;
  border-radius: 20px;
}

.input-box {
  border: 2px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  position: relative;
}

legend {
  font-size: 20px;
  font-weight: bold;
  padding: 8px;
  color: #c11d36;
}

/* input {
  width: 100%;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 16px;
} */

.buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding: 10px 20px;
  z-index: 100;
  height: 100%;
  gap: 30px;
}

/* Base button styles */
.btn {
  height: 60px;
  width: 180px;
  padding: 18px 50px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  outline: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.btn {
  background-color: #f0f0f0;
  color: #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #d3d3d3;
  transform: translateY(-2px);
}

.btn-back {
  background-color: #ffcc00;
  color: white;
}

.btn-back:hover {
  background-color: #e6b800;
}

.btn-confirm {
  background-color: #4caf50;
  color: white;
}

.btn-confirm:hover {
  background-color: #45a049;
}

.btn-confirm:disabled {
  background-color: #a5d6a7;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-back:disabled {
  background-color: #e0e0e0;
  color: #b0bec5;
  cursor: not-allowed;
  box-shadow: none;
}
.checkboxes {
  margin-top: 0px;
}

.checkbox-wrapper {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.6;
}

.checkbox-wrapper label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #333;
}

.styled-checkbox {
  appearance: none;
  min-width: 28px;
  min-height: 28px;
  max-height: 28px;
  max-width: 28px;
  border: 2px solid #ccc;
  border-radius: 6px;
  position: relative;
  margin-top: 6px;
  transition: border 0.2s ease, background 0.2s ease;
}

.styled-checkbox:checked {
  background-color: #4caf51;
  border-color: #4caf51;
}

.styled-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-third-step span {
  font-size: 20px;
}
