/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --primary-color: #007bff;      /* The primary blue color */
  --background-color: #f0f2f5;   /* A light, neutral background */
  --surface-color: #ffffff;      /* The card background */
  --text-color: #333;
  --text-color-light: #666;
  --border-color: #e0e0e0;
  --step-inactive-color: #ccc;
  --font-family: 'Inter', sans-serif;
}

/* Base resets and Body styles */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: var(--font-family);
  background: var(--background-color);
  color: var(--text-color);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Main Container to center and constrain the form */
.main-container {
  max-width: 520px;
  width: 100%;
}

form {
  background: var(--surface-color);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  overflow: hidden; 
  position: relative;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Step counter */
.step-counter {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto 2rem;
}

.step-counter::before, .step-counter::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--step-inactive-color);
  left: 1.5rem;
  right: 1.5rem;
}

.step-counter::after {
  width: var(--step-progress, 0%);
  background: var(--primary-color);
  transition: width 0.4s ease-in-out;
  left: 0;
  right: auto;
}

.step-counter .step {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface-color);
  border: 2px solid var(--step-inactive-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--step-inactive-color);
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  cursor: default;
}

/* == CHANGED ==
   Combined the styles for .completed and .active states for consistency.
*/
.step-counter .step.completed, 
.step-counter .step.active { 
  cursor: pointer;
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* The active step is now only different by its size. */
.step-counter .step.active {
  transform: scale(1.15);
}

/* Form step animations */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.form-step-active {
  display: block;
}

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

/* Custom Radio Button Styling */
fieldset { 
  border: none; 
}

fieldset label {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  font-size: 1rem;
  font-weight: 500;
}

fieldset label:hover {
  background-color: #f9f9f9;
  border-color: var(--primary-color);
}

fieldset input[type="radio"] {
  display: none; 
}

fieldset label::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  margin-right: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}

fieldset input[type="radio"]:checked + label {
  background-color: #e6f2ff;
  border-color: var(--primary-color);
  font-weight: 700;
}

fieldset input[type="radio"]:checked + label::before {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
}

/* Result Display */
#resultDisplay {
  text-align: center;
  animation: fadeIn 0.5s;
}

#resultDisplay h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
}

#resultDisplay p {
  font-size: 1rem;
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.video-container {
    margin: 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
    background: #000;
    aspect-ratio: 4 / 5;
}

.video-container video {
  display: block;
  width: 100%;
  height: 100%; 
}

.testimonial {
  background: #f7f9fc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: center;
}

.stars {
  font-size: 1.5rem;
  color: #FFC700;
  margin-bottom: 0.5rem;
}

.quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0.5rem 0 1rem;
}

.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.author .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.author span {
  font-weight: 500;
  color: var(--text-color-light);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}


@media (max-width: 767px) {
    
 body {
    padding: 25px;
 }   
 
 form {
    padding: 25px;
}
    
}