﻿/*Hafa Samband byrjar hér og Css-ið fyrir hana*/

.contact-byggjum {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 50px;
    grid-row-gap: 20px;
    margin-top: 20px;
    align-items: center;
}


/* Large devices (laptops/desktops, 300px and up) */
@media only screen and (min-width: 300px) and (max-width: 1200px) {
    /* Add your CSS rules for large devices here */
    .contact-byggjum {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        grid-column-gap: 30px;
    }

        .contact-byggjum > div:nth-child(2) {
            grid-row: 1; /* Ensure the SVG appears above the text */
        }
}

@media only screen and (max-width: 1200px) {
    /* Add your CSS rules for large devices here */
    .contact-byggjum {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto; /* Let the rows adjust automatically */
        grid-row-gap: 20px;
    }

        .contact-byggjum > div:nth-child(2) {
            grid-row: 1; /* Ensure the SVG appears above the text */
        }
}


.contact-byggjum div {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.contact-byggjum h1 {
    color: var(--black-color);
    margin: 0 0 20px 0;
    font-size: 48px;
}

    .contact-byggjum h1 span {
        color: var(--primary-color)
    }

.contact-byggjum p {
    margin: 0 0 40px 0;
    font-size: 20px;
}


contact-form-container {
    padding: 40px 0px;
    display: grid;
    overflow: hidden;
}

@media (min-width: 600px) {
    .contact-form-content {
        width: 400px;
    }
}

.contact-form-content {
    position: relative;
    margin: 20px auto 0px;
}



.ContactSuccess {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 18px;
    position: absolute;
    opacity: 0;
    transform: translate(-200%, -50%);
    top: 50%;
    left: 50%;
    text-align: center;
}

.contact-form-content label {
    cursor: default;
}

.contact-form-details {
    display: flex;
    flex-direction: column;
    transform-origin: right center;
    gap: 16px;
}

    .contact-form-details > label div {
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        height: 30px;
    }

svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
    overflow: visible;
    box-sizing: content-box;
}

.contact-form-details svg {
    width: 20px;
    margin-right: 8px;
}

.contact-form-details > label > input, .contact-form-details > label > textarea {
    padding: 10px;
    width: 100%;
    border: 2px solid rgb(203, 213, 224);
    background: white;
    border-radius: 4px;
}


.contact-form-details input[type="text"]:focus {
    border-color: var(--secondary-color);
}



.contact-form-details > label > textarea {
    padding: 10px;
    width: 100%;
    border: 2px solid rgb(203, 213, 224);
    background: white;
    border-radius: 4px;
}

.contact-form-details button {
    display: inline-flex;
    background: rgb(51, 102, 204);
    border-radius: 1000px;
    color: rgb(247, 250, 252);
    padding: 10px 32px;
    cursor: pointer;
    border: none;
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 300ms;
    font-weight: 700;
    font-size: 14px;
}

.button-container {
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
}
/*---------------------------------------------------------------------------------------------------------*/
