/*  Developer: Angus
	  University ID: 
	  Function: CSS for the contacts page
*/

/* just a random comment to test smth */

.contact-us {
    background-size: 100px;
    background-position: center;
    padding: 25px;
    text-align: center;
}

body {
    display: flex;
    flex-direction: column;
}

/*contact us (big word)*/
.contact-us h1 {
    color: var(--text-primary);
    font-size: 60px;
    font-weight: 800;
    padding-top: 5px;
    padding-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 1px #ffffff;
    transition: 0.6s;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.contact-us h1:hover {
    transform: rotate(5deg);
    transition: transform 0.6s;
}

.contact-us p {
    opacity: 0;
}

.contact-us p {
    color: #dcdcdc;
    line-height: 36px;
    padding-top: 55px;
    transition: 600s;
}

.contact-us p:hover {
    opacity: 1;
    text-shadow: 0 0 1px #ffffff;
    transition: opacity 0.5s, text-shadow 0.3s;
}

/*
      contact-container
      */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2px;
}

.contact-container div {
    width: 31%;
    float: left;
}

/*map*/
.map-location {
    width: 33%;
    height: 545px;
    opacity: 0.7;
    margin-left: 2px;
    flex: 1;
}

.map-location:hover {
    opacity: 1;
    transition: opacity 0.3s;
}

/*
      contact-detail
      */
.contact-detail {
    height: 545px;
    background: #036060;
    border: 2px solid #036060da;
    border-radius: 40px;
    transition: background-color 0.3s, border-radius 0.7s;
    margin-left: 2px;
    padding-left: 20px;
    flex: 1;
}

.contact-detail h2 {
    color: #0d1811;
    padding-top: 5px;
    transition: background-color 0.3s;
}

.contact-detail p,
.contact-detail strong {
    color: #ccc;
    padding-top: 10px;
    margin: 3px 3px;
    transition: background-color 0.3s;
}

.contact-detail h2:hover {
    text-shadow: 0 0 2px #084141;
}

.contact-detail:hover {
    background-color: #036060da;
    border: 2px solid #036060;
    border-radius: 2px;
}
.contact-detail:hover h2 {
    color: #0d1811e0;
}

.contact-detail:hover p,
.contact-detail:hover strong {
    color: #ffffff;
}

.contact-detail p:hover,
.contact-detail strong:hover {
    text-shadow: 0 0 1px #0d1811, 0 0 1.5px #ffffff;
}

.phone-icon {
    width: 23px;
    height: 23px;
    top: 5px;
    animation-name: phone-an;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes phone-an {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

.mail-icon {
    width: 23px;
    height: 23px;
    top: 5px;
    position: relative;
    animation-name: mail-an;
    animation-duration: 1.5s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
}

@keyframes mail-an {
    0% {
        top: 5px;
    }
    10% {
        top: 2px;
    }
    20% {
        top: 6px;
    }
    30% {
        top: 2px;
    }
    40% {
        top: 6px;
    }
    50% {
        top: 5px;
    }
    75% {
        top: 5px;
    }
}

.clock-icon {
    width: 23px;
    height: 23px;
    top: 7px;
    animation-name: clock-an;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

@keyframes clock-an {
    25% {
        transform: rotate(-30deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/*
      contact-from
      */
.contact-form {
    height: 545px;
    background: #036060;
    transition: background-color 0.3s, border-radius 0.7s;
    border: 2px solid #036060da;
    border-radius: 40px;
    margin-left: 2px;
    padding-left: 20px;
    flex: 1;
}

.contact-form h2 {
    color: #0d1811;
    padding-top: 5px;
    transition: background-color 0.3s;
}

.contact-form p {
    color: #ccc;
    transition: background-color 0.3s;
}

.contact-form:hover {
    background-color: #036060da;
    border-radius: 1px;
}
.contact-form:hover h2 {
    color: #0d1811e0;
}
.contact-form:hover p {
    color: #ffffff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    width: 90%;
    padding: 5px;
    border: 1px solid #036060da;
    border-radius: 15px 50px 50px 15px;
    font-size: 13px;
    transition: box-shadow 0.3s;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="number"]:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    box-shadow: 0 0 4px #ccc;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    background-color: #048181;
    color: #ccc;
    padding: 10px 20px;
    margin-top: 5px;
    margin-left: auto;
    transition: background-color 0.3s, border-radius 0.7s;
    border: 2px solid #1b8787de;
    border-radius: 10px 20px;
}

.contact-form button[type="submit"]:hover {
    background-color: rgba(4, 129, 129, 0.7);
    color: #ffffff;
    border: 2px solid #1b8787de;
    border-radius: 20px 10px;
    text-shadow: 0 0 2px #ccc;
}

/* 
        Developer: Aryan Kora
        University ID: 230059030
        Function: Contact Form
*/

.contact-page-text {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    width: 100%;
    margin: auto;
    max-width: 1450px;
    height: auto;
    text-align: center;
    padding-bottom: 10px;
    padding-top: 1rem;
    word-break: keep-all;
    text-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}

.contact-text-box {
    font-size: 17px;
    position: relative;
    padding: 75px;
    width: 100%;
    height: auto;
    background: var(--bg-secondary);
    margin: 50px 10px;
    border-radius: 50px;
    transition: var(--transition-speed) ease-out;
    cursor: var(--cursor);
    background: linear-gradient(
        135deg,
        rgb(255, 255, 255, 0.1),
        rgb(255, 255, 255, 0)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgb(0, 0, 0, 0.37);
}

.contact-text-box:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#map {
    display: flex;
    width: 75%;
    padding-bottom: 50px;
    justify-content: center;
    align-items: center;
    margin: auto;
}

#formSection {
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    box-sizing: border-box;
    margin: 20px 0px;
}

.formCon {
    position: relative;
    min-width: 1100px;
    min-height: 550px;
    display: flex;
    z-index: 1;
    box-sizing: border-box;
}

.formCon .contactInfo {
    position: absolute;
    border-radius: 30px;
    top: 40px;
    width: 350px;
    height: calc(100% - 80px);
    background: var(--lighter);
    z-index: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.formCon .contactInfo h2 {
    color: white;
    font-size: 24px;
    font-weight: 500;
    box-sizing: border-box;
}

.formCon .contactInfo ul.info {
    position: relative;
    margin: 20px 0;
    padding-left: 0px;
    box-sizing: border-box;
}

.formCon .contactInfo ul.info li {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 20px 0;
    cursor: var(--pointer);
    align-items: center;
    box-sizing: border-box;
}

.formCon .contactInfo ul.info li span:nth-child(1) {
    width: 30px;
    min-width: 30px;
    box-sizing: border-box;
}

.formCon .contactInfo ul.info li span:nth-child(1) img {
    max-width: 100%;
    filter: invert(1);
    box-sizing: border-box;
}

.formCon .contactInfo ul.info li span:nth-child(2) {
    color: white;
    margin-left: 10px;
    font-weight: 300;
    box-sizing: border-box;
}

.formCon .contactInfo ul.sci {
    position: relative;
    display: flex;
    box-sizing: border-box;
}

.formCon .contactInfo ul.sci li {
    list-style: none;
    margin-right: 15px;
    box-sizing: border-box;
}

.formCon .contactInfo ul.sci li a {
    text-decoration: none;
    box-sizing: border-box;
}

.formCon .contactInfo ul.sci li a img {
    filter: invert(1);
    box-sizing: border-box;
    width: 30px;
}

.formCon .contactForm {
    border-radius: 30px;
    position: absolute;
    padding: 70px 50px;
    padding-left: 250px;
    margin-left: 150px;
    width: calc(100% - 150px);
    height: 100%;
    background: var(--floater);
    box-shadow: 0 50px 50px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.formCon .contactForm h2 {
    color: white;
    font-size: 24px;
    font-weight: 500;
    box-sizing: border-box;
}

.formCon .contactForm .formBox {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 30px;
    box-sizing: border-box;
    background: var(--floater);
}

.formCon .contactForm .formBox .inputBox {
    position: relative;
    margin-bottom: 35px;
    box-sizing: border-box;
    background: var(--floater);
}

.formCon .contactForm .formBox .inputBox.w50 {
    width: 47%;
    box-sizing: border-box;
    background: var(--floater);
}

.formCon .contactForm .formBox .inputBox.w100 {
    width: 100%;
    box-sizing: border-box;
    background: var(--floater);
}

.formCon .contactForm .formBox .inputBox input,
.formCon .contactForm .formBox .inputBox textarea {
    width: 100%;
    resize: none;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 300;
    color: white;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--text-primary);
    background: var(--floater);
    box-sizing: border-box;
}

.formCon .contactForm .formBox .inputBox textarea {
    height: 120px;
    box-sizing: border-box;
    background: var(--floater);
}

.formCon .contactForm .formBox .inputBox span {
    position: absolute;
    left: 0;
    padding: 5px 0;
    pointer-events: none;
    font-size: 18px;
    font-weight: 300;
    transition: 0.3s;
    box-sizing: border-box;
    color: white;
}

.formCon .contactForm .formBox .inputBox input:focus ~ span,
.formCon .contactForm .formBox .inputBox input:valid ~ span,
.formCon .contactForm .formBox .inputBox textarea:focus ~ span,
.formCon .contactForm .formBox .inputBox textarea:valid ~ span {
    transform: translateY(-20px);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: white;
    font-weight: 500;
    box-sizing: border-box;
}

.formCon .contactForm .formBox .inputBox input[type="button"] {
    position: relative;
    cursor: var(--pointer);
    background: var(--mint);
    color: white;
    border: none;
    max-width: 150px;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    transition: var(--transition-speed);
}

.formCon .contactForm .formBox .inputBox input[type="button"]:hover {
    background: var(--lighter);
    box-shadow: 0px 0px 10px var(--lighter);
    transform: scale(1.05);
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .formCon {
        width: 90%;
        min-width: auto;
        margin: 20px;
    }

    .formCon .contactInfo {
        position: relative;
        top: 0;
        height: 550px;
    }

    .formCon .contactForm {
        position: relative;
        width: calc(100% - 350px);
        padding-left: 0;
        margin-left: 0;
        padding: 40px;
        height: 550px;
    }
}

@media (max-width: 991px) {
    .formCon {
        display: flex;
        flex-direction: column-reverse;
    }

    .formCon .contactForm {
        width: 100%;
        height: auto;
    }

    .formCon .contactInfo {
        width: 100%;
        height: auto;
        flex-direction: row;
    }

    .formCon .contactInfo ul.sci {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .formCon .contactForm {
        padding: 25px;
        padding-top: 0px;
    }

    .formCon .contactInfo {
        padding: 25px;
        margin-bottom: 75px;
        flex-direction: column;
        align-items: flex-start;
    }

    .formCon .contactInfo ul.sci {
        margin-top: 40px;
    }

    .formCon .contactForm .formBox .inputBox.w50 {
        width: 100%;
    }
}
