/* Existing CSS from your get_tutor.css file */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #eae7bc, #e3d794);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.form-container {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 2rem;
    box-sizing: border-box;
}

h2 {
    color: #1E3A8A; /* Dark blue for headings */
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center; /* Center align headings */
}

p {
    color: #6B7280; /* Grey for paragraph text */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6; /* Improve readability */
}

.progress-bar {
    background: #E5E7EB; /* Light grey for progress bar background */
    height: 6px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden; /* Ensure fill stays within bounds */
}

.progress-fill {
    background: #bc6cf2; /* Purple for progress fill */
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

label {
    display: block;
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500; /* Slightly bolder labels */
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
.search-bar, /* Assuming .search-bar is similar */
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB; /* Light grey border */
    border-radius: 8px;
    font-size: 1rem;
    color: #374151; /* Darker text for inputs */
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Smooth transition for focus */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #bc6cf2; /* Purple border on focus */
    box-shadow: 0 0 0 2px rgba(188, 108, 242, 0.2); /* Subtle glow on focus */
    outline: none;
}


input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #bc6cf2; /* Purple for radio/checkbox accent */
}

/* Custom styling for radio and checkbox labels for better alignment and interactivity */
label input[type="radio"],
label input[type="checkbox"] {
    vertical-align: middle;
    position: relative;
    top: -1px;
}


select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236B7280" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem; /* Ensure space for arrow */
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease; /* Fade in animation for steps */
}

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


.form-buttons {
    display: flex;
    justify-content: space-between; /* Default for larger screens */
    margin-top: 1.5rem; /* More space above buttons */
    flex-wrap: wrap;
    gap: 0.75rem; /* Space between buttons if they wrap */
}

button.next, button[type="submit"].next { /* Apply to submit button as well */
    background: #b274f4; /* Lighter purple */
    color: #FFFFFF;
    padding: 0.85rem 1.75rem; /* Slightly larger padding */
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease; /* Smooth transition */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

button.next:hover, button[type="submit"].next:hover {
    background: #bc6cf2; /* Darker purple on hover */
    transform: translateY(-1px); /* Slight lift on hover */
}

button.prev, button.skip {
    background: none;
    border: none;
    color: #3B82F6; /* Blue for prev/skip */
    font-size: 1rem;
    cursor: pointer;
    padding: 0.85rem 1rem; /* Consistent padding */
    border-radius: 8px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

button.prev:hover, button.skip:hover {
    color: #b477ee; /* Purple on hover */
    background-color: rgba(180, 119, 238, 0.1); /* Faint purple background */
}


.badge {
    background: #b477ee; /* Purple badge */
    color: #FFFFFF; /* White text for badge */
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 500;
}

.trust-note { /* Not used in current HTML, but styled if added */
    color: #10B981; /* Green for trust notes */
    font-size: 0.75rem;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.search-bar { /* Style for search bar if used */
    background: #F3F4F6; /* Light grey background */
    border: 1px solid #E5E7EB; /* Consistent border */
    margin-bottom: 1rem;
}

.info-box {
    background: #f0eefc; /* Lighter purple background for info box */
    color: #433881; /* Darker purple text for info box */
    padding: 1rem; /* More padding */
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-left: 4px solid #bc6cf2; /* Purple accent border */
}

.subjects {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem; /* Gap between columns */
}

.column {
    flex: 1;
    /* margin-right removed, using gap instead */
}

.subjects label {
    margin-bottom: 0.75rem;
    display: flex; /* For better alignment of checkbox and text */
    align-items: center;
}

/* Input error styling */
input.error, select.error, textarea.error {
    border-color: #EF4444 !important; /* Red border for error */
    background-color: #FEE2E2; /* Light red background for error */
}
label.error-text {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: -0.5rem; /* Adjust spacing */
    margin-bottom: 0.5rem;
    display: block;
}


/* Styles for Success Message */
#successMessage {
    text-align: center;
    padding: 2rem 1rem; /* Responsive padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease; /* Re-use fadeIn animation */
}

#successMessage .smiley-icon {
    font-size: 4.5rem; /* Larger smiley */
    color: #bc6cf2;   /* Theme purple */
    margin-bottom: 1rem;
    line-height: 1; /* Ensure icon is not cut off */
}

#successMessage h2 {
    color: #1E3A8A;   /* Theme heading color */
    font-size: 1.75rem; /* Slightly larger for emphasis */
    margin-bottom: 0.75rem;
}

#successMessage p {
    color: #6B7280;   /* Theme paragraph color */
    margin-bottom: 0.75rem;
    max-width: 90%; /* Prevent text from being too wide */
}

#successMessage p.main-thanks {
    font-size: 1.1rem;
    font-weight: 600; /* Make it a bit more prominent */
    color: #374151; /* Slightly darker grey */
}

#successMessage p.sub-text {
    font-size: 0.95rem;
    line-height: 1.7; /* Better readability for longer text */
}

/* Optional: Styles for a "Submit Another Inquiry" button */
#submitAnother {
    margin-top: 1.5rem;
    background: #b274f4;
    color: #FFFFFF;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#submitAnother:hover {
    background: #bc6cf2;
    transform: translateY(-1px);
}


/* Responsive Design Adjustments */
@media (max-width: 600px) {
    body {
        /* align-items: flex-start; */ /* Already centered by flex */
        padding: 1rem 0; /* Vertical padding for body */
    }

    .form-container {
        max-width: 100%; /* Full width on small screens */
        margin: 1rem; /* Margin around container */
        padding: 1.5rem;
        border-radius: 12px;
    }

    h2 {
        font-size: 1.35rem; /* Adjusted heading size */
    }
    #successMessage h2 {
        font-size: 1.5rem;
    }


    p {
        font-size: 0.875rem; /* Slightly larger base paragraph text */
    }
    #successMessage p.main-thanks {
        font-size: 1rem;
    }
    #successMessage p.sub-text {
        font-size: 0.9rem;
    }


    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    .search-bar,
    textarea {
        padding: 0.65rem; /* Adjusted padding */
        font-size: 0.95rem; /* Adjusted font size */
    }

    select {
        background-position: right 0.65rem center;
        background-size: 10px 10px;
        padding-right: 2rem;
    }

    .form-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Make buttons full width */
    }

    button.next, button[type="submit"].next, button.prev, button.skip, #submitAnother {
        width: 100%; /* Full width buttons */
        padding: 0.85rem; /* Consistent padding */
        font-size: 0.95rem;
    }
    
    button.prev, button.skip {
        text-align: center; /* Center text for prev/skip when stacked */
    }


    .subjects {
        flex-direction: column; /* Stack subject columns */
    }

    .column {
        margin-right: 0;
        margin-bottom: 0.5rem; /* Space between stacked columns */
    }
    .column:last-child {
        margin-bottom: 0;
    }

    #successMessage .smiley-icon {
        font-size: 3.5rem;
    }
}

