/* Importing a clean, modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --accent-color: #90e0ef;
    --text-dark: #2b2d42;
    --glass-bg: rgba(255, 255, 255, 0.85); /* Frosted glass transparency */
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* --- BACKGROUND & ANIMATION --- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    /* Calm Nature Background Image */
    background: url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?q=80&w=2574&auto=format&fit=crop') no-repeat center center fixed; 
    background-size: cover;
    position: relative;
}

/* Overlay to ensure text readability over the image */
body::before {
    content: '';
    /* CHANGED: Fixed position ensures the blur stays in place while scrolling */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(202, 240, 248, 0.4));
    z-index: -1;
    backdrop-filter: blur(4px); /* Subtle blur on the background image */
    -webkit-backdrop-filter: blur(4px);
}

.container {
    max-width: 850px;
    position: relative;
    z-index: 10;
}

/* CHANGED: Specific rule to move the logo down */
.container > img {
    margin-top: 3rem; /* Adjust this value to move logo further down */
}

/* --- GLASSMORPHISM CARD STYLE --- */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px); /* The Frost Effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

/* Smooth entry animation for cards */
.card.animate-entry {
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- PROGRESS BAR --- */
.progress-container {
    margin-bottom: 30px;
    padding: 0 20px; /* Add padding so text doesn't clip */
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
    max-width: 300px; /* Limit width for 2 steps */
    margin-left: auto;
    margin-right: auto;
}
.progress-steps::before {
    content: "";
    background-color: rgba(255, 255, 255, 0.5);
    height: 4px;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 5px;
}
.progress-bar-fill {
    background-color: var(--primary-color);
    height: 4px;
    width: 0%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.step-circle {
    background-color: #e0f7fa;
    border: 3px solid #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
    z-index: 3;
    transition: all 0.4s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: default;
}
.step-circle.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 119, 182, 0.5);
}
.step-circle.completed {
    background-color: var(--secondary-color);
    color: white;
}

/* --- FORM ELEMENTS --- */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
    border-color: var(--primary-color);
    background-color: #fff;
    transform: translateY(-1px);
}

/* --- QUESTION CARDS --- */
.question-card {
    background: linear-gradient(to right, #f8fcff, #ffffff);
    border: 1px solid #eef4f8;
    border-left: 5px solid var(--secondary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.question-card h6 {
    color: #023e8a;
    font-weight: 600;
    line-height: 1.5;
}

/* Custom Radio Buttons */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
    background: linear-gradient(45deg, #023e8a, var(--primary-color));
}

.btn-primary:active {
    transform: translateY(1px);
}

/* --- PRINT ADJUSTMENTS --- */
@media print {
    body { background: none; }
    .card { box-shadow: none; border: 1px solid #ddd; backdrop-filter: none; }
    .container { max-width: 100% !important; }
}

/* --- AUTO-HIDE SCROLLBAR (Appears only while scrolling) --- */

/* Works on desktop & mobile */
body {
    overflow-y: auto;
    scrollbar-width: thin;           
    scrollbar-color: transparent transparent;
}

/* Chrome, Edge, Safari */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0);    
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* Show scrollbar while user scrolls or hover */
body:hover::-webkit-scrollbar-thumb,
body:active::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);  
}

/* AUTO-HIDE SCROLLBAR FOR ALL SCROLLABLE ELEMENTS */
* {
    scrollbar-width: none !important; /* Firefox */
}

*::-webkit-scrollbar {
    width: 0px !important; /* Chrome, Edge, Safari */
}