/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 1s ease-in-out;
}

header, footer {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3em;
    color: #f5576c;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #555;
}

.introduction {
    margin-bottom: 40px;
}

.introduction h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #f093fb;
}

.introduction p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
}

form h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f093fb;
    text-align: center;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    height: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #f5576c;
    border-radius: 10px 0 0 10px;
    transition: width 0.4s ease;
}

#questions-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #fafafa;
}

.question {
    margin-bottom: 15px;
}

.question label {
    font-size: 1em;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.question label:hover {
    background-color: #fef2f2;
}

.question input {
    margin-right: 15px;
    transform: scale(1.2);
    cursor: pointer;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #f5576c;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: #d14670;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

#result {
    text-align: center;
    padding: 20px;
}

#result h2 {
    font-size: 2.5em;
    color: #f5576c;
    margin-bottom: 15px;
}

#result p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

#share-buttons {
    margin-bottom: 25px;
}

#share-buttons button {
    background: #4267B2; /* Facebook Blue */
    margin: 5px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 1em;
    transition: opacity 0.3s ease;
}

#share-buttons button:hover {
    opacity: 0.8;
}

#share-buttons button:nth-child(2) {
    background: #1DA1F2; /* Twitter Blue */
}

footer p {
    font-size: 0.9em;
    color: #777;
}

/* Scrollbar Styling */
#questions-container::-webkit-scrollbar {
    width: 8px;
}

#questions-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#questions-container::-webkit-scrollbar-thumb {
    background: #f5576c;
    border-radius: 10px;
}

#questions-container::-webkit-scrollbar-thumb:hover {
    background: #d14670;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px;
    }

    header h1 {
        font-size: 2.5em;
    }

    .introduction h2, form h2 {
        font-size: 1.8em;
    }

    .question label {
        font-size: 0.95em;
    }

    button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .introduction h2, form h2 {
        font-size: 1.5em;
    }

    .question label {
        font-size: 0.9em;
    }

    button {
        font-size: 1em;
        padding: 12px;
    }

    #share-buttons button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}
