:root {
    --primary-color: #5b4bf6;
    /* Vivid Purple from example */
    --primary-hover: #4c3de0;
    --background-dark: #1e1b4b;
    /* Deep Indigo */
    --background-gradient-start: #4c1d95;
    --background-gradient-end: #1e1b5b;
    --card-bg: #ffffff;
    --text-main: #334155;
    /* Slate 700 */
    --text-heading: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --input-bg: #f8fafc;
    --border-color: #e2e8f0;
    --info-box-bg: #eff6ff;
    /* Light blue for info box */
    --info-box-border: #bfdbfe;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--background-dark);
    background: linear-gradient(135deg, #4a3485 0%, #202060 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* Background visual effect (orb) */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

main {
    width: 100%;
    max-width: 800px;
    /* Bit narrower for that card look */
    position: relative;
}

.card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

h1,
h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-heading);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 75, 246, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

.info-box {
    background: var(--info-box-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
    margin-left: 0;
}

.info-box li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.info-box li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(91, 75, 246, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(91, 75, 246, 0.3);
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 3rem;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #e2e8f0;
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-heading);
    font-weight: 600;
}

/* Exam Styles */
.question-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.option-label:hover {
    background: white;
    border-color: var(--primary-color);
}

.option-label input[type="radio"] {
    width: auto;
    margin-right: 1rem;
}

.footer-copy {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3rem;
    font-size: 0.85rem;
}

/* Utility */
.hidden {
    display: none;
}

.fade-enter {
    animation: fadeIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GTranslate Wrapper */
/* GTranslate Wrapper */
.gtranslate_wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.gtranslate_wrapper img {
    cursor: pointer;
    transition: transform 0.2s;
}

.gtranslate_wrapper img:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .gtranslate_wrapper {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }
}