:root {
    --color-primary: #7DAEF8;
    --color-secondary: #1146F5;
    --color-accent: #ff8f8f;
    --block-light: #fff;
    --block-grey: #e6e6e9;
    --border-radius: 20px;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Typography */

body {
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.link {
    color: var(--color-secondary);
    display: inline-block;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.link:hover {
    color: var(--color-primary);
}

.link:hover::after {
    transform: scaleX(1);
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .page-header {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 428px) {
    .page-header {
        margin-bottom: 15px;
    }
}

/* Blocks */

.block,
.block--grey {
    padding: 24px;
}

.block {
    background: var(--block-light);
}

.block--grey {
    background: var(--block-grey);
}

.block--background {
    background-image: url('../images/road.webp');
    background-size: cover;
    background-position: center;
    padding: 20px 0;
}

.full-page-block {
    min-height: 90vh;
}

@media screen and (max-width: 1024px) {
    .block--background {
        background-image: url('../images/roadmedium.webp');
    }
}

@media screen and (max-width: 768px) {
    .block,
    .block--grey {
        padding: 16px;
    }
}

@media screen and (max-width: 428px) {
    .block--background {
        background-image: none;
        background-color: var(--block-grey);
    }
}

@media screen and (max-width: 376px) {
    .block,
    .block--grey {
        padding: 12px;
    }
}

@media screen and (max-width: 324px) {
    .block,
    .block--grey {
        padding: 10px;
    }
}

/* Cards */

.card {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px #acacac;
    background: var(--block-light);
    padding: 20px;
}

.card--gradient {
    padding: 40px;
    background: linear-gradient(to bottom right, rgba(125, 174, 248, 0.1), white 30%, white 70%, rgba(125, 174, 248, 0.1));
}

@media screen and (max-width: 768px) {
    .card {
        box-shadow: 0 0 5px #acacac;
    }

    .card--gradient {
        padding: 30px;
    }
}

@media screen and (max-width: 428px) {
    .card--gradient {
        padding: 20px;
    }
}

@media screen and (max-width: 324px) {
    .card--gradient {
        padding: 15px;
    }
}

/* Forms */

label {
    display: block;
    margin: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    padding: 5px 8px;
    transition: all 0.3s;
    margin-bottom: 15px;
    background-color: #f7f7f7;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea {
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--color-secondary);
    outline: 0;
}

textarea {
    resize: none;
    height: 200px;
}

.form-container {
    max-width: 500px;
    margin-top: 60px;
    opacity: 0.9;
}

.form {
    margin-top: 10px;
    padding: 0;
}

.form-image {
    height: 80px;
}

.form-field {
    padding: 0 50px;
    width: 100%;
}

.pw-reset {
    margin-bottom: 10px;
}

.signup-link, .login-link {
    margin-top: 40px;
    text-align: center;
}

.error-text {
    color: #c50000;
}

@media screen and (max-width: 1199px) {
    .form-field {
        padding: 0 40px;
    }
}

@media screen and (max-width: 1024px) {
    .form-field {
        padding: 0 30px;
    }
}

@media screen and (max-width: 768px) {
    .form-container {
        max-width: 360px;
    }

    .form {
        margin-top: 15px;
    }

    .form-image {
        height: 70px;
    }

    .signup-link, .login-link {
        margin-top: 30px;
    }
}

@media screen and (max-width: 428px) {
    .form-container {
        max-width: 300px;
    }

    .form-image {
        height: 60px;
    }

    .form-field {
        padding: 0 20px;
    }

    .signup-link, .login-link {
        margin-top: 20px;
    }
}

@media screen and (max-width: 376px) {
    .form-container {
        max-width: 260px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        margin-bottom: 8px;
    }

    .form {
        margin-top: 10px;
    }

    .form-field {
        padding: 0;
    }
}

@media screen and (max-width: 324px) {
    .form-container {
        max-width: 240px;
    }
}

/* Buttons */

.auth-button {
    background: var(--color-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 0 5px #acacac;
    color: var(--block-light);
    margin-right: 10px;
    overflow: hidden;
    padding: 10px 20px;
    position: relative;
    text-align: center;
    width: 160px;
    height: 45px;
}

.auth-button:hover {
    color: var(--block-light);
}

.auth-button::before {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    background: radial-gradient(var(--block-light), transparent, transparent);
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: 0.3s, top 0s, left 0s;
}

.auth-button:hover::before {
    opacity: 0.7;
}

#logoutBtn {
    color: var(--block-light);
}

.btn-container {
    padding: 10px 0;
}

a.blue-button,
a.red-button,
.blue-button,
.red-button {
    border-radius: 10px;
    color: #000;
    display: inline-block;
    line-height: 1.4;
    margin: 0 7px;
    padding: 10px 20px;
    width: 120px;
    box-shadow: 0 0 6px #acacac;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.blue-button {
    background-color: var(--color-primary);
}

.red-button {
    background-color: var(--color-accent);
}

.blue-button:hover,
.red-button:hover {
    color: var(--block-light);
}

.blue-button:hover {
    background-color: var(--color-secondary);
}

.red-button:hover {
    background-color: #c50000;
}

.blue-button > span,
.red-button > span {
    position: absolute;
    background: #000;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
    border-radius: 50%;
    animation: ripple 0.6s linear infinite;
}

.logout-btn {
    text-align: center;
    color: #000;
}

@keyframes ripple {
    0% {
        height: 0;
        width: 0;
        opacity: 0.7;
    }

    100% {
        height: 400px;
        width: 400px;
        opacity: 0;
    }
}

@media screen and (max-width: 992px) {
    .auth-button {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    a.blue-button,
    a.red-button,
    .blue-button,
    .red-button {
        margin: 0 5px;
        padding: 5px 10px;
        width: 100px;
    }
}

@media screen and (max-width: 428px) {
    a.blue-button,
    a.red-button,
    .blue-button,
    .red-button {
        width: 90px;
    }
}

@media screen and (max-width: 324px) {
    a.blue-button,
    a.red-button,
    .blue-button,
    .red-button {
        width: 80px;
    }
}

/* Grids */

@media (max-width: 1199px) {
    .col-md-4, .col-md-8 {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .col-md-4, .col-md-8 {
        width: 100%;
    }
}

/* Base template */
/* Navbar */

.navbar {
    border-bottom: 1px solid rgb(197, 197, 197);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-logo {
    width: 100px;
    height: auto;
    transition: opacity 0.3s;
}

.brand-logo:hover {
   opacity: 0.5;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-text p {
    margin: 0;
    font-size: 20px;
    color: var(--color-secondary);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: 1.3;
    transition: color 0.3s;
}

.brand-text p:hover {
    color: var(--color-primary);
}

#navbarText .navbar-nav {
    display: flex;
    align-items: center;
}

#navbarText .navbar-nav .nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px;

}

#navbarText .navbar-nav .nav-link.active {
    border: 2px solid rgba(125, 174, 248, 0.5);
    border-radius: 5px;
    font-weight: bold;
}

#navbarText .navbar-nav .nav-link span {
    display: inline-block;
    position: relative;
}

#navbarText .navbar-nav .nav-link span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#navbarText .navbar-nav .nav-link:not(.active):hover span::after {
    transform: scaleX(1);
}

#navbarText .nav-item .auth-link {
    color: var(--color-secondary);
    text-align: left;
    display: none;
}

@media screen and (max-width: 992px) {
    #navbarText .navbar-nav {
        align-items: flex-start;
    }

    #navbarText .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(125, 174, 248, 0.3);
        width: 100%;
    }

    #navbarText .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    #navbarText .navbar-nav .nav-link {
        display: block;
        padding: 0.5rem 1rem;
    }

    #navbarText .navbar-nav .nav-item .active {
        border: none;
    }
}

@media screen and (max-width: 768px) {
    .brand-logo {
        width: 80px;
    }

    .brand-text p {
        font-size: 16px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 428px) {
    .brand-logo {
        width: 70px;
    }

    .brand-text {
        margin-left: 5px;
    }

    #navbarText .navbar-nav .nav-link {
        display: block;
        padding: 0.5rem;
    }

    #navbarText .nav-item .auth-link, body {
        font-size: 14px;
    }
}

@media screen and (max-width: 324px) {
    .brand-logo {
        width: 60px;
    }

    .brand-text p {
        font-size: 14px;
        line-height: 1.1;
    }

    #navbarText .navbar-nav .nav-link {
        display: block;
        padding: 0.5rem 0.25rem;
    }

    #navbarText .nav-item .auth-link, body {
        font-size: 12px;
    }
}

/* Messages */

[data-alert] {
    animation: fadeOut 5s linear forwards;
    animation-delay: 2s;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 400px;
    z-index: 10;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    [data-alert] {
        width: 300px;
    }

    .alert {
        padding: 8px;
    }
}

@media screen and (max-width: 768px) {
    .alert {
        font-size: 14px;
    }
}

@media screen and (max-width: 376px) {
    [data-alert] {
        width: 240px;
    }

    .alert {
        font-size: 12px;
    }
}

/* Modals */

.modal-content {
    border: solid 2px #000;
    border-radius: var(--border-radius);
}

.modal-title {
    font-weight: bold;
}

.modal-header {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.modal-header,
.modal-body {
    background-color: var(--block-grey);
    border-bottom: solid 1px rgba(0, 0, 0, 0.2);
}

.modal-footer {
    background-color: var(--block-grey);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* Footer */

footer {
    background-color: var(--color-primary);
    color: #000;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 8px;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-legal-link {
    color: rgba(0, 0, 0, 0.4);
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-legal-link:hover {
    color: rgba(0, 0, 0, 0.9);
}

.footer-legal-link:hover::after {
    transform: scaleX(1);
}

footer i {
    color: rgba(0, 0, 0, 0.6);
    margin-left: 10px;
    font-size: 20px;
}

@media screen and (max-width: 768px) {
    .footer-text {
        font-size: 14px;
    }

    footer i {
        padding-left: 5px;
        font-size: 16px;
    }
}

@media screen and (max-width: 428px) {
    .footer-legal-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-text {
        font-size: 12px;
    }

    footer i {
        margin-left: 5px;
        font-size: 14px;
    }
}

@media screen and (max-width: 376px) {
    footer {
        display: flex;
        justify-content: center;
    }

    .footer-text {
        max-width: 200px;
        margin: 0 auto;
        display: block;
        box-sizing: content-box;
    }
}

/* Terms & Conditions page template */

.terms-bg {
    position: relative;
}

.terms-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.terms-bg .container {
    position: relative;
    z-index: 1;
}

.terms-container {
    max-width: 860px;
}

.terms-card {
    max-height: 75vh;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    background: #fff;
}

.terms-section {
    margin-bottom: 1.25rem;
}

.terms-list,
.terms-contact-list {
    padding-left: 1.25rem;
}

.terms-contact-list {
    list-style: none;
    padding-left: 0;
}

.terms-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

/* Home page template */

.block--home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../images/home-background.webp');
    background-size: cover;
    background-position: center;
}

.overlay {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s;
}

.overlay.active {
    opacity: 1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: var(--border-radius);
}

.hero-content > h1 {
    font-weight: bold;
}

.hero-content > p {
    font-size: 20px;
    margin: 0;
}

.hero-content > a {
    margin: 10px 0;
}

@media screen and (max-width: 768px) {
    .block--home {
        background-image: url('../images/home-background-medium.webp');
    }
}

@media screen and (max-width: 428px) {
    .block--home {
        background-image: url('../images/home-background-small.webp');
    }

    .hero-content > h1 {
        font-size: 24px;
    }

    .hero-content > p {
        font-size: 14px;
    }
}

@media screen and (max-width: 376px) {
    .hero-content {
        padding: 10px;
    }
}

.hero-content--404 {
    width: 420px;
}

@media screen and (max-width: 428px) {
    .hero-content--404 {
        width: 85%;
    }
}

/* Reviews, review form and review details template */

.about-picture {
    border-radius: var(--border-radius);
    object-fit: cover;
    object-position: center;
}

.average-rating {
    font-size: 24px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: var(--color-secondary);
}

.review-card {
    background: linear-gradient(to bottom right, rgba(125, 174, 248, 0.3) 10%, white, rgba(125, 174, 248, 0.3) 90%);
    height: 200px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.review-card:hover {
    transform: scale(1.05);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transition: 0.3s;
}

.review-card:hover::before {
    left: 100%;
}

.review-author {
    font-size: 20px;
    color: #000;
}

.small-author-date,
.small-author-date--faded {
    font-size: 16px;
}

.small-author-date {
    color: rgba(0, 0, 0, 0.6);
}

.small-author-date--faded {
    color: rgba(0, 0, 0, 0.2);
}

.icon-container-small {
    margin: 20px 0;
}

.review-card-header {
    font-size: 32px;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.review-header-text {
    display: inline-block;
    margin-left: 10px;
}

.author-date {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    font-size: 24px;
}

.author-date--faded {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.4);
    font-size: 18px;
}

.review-detail-stars {
    display: inline-block;
    padding-right: 20px;
}

.comment-icon-container,
.comment-icon-container-small {
    display: inline-block;
    padding: 0 10px;
    margin: 0;
    color: #000;
}

.comment-icon-container {
    font-size: 24px;
}

.comment-icon-container-small {
    font-size: 18px;
}

.comment-icon-container > i,
.comment-icon-container-small > i {
    color: rgba(0, 0, 0, 0.4);
}

.like-icon-container,
.like-icon-container-small {
    display: inline-block;
    padding: 0 10px;
    margin: 0;
    color: #000;
}

.like-icon-container {
    font-size: 24px;
}

.like-icon-container-small {
    font-size: 18px;
}

.like-icon-container i,
.like-icon-container-small i {
    color: var(--color-accent);
    transition: all 0.3s;
}

.like-icon-container button {
    background-color: transparent;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--color-accent); }
    100% { transform: scale(1); }
}

.like-icon-container:hover .animate {
    animation: pulse 1s infinite;
    color: #c50000;
}

.review-content {
    border: 2px solid #e4e4e4;
    background-color: #f7f7f7;
    border-radius: 10px;
    font-size: 24px;
    padding: 10px 20px;
    margin-top: 20px;
    width: 100%;
}

.comment-container, #commentForm {
    margin: 20px 40px;
}

.comment-prompt, .post-author {
    margin: 0 40px;
}

.comment-author {
    font-size: 20px;
}

.comment-content {
    border: 2px solid #e4e4e4;
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 10px 20px;
    width: 100%;
}

.comment-prompt {
    margin-top: 20px;
}

@media screen and (max-width: 1200px) {
    .review-card-header {
        font-size: 24px;
    }

    .author-date {
        font-size: 18px;
    }

    .author-date--faded {
        font-size: 16px;
    }
}

@media screen and (max-width: 1024px) {
    .review-card-container.col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .comment-icon-container,
    .like-icon-container {
        font-size: 18px;
    }

    .review-content {
        font-size: 21px;
    }
}

@media screen and (max-width: 992px) {
    .review-card-header {
        font-size: 18px;
    }

    .author-date {
        font-size: 14px;
    }

    .author-date--faded {
        font-size: 12px;
    }

    .comment-container, #commentForm {
        margin: 15px 30px;
    }
    
    .comment-prompt, .post-author {
        margin: 0 30px;
    }

    .comment-prompt {
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .review-card-container.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .review-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .review-header-text {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
    }

    .author-date {
        margin-left: 10px;
    }

    .comment-icon-container,
    .like-icon-container,
    .comment-icon-container-small,
    .like-icon-container-small {
        padding: 0 5px;
    }

    .review-content {
        font-size: 18px;
    }

    .comment-author {
        font-size: 16px;
    }

    .comment-container, #commentForm {
        margin: 10px 20px;
    }
    
    .comment-prompt, .post-author {
        margin: 0 20px;
    }

    .comment-prompt {
        margin-top: 20px;
    }
}

@media screen and (max-width: 428px) {
    .average-rating {
        font-size: 18px;
    }

    .review-card {
        height: 280px;
    }

    .review-card-header--small {
        flex-direction: column;
    }

    .review-header-text-small {
        margin-top: 15px;
    }

    .review-author {
        margin-top: 20px;
        font-size: 16px;
    }

    .small-author-date--faded,
    .small-author-date {
        font-size: 12px;
    }

    .review-card-header {
        flex-direction: column;
        font-size: 16px;
    }

    .review-header-text {
        margin-top: 15px;
        margin-left: 0;
    }

    .icon-container,
    .icon-container-small {
        flex-direction: column;
    }

    .icon-container-small {
        margin: 0 0 10px 0;
    }

    .review-detail-stars {
        padding: 0;
    }

    .review-content {
        font-size: 16px;
        padding: 8px 16px;
    }

    .comment-author {
        font-size: 14px;
    }

    .comment-container, #commentForm {
        margin: 5px 10px;
    }
    
    .comment-prompt, .post-author {
        margin: 0 10px;
    }

    .comment-prompt {
        margin-top: 20px;
    }
}

@media screen and (max-width: 376px) {
    .review-card-header {
        font-size: 14px;
    }
}

@media screen and (max-width: 324px) {
    .review-content {
        font-size: 14px;
        padding: 5px 10px;
    }
}

/* Appointments template */

[data-url] {
    height: 720px;
    min-width: 320px;
}

.small-screen-container {
    display: none;
    padding: 20px;
}

@media screen and (max-width: 376px) {
    [data-url] {
        display: none;
    }

    .small-screen-container {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* User profile */

.profile-image {
    width: 300px;
    height: 300px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    object-fit: cover;
    object-position: center;
}

.profile-info {
    font-size: 120%;
    font-weight: bold;
    padding: 5px 0;
    margin: 0;
}

.profile-content {
    border: 2px solid #e4e4e4;
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 10px 20px;
}

.profile-content > p {
    margin: 0;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.pending-approval {
    color: rgba(0, 0, 0, 0.6);
}

#remove_picture + label {
    display: inline-block;
}

@media screen and (max-width: 428px) {
    .profile-image {
        width: 200px;
        height: 200px;
        margin: 10px 0;
    }
}

@media screen and (max-width: 324px) {
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0;
    }
}

/* User profiles template for all users */

.search-form-container {
    width: 500px;
    margin: 0 auto;
    background: linear-gradient(to right, rgba(125, 174, 248, 0.4) 10%, white, rgba(125, 174, 248, 0.4) 90%);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 10px 20px;
}

.search-field-label {
    font-size: 120%;
    font-weight: bold;
}

.search-field {
    width: 100%;
}

.profile-image-container {
    height: 300px;
}

.profile-card {
    opacity: 0.7;
    border: none;
    box-shadow: 0 0 10px #acacac;
    transition: opacity 0.3s, box-shadow 0.3s;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.profile-card:hover {
    opacity: 1;
    box-shadow: 0 0 20px #acacac;
    border: 2px solid var(--color-secondary);
}

.profile-images {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-text {
    bottom: 0;
    color: white;
    position: absolute;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    height: 50px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
}

.pagination .pagination-button {
    width: 50px;
    height: 50px;
    padding: 5px;
    margin: 5px;
}

.pagination .pagination-button.active {
    color: var(--block-light);
    background-color: var(--color-secondary);
}

@media screen and (max-width: 1399px) {
    .profile-image-container {
        height: 280px;
    }
}

@media screen and (max-width: 1199px) {
    .profile-image-container {
        height: 260px;
    }
}

@media screen and (max-width: 991px) {
    .profile-image-container.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .search-form-container {
        width: 300px;
    }

    .profile-image-container {
        height: 240px;
    }
}

@media screen and (max-width: 580px) {
    .profile-image-container.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .profile-image-container {
        height: 360px;
        display: flex;
        justify-content: center;
    }

    .profile-card {
        width: 80%;
    }
}

@media screen and (max-width: 428px) {
    .pagination .pagination-button {
        width: 40px;
        height: 40px;
        padding: 3px;
        margin: 3px;
    }
}

@media screen and (max-width: 376px) {
    .search-form-container {
        width: 200px;
    }

    .profile-image-container {
        height: 300px;
    }

    .profile-card {
        width: 100%;
    }
}

/* Contact page template */

.formspree-notice {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
}

.contact-form h1 {
    font-size: 24px;
    font-weight: bold;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.form-fields > .form-field {
    padding: 0 30px;
}

.form-field:nth-child(5) {
    grid-column: span 2;
}

.contact-info {
    height: 100%;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
    color: var(--block-light);
    border: none;
}

.contact-info > h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    padding-left: 20px;
}

.contact-icon-info {
    font-size: 16px;
    margin: auto 0;
    padding-left: 20px;
}

.google-maps-container {
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.google-maps {
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 1399px) {
    .contact-icon-info {
        font-size: 14px;
    }
}

@media screen and (max-width: 1199px) {
    .form-fields > .form-field {
        padding: 0 20px;
    }
}


@media screen and (min-width: 992px) and (max-width: 1199px) {
    .col-lg-9 {
        flex: 0 0 66%;
        max-width: 66%;
    }

    .col-lg-3 {
        flex: 0 0 33%;
        max-width: 33%;
    }
}

@media screen and (max-width: 991px) {
    .contact-info {
        margin-top: 20px;
        height: 100%;
    }

    .google-maps-container {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .form-field:nth-child(5) {
        grid-column: span 1;
    }

    .form-fields {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 428px) {
    .form-fields > .form-field {
        padding: 0 10px;
    }

    .contact-icon {
        font-size: 18px;
    }

    .contact-icon-info {
        font-size: 14px;
        padding-left: 10px;
    }
}

@media screen and (max-width: 376px) {
    .form-fields > .form-field {
        padding: 0 5px;
    }
}

@media screen and (max-width: 324px) {
    .contact-icon {
        font-size: 16px;
    }

    .contact-icon-info {
        font-size: 12px;
        padding-left: 5px;
    }
}