/* Back button style */
.back-btn {
    margin-top: 16px;
    background: #f3eaff;
    color: #7c3aed;
    border: 1px solid #a59bd4;
    font-size: 1rem;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.back-btn:hover {
    background: #e5d9fc;
    color: #5025a2;
}
.submitted-data {
    background: #f8f8ff;
    border: 1px solid #d1d1e0;
    border-radius: 8px;
    margin: 2rem auto 1rem auto;
    padding: 1rem 2rem;
    max-width: 500px;
    color: #222;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#response3 {
    display: block !important;
    text-align: center;
    margin-top: 2rem;
    color: green !important;
    background: #fff;
    min-height: 120px;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* Ensure the form container has enough height for the thank you message */
.form-container {
    min-height: 300px;
}

/* Ensure thank you message is always visible and styled */
#response3 {
    display: block !important;
    text-align: center;
    margin-top: 2rem;
    color: green !important;
    background: transparent;
}
.thank-you {
    font-size: 1.5rem;
    color: green !important;
    font-weight: bold;
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: inline-block;
}
body {
    background: #efe6f7;
    margin: 0;
    font-family: 'Google Sans', Arial, sans-serif;
}
.form-container {
    background: #ffffff;
    border-radius: 8px;
    margin: 40px auto;
    padding: 0 0 32px 0;
    max-width: 550px;
    box-shadow: 0 2px 8px #bebebe;
}
h1 {
    background: #7c3aed;
    color: #fff;
    margin: 0;
    padding: 28px 0 12px 0;
    font-size: 2rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
}
.desc {
    margin: 0 0 18px 0;
    color: #4a4a4a;
    text-align: center;
    font-size: 1.05rem;
    padding: 0 30px;
}
.form-section {
    margin: 22px 26px;
}
.required-label {
    font-weight: bold;
    font-size: 1rem;
    color: #444;
}
.star {
    color: #c30000;
    font-size: 1.1em;
}
input[type="email"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    font-size: 1.06rem;
    padding: 8px 0 6px 0;
    margin-top: 8px;
    border: none;
    border-bottom: 2px solid #a59bd4;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
input[type="email"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-bottom: 2.5px solid #7c3aed;
}
.radio-group label {
    font-size: 1.06rem;
    cursor: pointer;
    display: block;
    margin: 8px 0;
}
.btn-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 26px;
    gap: 18px;
}
button[type="submit"] {
    margin-top: 16px;
    background: #7c3aed;
    color: #fff;
    border: none;
    font-size: 1rem;
    padding: 10px 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #5025a2;
}
.secondary-btn {
    margin-top: 16px;
    background: #f3eaff;
    color: #5025a2;
    border: 1px solid #a59bd4;
    font-size: 1rem;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.secondary-btn:hover {
    background: #e5d9fc;
}
.form-step {
    display: none;
}
.form-step.active, .form-step:target {
    display: block;
}
.form-section.highlighted {
    background: #ffffff;
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 16px 24px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
.section-title {
    background-color: #7c3aed;;
    color: #fff;
    padding: 10px 16px;
    font-size: 1.14rem;
    font-weight: bold;
    border-radius: 6px;
}
#response1, #response2 {
        text-align: center;
        color: green;
        margin-top: 10px;
        font-weight: 500;
}