/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Poppins:wght@400;600;700&display=swap');


/* --- CSS Variables (Color Palette) --- */
:root {
    --page-bg: #1F2028;
    --card-bg: #FFFFFF;
    --text-primary: #1F2028;
    --text-secondary: #5c5f6e;
    --border-color: #DDE2E8;
    --input-bg: #FFFFFF;
    --inactive-step: #E2E8F0;
    --option-pastel-bg: #F5F3FF;
    --option-pastel-border: #E2DFFF;
    --option-pastel-hover-bg: #E9E4FF;
    --option-pastel-text: #4A4A68;
    --primary-accent: #E13D8F;
    --secondary-accent: #8A4FFF;
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--page-bg);
    background-image: radial-gradient(circle, #4a4e69 0%, #22223b 100%);
    padding: 20px;
}

/* --- Main Quiz Container --- */
.quiz-container {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 500px;
    min-height: 580px; /* Adjusted height */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* NEW: Use flexbox to manage internal page layout */
    display: flex;
    flex-direction: column;
}

/* --- Page Transitions & Layout --- */
.page {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* NEW: Make pages take up full container height for vertical centering */
    flex-grow: 1; 
}
.page.active {
    /* NEW: Use flexbox to center content vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Progress Bar --- */
/* NEW: Hide the progress bar container */
#progress-container {
    display: none;
}

/* --- Typography --- */
h1, h2 {
    color: var(--text-primary);
    font-weight: 1200;
    margin-bottom: 10px;
}
h2 { font-size: 1.6em; }
p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* NEW: Style the custom title on the first page */
#welcome-page h1 {
    font-family: "Bangers", cursive;
    font-size: 3.5em; /* Much larger */
    line-height: 1.2;
    letter-spacing: 4px;
    margin-bottom: 15px;

    color: #a00354;
}

.privacy-link { font-size: 0.8em; }
a { color: var(--primary-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Buttons --- */
button {
    background-image: linear-gradient(90deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(225, 61, 143, 0.2);
    margin-top: 10px; 
}
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 61, 143, 0.3);
}

/* --- Form & Input Styling --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9em;
}
input[type="text"], input[type="date"], input[type="email"], select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}
input::placeholder { color: #9ca3af; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w.org/2000/svg' width='12' height='12' fill='%23333333'%3E%3Cpath d='M6 9L0 3h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
input:focus, select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(225, 61, 143, 0.2);
}

/* --- Question Options Styling --- */
.options {
    text-align: left;
    margin-bottom: 10px; 
}
.options label {
    display: block;
    background-color: var(--option-pastel-bg);
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid var(--option-pastel-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--option-pastel-text);
}
.options label:hover {
    background-color: var(--option-pastel-hover-bg);
    border-color: var(--secondary-accent);
    transform: translateX(5px);
}
.options input[type="radio"] { display: none; }
.options input[type="radio"]:checked + span {
    color: var(--primary-accent);
    font-weight: 600;
}
.options input[type="radio"]:checked + span::before { content: '▶ '; }

/* --- Styling for the Result Image --- */
#result-image {
    max-width: 200px;
    height: auto;
    margin: 15px 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: zoomIn 0.5s ease-in-out;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* === RESULT PAGE STYLING === */
#results-page {
  background-color: #ecabf2;   /* soft lavender-pink background */
  text-align: center;
  padding: 16px 10px;
  border-radius: 8px;
  color: #2d1a31;              /* soft dark plum text */
}

/* Result image style */
#results-page img {
  width: 350px;
  max-width: 85%;
  height: auto;
  display: block;
  margin: 20px auto;
  border: 6px solid white;     /* white border */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.8s ease;
}

/* Subtle fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Learn More button design */
.learn-more-btn {
  background: #ddd;
  color: #a34cb7;
  border: 2px solid #a34cb7;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
 margin-right: 20px;
 margin-right: 20px;

}

.learn-more-btn:hover {
  background: #a34cb7;
  color: white;
  box-shadow: 0 4px 12px rgba(163, 76, 183, 0.3);
  transform: scale(1.05);
}





/* Progress Bar Container */
#progress-container {
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
  width: 90%;
  max-width: 500px;
  position: relative;
}

/* The connecting line behind the steps */
#progress-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background-color: #d9f3ee; /* pastel green */
  border-radius: 10px;
  z-index: 0;
}

/* Each step (circle) */
.step {
  width: 20px;
  height: 20px;
  background-color: #cfe8e3;
  border-radius: 50%;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Active step color */
.step.active {
  background-color: #20c5a4; /* filled pastel color */
}

