:root {
    --bs-primary: #CC0000;
    --bs-secondary: #CC0000;
    --brand: #CC0000;
    --brand-dark: #990000;
    --bs-success: #198754;
    --color-light-bg: #d3d3d3;
    --color-footer: #ffffff;
    --color-heading: #CC0000;
    --color-dark-text: #CC0000;
    --text-body: #333333;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-light-bg);
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-home {
    color: var(--color-dark-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-heading);
    font-weight: 700;
}

main {
    flex: 1;
    padding: 2rem 0 3rem;
}

body.page-home main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

#splashScreen {
    position: fixed;
    inset: 0;
    background-color: var(--color-footer);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    text-align: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
    opacity: 1;
}

.splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

#splashScreen h3 {
    color: var(--bs-secondary);
    font-weight: 500;
}

.spinner-border {
    color: var(--bs-primary) !important;
    margin-top: 1.5rem;
}

body.loaded #splashScreen {
    opacity: 0;
    visibility: hidden;
}

.quiz-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.progress {
    height: 10px;
    margin-bottom: 2rem;
}

.progress-bar {
    background-color: var(--bs-primary);
}

.service-card {
    border: 2px solid #eee;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--bs-primary);
}

.service-icon {
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary), 0.25);
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    padding: 12px 28px;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #2756f3;
    border-color: #2756f3;
}

.btn-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.form-error {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.legal-hero {
    background-color: #ffffff;
    border-bottom: 4px solid var(--brand);
    padding: 2.5rem 1rem 2rem;
    text-align: center;
}

.legal-hero h1 {
    margin-bottom: 0.25rem;
}

.legal-hero .company {
    font-size: 0.95rem;
    color: #555555;
}

.legal-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 900px;
}

.legal-card h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
}

.legal-card h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: var(--brand-dark);
}

.legal-card p,
.legal-card li {
    color: #333333;
    line-height: 1.7;
}

.legal-card a {
    color: var(--brand);
}

.legal-intro {
    border-left: 4px solid var(--brand);
    background-color: #fafafa;
    padding: 0.85rem 1.1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.75rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.footer {
    background-color: var(--color-footer);
    color: var(--bs-secondary);
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer a {
    color: var(--bs-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    text-decoration: underline;
}

body.page-admin {
    background-color: #f8f9fa;
    flex-direction: row;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}
