/*
    Main Image
*/

.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 38rem;
    background-image: url("images/contact-main-image.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.main-image-text {
    text-align: center;
    color: var(--text-colour-light);
}

.main-image-text:first-child {
    font-size: 96px;
    font-size: 6rem;
    text-align: center;
    font-family: var(--motto-font);
    font-weight: var(--motto-weight);
}



/*
    Body
*/

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10%;
}

div[title="email-info-container"] {
    margin-top: 1rem;
}

div[title="input-forms-container"] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

div[title="sender-info"] {
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

div[title="message-input"] {
    width: 100%;
}

.contact-info .fa-fw {
    font-size: 2rem;
}

div[title="email-title"] {
    color: var(--input-border-colour);
    margin-top: 1rem;
}


/* 
    Input Fields    
*/

.form-group {
    position: relative;
    padding: 15px 0 0;
    margin-top: 10px;
    width: 50%;
}

.form-field {
    font-family: inherit;
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--input-border-colour);
    outline: 0;
    font-size: 1.3rem;
    color: var(--text-colour-dark);
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
}

.form-field::placeholder {
    color: transparent;
}

.form-field:placeholder-shown ~ .form-label {
    font-size: 1.3rem;
    cursor: text;
    top: 20px;
}

.form-label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: var(--input-border-colour);
}

.form-field:focus {
    border-color: var(--link-hover-colour);
    border-image-slice: 1;
}

.form-field:focus ~ .form-label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: var(--link-hover-colour);
    font-weight: 700;    
}

/* Reset input */
.form-field:required, .form-field:invalid {
    box-shadow: none;
}

button[title="send-message"] {
    align-self: flex-end;
    width: 120px;
    margin-top: 2rem;
}



/*
    Media Queries
*/

@media (min-width: 2560px) {

    /* Large screens (1440p, 4K, etc) */

    .main-image {
        background-image: url("images/contact-main-image-4K.jpg");
        height: 48rem;
    }
    
}

@media (max-width: 1600px) {

    .contact-container {
        margin: 5%;
    }

}

@media (max-width: 1350px) {

    .contact-container {
        flex-direction: column;
        
    }

}

@media (max-width: 600px) {

    .main-image-text:first-child {
        font-size: 64px;
        font-size: 4rem;
    }

}