
.home-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body {
    background: url("../images/under_construction.cb8e38fb23dc.png") no-repeat center center fixed;
}


h1 {
    color: whitesmoke;
    text-align: right;
    font-family: Arial, sans-serif;
    font-size: 3.5em;
    margin: 5% 5% 27px;
}

header p {
    color: whitesmoke;
    text-align: right;
    font-family: Arial, sans-serif;
    font-size: 2em;
    margin: 0 5%;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);    /* width: min(100%, 360px); */
    margin: 50px 5% 46px auto;
    padding: 28px;
    flex-direction: column;
    gap: 2rem;
    background: rgba(143, 37, 37, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    border-radius: 6px;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.65em;
    padding: 0.75em 0.3em;
}

.contact-form legend {
    color: whitesmoke;
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form label {
    color: rgba(245, 245, 245, 0.9);
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    /* width: 100%; */
    box-sizing: border-box;
    padding: 11px 12px;
    color: #1b1b1b;
    font-family: Arial, sans-serif;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;    
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 67px;
    height: stretch;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: whitesmoke;
}

.form-group span {
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.checkbox-option input[type="checkbox"] {
    appearance: none;
    width: 2px;
    height: 2px;
    margin: 0;
    padding: 6px;
    flex: 0 0 13px;
    background: whitesmoke;
    border: 1px solid whitesmoke;
    border-radius: 2px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    color: #571818;
    font-size: 18px;
    margin-top: -7px;
    margin-left: -6px;
    font-weight: 900;
    line-height: 11px;
    text-align: center;
}

.checkbox-option:has(input:checked) {
    background: rgba(255, 255, 255, 0.12);
}

.checkbox-option:has(input:checked) span {
    color: whitesmoke;
    font-weight: 700;
}

.contact-form button {
    align-self: flex-end;
    padding: 10px 18px;
    color: whitesmoke;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid whitesmoke;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
    color: #111;
    background: rgb(221, 221, 221);
}

.photo-credit {
    color: gray;
    text-align: right;
    font-family: Arial, sans-serif;
    font-size: 0.75em;
    margin: auto 5% 16px;
}

.photo-credit a {
    color: gray;
    text-decoration: none;
    font-weight: 600;
}

/* WARNING FORM MESSAGES *************************************/
.form-messages .messages {
    position: static;
    width: 100%;
    transform: none;
}

.form-messages .message {
    padding: 10px 12px;
    margin: 0;
    color: whitesmoke;
    background: transparent;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.form-messages .message-success {
    border-left-color: #7fbf91;
}

.form-messages .message-error {
    border-left-color: #ff8a8a;
}

.form-messages .message-warning {
    border-left-color: #e6c56b;
}

.form-messages .message-info {
    border-left-color: #9fb8c8;
}


/*** RESPONSIVE ***************************************************************/

@media (max-width: 1024px) {
    .contact-form {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        background-position: top left;
    }

    .contact-form {
        margin: 40px 5% 70px auto;
    }

    .photo-credit,
    .photo-credit a {
        color: rgb(219, 219, 219);
    }

}


@media (max-width: 566.98px) {

    .contact-form {
        width: auto;
    }

}


@media (max-width: 360px) {
    body {
        background-position: bottom right;
    }

    h1 {
        font-size: 2.5em;
        margin: 5% 5% 20px;
    }

    header p {
        font-size: 1.2em;
        margin: 0 5%;
    }

    .photo-credit {
        font-size: 0.5em;
    }
}