* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow: auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('img/sunset-horizon.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: white;
}

.contact-info {
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.contact-info .title {
    color: white;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    text-align: center; /* Center the title */
}

.text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: center; /* Center the text */
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the info items */
    align-items: center; /* Center horizontally */
    flex-grow: 1; /* Allow this section to grow and center content */
}

.information {
    
    align-items: center;
    margin: 1.2rem 0;
    width: 100%; /* Full width */
    justify-content: center; /* Center the content */
}

.information a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    gap: 10px;
}

.information a:hover {
    text-decoration: none !important;
}

.icon {
    width: 28px;
    color: white;
    font-size: 1.2rem;
}

/* Ensure all icons are white */
.icon,
.fab,
.fas {
    color: white !important;
}

.social-media {
    margin-top: 2rem;
    text-align: center; /* Center social media */
}

.social-media p {
    color: white;
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center; /* Center social icons */
}

.back_button {
    margin-top: -10px;
    margin-bottom: -30px;
    text-align: right;
}

.back_button a {
    text-decoration: none;
    color: white;
}

.back_button a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
}

.contact-form {
    padding: 2.5rem;
    position: relative; /* For positioning the back button */
}

.title {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.input-container {
    position: relative;
    margin: 1.2rem 0;
}

.input {
    width: 100%;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.input:focus {
    border: 1px solid white;
}

textarea.input {
    min-height: 150px;
    resize: vertical;
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s;
}

.input-container.textarea label {
    top: 1.2rem;
    transform: translateY(0);
}

.input-container.focus label {
    top: 0;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.btn_send {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
    width: 100%; /* Full width button */
}

.btn_send:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn_back {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn_back:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Form buttons container */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 850px) {
    .form {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 1.8rem;
    }
    
    .contact-form {
        padding: 1.8rem;
    }
    
    .btn_back {
        position: static;
        margin-top: 1rem;
        order: 2;
    }
    
    .btn_send {
        order: 1;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .input {
        padding: 0.7rem 1rem;
    }
}