/* ================================
   General Form Container
================================= */
#rf-b2c-form {
  max-width: 1000px;
  padding: 15px;
  margin: auto;
  min-height: 80vh;
}

.rf-field {
  margin-bottom: 15px;
}
.rf-field label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.rf-field input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.rf-options {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 25px 0 0 0px;
}

/* ================================
   Buttons
================================= */
.rf-nav {
  padding: 40px 0 0px 0px;
  text-align: center;
  display: flex;
  flex-direction: column;   /* stack vertically */
  justify-content: center;
  align-items: center;
  margin: 0;
}
#rf-b2c-form .rf-next {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px; /* same as gap-3 */
  background: #008A69FF;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  width: 100%;
  font-weight: medium;
  font-size: 1.2rem;
  line-height: 1.15rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.rf-next svg {
  width: 1em;
    height: 1em;
    fill: currentColor;
}
#rf-b2c-form .rf-next:hover {
  opacity: 0.9;
}

#rf-b2c-form .rf-prev {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px; /* same as gap-3 */
  margin-top: 2.5rem; /* mt-10 */
  width: 100%;
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  color: #1f2937; /* text-gray-800 */
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: opacity 0.2s ease;
}
.rf-prev svg {
  width: 1em;
    height: 1em;
    fill: currentColor;
}
#rf-b2c-form .rf-prev:hover{
  opacity: 0.9;
}

/* ================================
   Radio & Checkbox Custom Styles
================================= */
.custom-radio,
.custom-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.custom-radio input,
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Radio */
.radio-mark {
  height: 22px;
  width: 22px;
  background-color: #eee;
  border-radius: 50%;
  border: 2px solid #008744;
  margin-right: 10px;
}
.custom-radio input:checked ~ .radio-mark {
  background-color: #008744;
}
.custom-radio .radio-mark:after {
  content: "";
  display: none;
  border-radius: 50%;
}
.custom-radio input:checked ~ .radio-mark:after {
  display: block;
}

/* Checkbox */
.check-mark {
  height: 22px;
  width: 22px;
  background-color: #eee;
  border: 2px solid #008744;
  border-radius: 4px;
  margin-right: 10px;
}
.custom-checkbox input:checked ~ .check-mark {
  background-color: #008744;
}
.custom-checkbox .check-mark:after {
  content: "";
  display: none;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateX(6px) translateY(-3px);
}
.custom-checkbox input:checked ~ .check-mark:after {
  display: block;
}

/* ================================
   Input Fields
================================= */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="phone"],
select {
  width: 100%;   
  color: black;    
  padding: 0.5rem 1rem;   
  margin-bottom: 15px;
  border: 2px solid #16a34a !important;
  border-radius: 0.75rem !important;
  font-size: 16px;
  transition: border 0.3s, box-shadow 0.3s;
  transition: box-shadow 0.2s;
  outline: none !important;   
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="phone"]:focus,
select:focus {
  box-shadow: 0 0 0 2px #4ade80;
}
/* ================================
   Progress Bar
================================= */
.rf-progress-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.rf-progress-label {
  font-size: 14px;
  margin-bottom: 5px;
}
.rf-progress-bar {
    flex: 1;
    margin: 0 1rem; /* mx-4 */
    background-color: #E5E7EB; /* gray-200 */
    border-radius: 9999px; /* rounded-full */
    height: 0.625rem; /* h-2.5 */
    overflow: hidden;
    transition: all 0.3s ease;
}
.rf-progress-fill {
    background-color: #45B39D; /* your accent color */
    height: 100%;
    width: 22.22%; /* dynamic width */
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ================================
   Results Box
================================= */
.rf-result {
  padding: 20px;
  background: #f1f1f1;
  border: 1px solid #ccc;
  margin-top: 20px;
  font-size: 16px;
}

.custom-box {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 1rem;
  border-width: 2px;
  border-style: solid;
  border-color: #e5e7eb;
  max-width: 100%;
  margin: 20px auto 20px auto; 
}
/* ================================
   Questions
================================= */
.rf-question-block {
  text-align: center;
}
.rf-question {
  font-size: 1.5rem;
  line-height: 2.25rem;
  text-align: center;
  font-weight: 500;
}

.mandatory-msg {
  color: #ef4444;           /* text-red-500 */
  font-size: 0.875rem;      /* text-sm */
  text-align: center;       /* text-center */
  background-color: #d1fae5;/* bg-green-200 */
  border-radius: 0.5rem;    /* rounded-lg */
  opacity: 0.9;             /* opacity-90 */
  width: 100%;
  margin: 10px auto 10px auto; /* mt-4 mx-auto */
}
.mandatory-msg .msg {
  padding: 0.25rem 0.5rem;
  margin: 0 auto 25px auto; /* mt-4 mx-auto */
}
.rf-verification {
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
  font-family: Arial, sans-serif;
}

.rf-verification h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.rf-verification p {
  font-size: 15px;
  color: #444;
}

.rf-otp-inputs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.rf-otp-inputs input {
  width: 60px;
  height: 70px;
  font-size: 32px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.rf-otp-inputs input:focus {
  border-color: #009b72;
}

.rf-alt-option {
  font-size: 14px;
  margin: 20px 0;
}

.rf-alt-option a {
  color: #009b72;
  text-decoration: none;
}

.rf-alt-option a:hover {
  text-decoration: underline;
}

.rf-submit {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  background: #009b72;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.rf-submit:hover {
  background: #007a58;
}

.rf-prev {
  margin-top: 20px;
}

.rf-prev a {
  color: #222;
  font-size: 15px;
  text-decoration: none;
}

.completion-card {
  background: #008A69FF; /* Success green */
  color: #fff;
  padding: 50px 30px;
  border-radius: 20px;
  text-align: center;
  margin: 50px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.6s ease-in-out;
}

.checkmark-wrapper {
  margin-bottom: 25px;
}

.checkmark {
  width: 80px;
  height: 80px;
  stroke: #fff;
  stroke-width: 4;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #fff;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #fff;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

.completion-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 50px 0 25px 0;
  color: #fff!important;
}

.completion-card p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin: 0 auto;
}

/* Animations */
@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  #rf-b2c-form {
    padding: 40px;
  }
  .rf-question {
    padding-bottom: 25px;
  }
  .rf-options {
    padding: 30px 20px 0 20px;
  }
}

@media (min-width: 1024px) {
  .rf-options {
    padding: 40px 30px 0 30px;
  }
}
