h1 {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Krona One', sans-serif;
    color: #ECE9D8;
}

.contact-container input:-webkit-autofill,
.contact-container input:-webkit-autofill:hover,
.contact-container input:-webkit-autofill:focus,
.contact-container input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #5D6567 inset !important;
    box-shadow: 0 0 0px 1000px #5D6567 inset !important;
    background-color: #5D6567 !important;
    color: #ECE9D8 !important;
    -webkit-text-fill-color: #ECE9D8 !important; 
    caret-color: #ECE9D8 !important; 
}

section {
    margin: 0 15%;
    margin-bottom: 50px;
}

.contact-container {
    display: flex;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    margin: 75px 0;
    color: #ECE9D8;
    font-family: 'Montserrat', sans-serif;
}

.contact-info {
    flex: 1;
    margin-right: 2rem;
}

.contact-info h1 {
    font-size: 1.8rem;
    text-shadow: 4px 4px 1px rgba(41, 55, 58, 0.69);
}

.contact-info>p {
    text-align: center;
    margin-bottom: 40px;
}

.contact-container h2 {
    text-shadow: 2px 2px 1px rgba(41, 55, 58, 0.69);
    text-align: center;
    margin-bottom: 0;
    font-family: 'Krona One', sans-serif;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 1rem 0;
}

.contact-social ul {
    list-style-type: none;
    margin: 0;
    margin-top: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-social img {
    width: 50px;
}

.contact-social img:hover {
    transform: scale(1.05);
}

.contact-detail a {
    text-decoration: none;
    color: #ECE9D8;
    position: relative;
}

.contact-detail a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 4px;
    background-color: #ECE9D8;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .4s ease-in-out;
}

.contact-detail a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.contact-detail img {
    filter: invert(98%) sepia(39%) saturate(480%) hue-rotate(339deg) brightness(111%) contrast(84%);
}

.contact-form h2 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

.contact-form {
    background-color: rgba(140, 140, 140, 0.3);
    padding: 1rem 2rem;
    border-radius: 15px;
}

.contact-form form {
    flex: 1;
    display: flex;
    gap: 30px;
    flex-direction: column;
}

.input-box,
.textarea-box {
    width: 90%;
    position: relative;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: 2px solid #ECE9D8;
    color: #ECE9D8;
    background-color: transparent;
    padding: 1rem 10px 1rem 15px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 15px;
    padding: 0 4px;
    color: #ECE9D8;
    font-weight: 500;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
}

.input-box .active {
    top: 0;
    padding: 0 4px;
    font-weight: 500;
    color: #ECE9D8;
    background-color: #5D6567;
}

.contact-form textarea {
    resize: none;
    width: 100%;
    height: 100px;
    background-color: transparent;
    border: 2px solid #ECE9D8;
    padding: 0.5rem 10px 1rem 15px;
    color: #ECE9D8;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border-radius: 5px;
}

.textarea-box label {
    position: absolute;
    top: 1.5rem;
    left: 15px;
    padding: 0 4px;
    color: #ECE9D8;
    font-weight: 500;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
}

input[type="submit"] {
    padding: 1rem 2rem;
	border: none;
	background-color: #29373A;
	color: #ECE9D8;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	cursor: pointer;
    border-radius: 5px;
}

/* Media Queries */
@media (width < 1200px) {
    section {
        margin: 0 5%;
    }

    .contact-container {
        margin: 75px 0;
    }
}