/* Override grid layout from main.css for contact page */
body {
    display: flex !important;
    flex-direction: column;
    grid-template-rows: none !important;
}

.contact-main {
    padding: 2rem;
    background: url('../assets/images/imgs_web/backgrounds/background_home.png') no-repeat center center;
    background-size: cover;
    position: relative;
    margin: 0 auto;
    flex: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 4rem;
    align-items: start;
    padding: 2rem 0;
}

.contact-info {
    padding: 3rem;
}

.contact-info h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #0388a6;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info>p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #01303a;
    line-height: 1.6;
    margin-bottom: 2rem;
    /*max-width: 400px;*/
}

.info-box {
    background: #fbf4e6;
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /*max-width: 300px;*/
}

.info-box p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #01303a;
    white-space: nowrap;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.info-box strong {
    font-weight: 600;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    height: fit-content;
    align-self: start;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    /* background: linear-gradient(135deg, rgba(3, 136, 166, 0.1) 0%, rgba(125, 211, 240, 0.2) 100%); */
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

.contact-form>* {
    position: relative;
    z-index: 1;
}

.contact-form h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #0388a6;
    margin-bottom: 0.75rem;
}

.contact-form>p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0388a6;
    box-shadow: 0 0 0 3px rgba(3, 136, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: #0388a6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.submit-btn:hover {
    background: #025a6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 136, 166, 0.3);
}

/* Contact page specific footer styling */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 48px;
}

footer .social-icons {
    margin-left: auto;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    footer .social-icons {
        margin-left: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contact-main {
        padding: 1rem;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .contact-info h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .contact-info>p {
        text-align: center;
        max-width: none;
    }

    .info-box {
        max-width: none;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 auto;
        width: 100%;
    }

    .submit-btn {
        float: none;
        width: 100%;
        text-align: center;
    }
}

/* Dark mode styles */
body.dark-mode .contact-info h1 {
    color: #4db6cd;
}

body.dark-mode .contact-info>p {
    color: #e0e0e0;
}

body.dark-mode .info-box {
    background: #fbf4e6;
}

body.dark-mode .info-box p {
    color: #e0e0e0;
}

body.dark-mode .contact-form {
    background: rgba(18, 18, 18, 0.9);
}

body.dark-mode .contact-form h2 {
    color: #4db6cd;
}

body.dark-mode .contact-form>p {
    color: #ccc;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #4db6cd;
    box-shadow: 0 0 0 3px rgba(77, 182, 205, 0.1);
}

body.dark-mode .submit-btn {
    background: #4db6cd;
}

body.dark-mode .submit-btn:hover {
    background: #6bc9d8;
}