main section:first-of-type p {
    margin-bottom: 0.3rem;
}
main h4 {
    font-style: italic;
    margin-bottom: 1rem;
    color: #005;
}
main h6 {
    font-style: italic;
    margin-bottom: 1.4rem;
}
main p+h4,
main ul+h4 {
    margin-top: 1rem;
}
main section:last-of-type p:last-of-type {
    margin-bottom: 2rem;
}
main ul {
    list-style-position: inside;
    padding-left: 1.2rem;
    margin-top: 0.3rem;
}
main p+ul {
    margin-top: 0.5rem;
}
main ul+p {
    margin-top: 1.2rem;
}
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
label {
    margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    resize: none;
}
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover {
    background-color: #0056b3;
}
.result-image {
    display: block;
    margin: 1rem auto;
    height: 60px;
}
.smaller-text {
    font-size: 0.8rem;
}
.result-message-header {
    text-align: center;
    margin-bottom: 2rem;
}
.page-buttons {
    text-align: center;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .result-image {
        height: 40px;
    }
}
@media (prefers-color-scheme: dark) {
    main h4 {
        color: #1186e2;
    }
    input[type="text"],
    input[type="email"],
    textarea {
        border: 1px solid #001b38;
        background-color: #43494d;
        color: #e6e6e2;
    }
    .btn{
        background-color: #222222;
    }
    .btn:hover {
        background-color: #444;
    }
}