*, *:before, *:after{
	box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #081d30;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main > h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;

    img {
        width: 7rem;
        height: auto;
        vertical-align: middle;
    }
}

main > section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

main > .form-container {
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
}
.forms-list {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    
        li {
            margin-bottom: 1rem;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f9f9f9;

            a {
                display: flex;
                flex-direction: column;
                padding: 1rem;
                width: 100%;
                text-decoration: none;
                color: #081d30;

                &:hover {
                    background-color: #e0e0f0;
                }

                h3 {
                    margin: 0.5rem 0 1rem 0;
                    font-size: 1.5rem;
                    font-weight: bold;
                }

                p {
                    margin-top: 1rem;
                    margin-bottom: 0;
                }
                
            }
        }
        li:last-child {
            margin-bottom: 0;
        }
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form > p {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

form p> label {
    font-weight: bold;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fafafa;

    &:hover {
        background-color: #f0f0f0;
        
        &:focus {
            background-color: #e0e0e0;
        }
    }
}

form > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
}

form > fieldset {
    border: 0;
    padding: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    >legend {
        font-weight: bold;
        margin-bottom: 0.3rem;
    }
    >label {
        display: flex;
        flex-direction: row;
        align-items: center;

        >input {
            margin: 0 0.5rem;
        }

        >span {
            display: flex;
            flex-direction: column;

            .description {
                font-style: italic;
                color: #555;
            }
        }
    }
}

.consent > label {
    display: flex;
    flex-direction: row;

    > span {
        display: inline-block;
        font-size: 0.9rem;
    }

    > input {
        margin-right: 1rem;
    }
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

input[type="checkbox"] {
    transform: scale(1.5);
    padding: 10px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 1.5rem;

    &:hover {
        background-color: #45a049;
    }

    &:disabled {
        background-color: #ccc;
        color: #666;
        cursor: not-allowed;
        opacity: 0.5;
    }

    &:disabled:hover {
        background-color: #ccc;
    }
}

.blue-button {
    background-color: #659cef;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;

    &:hover {
        background-color: #4a8cd9;
    }
}


.flash {
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 4px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.flash.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.flash.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.flash.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.progress-bar {
    width: 100%;
    background-color: #00000000;
    padding: 3px;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
    margin: 0.3rem 0;
}

.progress-bar-fill {
    max-width: 100%;

    display: block;
    height: 22px;
    background-color: #659cef;
    border-radius: 3px;
    
    transition: width 500ms ease-in-out;
}

img {
    max-width: 100%;
    height: auto;
}

.button {
    display: block;
    text-align: center;
    background-color: #659cef;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;

    &:hover {
        background-color: #4a8cd9;
    }

    &:disabled {
        background-color: #ccc;
        color: #666;
        cursor: not-allowed;
        opacity: 0.5;
    }

    &:disabled:hover {
        background-color: #ccc;
    }
}

fieldset.response-section {
    padding: 0;
    border: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    .form-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    legend {
        font-weight: bold;
    }

    .checkbox-group {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
    }

    legend {
        padding: 0;
    }

    textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        resize: none;
    }

    label {
        display: flex;
        flex-direction: column;
    }
}

.ai-suggestion {
    li > div {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
    }
}

fieldset.response-section > fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 5px;

    label {
        display: flex;
        flex-direction: row;
    }
}

div.form-range-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    gap: 1rem;

    input[type="range"] {
        width: 100%;
        margin: 0;
    }
}