/* General Styles */
body,
html {
    height: 100%;
    /* Set the height of both body and html to 100% */
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Full viewport height */
}


/* Header Styles */
header {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    padding: 50px 0;
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
}

/* CTA Button Styles */
.start-test-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 50px auto;
    padding: 15px;
    font-size: 18px;
    text-align: center;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.start-test-btn:hover {
    background-color: #218838;
}

/* Main Content Styles */
main {
    padding: 40px 0;
    flex-grow: 1;
    padding: 20px;
}

h2,
h3 {
    font-weight: bold;
    margin-bottom: 20px;
}

p.lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Feature Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.feature-item strong {
    font-size: 1.2rem;
}

/* How To Section */
.how-to {
    margin-top: 60px;
}

.how-to ol {
    list-style: none;
    counter-reset: step;
}

.how-to li {
    counter-increment: step;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.how-to li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* Footer Section */
footer {
    background-color: #0056b3;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    position: relative;
    bottom: 0;

}

footer a {
    color: #fff;
    text-decoration: none;
}

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

.red {
    color: #dc3545;
}

/* Question Section */
.question-section {
    margin-bottom: 40px;
    text-align: center;
}

.question-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Button Styles */
.form-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.form-container button {
    padding: 15px 30px;
    font-size: 18px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #218838;
}

/* Button Styles */
.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 30px;
    font-size: 18px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    .form-container button {
        width: 100%;
    }
}

section.question-section,
section.result-section,
section.chatbot-section {
    background-color: white;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

section.result-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.site-header {
    background-color: #007bff;
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navibar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    z-index: 100;
}

.navbar-menu li {
    margin: 0 15px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

.navbar-menu a:hover {
    text-decoration: underline;
}

.green {
    color: #28a745;
}

.navbar-cta {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border-radius: 25px;
    text-decoration: none;
}

.navbar-cta:hover {
    background-color: #218838;
}

/* Responsive menu for mobile screens */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        /* Hide menu items by default on mobile */
        flex-direction: column;
        background-color: #007bff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    .navbar-menu.active {
        display: flex;
        /* Show menu items when active */
    }

    .navbar-menu li {
        margin: 15px 0;
        text-align: center;
    }

    .navbar {
        position: relative;
    }

    .hamburger {
        display: inline-block;
        cursor: pointer;
        color: white;
    }

    .hamburger .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }
}

.not-legal-advice {
    font-weight: bold;
}

section.chatbot-section {
    margin-top: 20px;
}

.chatbot-message {
    border-bottom: 1px solid #6e6e6e;
    margin-bottom: 20px;
}

.chatbot-message .actor {
    font-weight: bold;
}

.chatbot-messages .chatbot-message:last-child {
    border-bottom: none;
}

.chatbot-messages .assistant {
    padding-left: 20px;
}

.chatbot-section form {
    border-top: dashed;
    padding-top: 20px;
}

.chatbot-section input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #6e6e6e;
    border-radius: 5px;
    margin-bottom: 10px;
}