* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #536878;
    --secondary-color: #EAE0C8;
    --transition: all 0.3s ease;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, white);
}

.contact-container {
    margin: 40px auto;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(135deg, #EAE0C8);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row; /* Horizontal layout for desktop */
    overflow: hidden;
    margin-top: 120px; /* Space for navbar */
    position: relative;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.contact-info,
.contact-form {
    position: relative;
    z-index: 1;
}

.contact-info {
    width: 40%; /* Original desktop width */
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6B7B8C 100%);
    color: white;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path/to/pattern.png') repeat;
    opacity: 0.1;
}

.contact-info h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    color:  #EAE0C8;
}

.info-details {
    margin-top: 60px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.info-item i {
    font-size: 24px;
    margin-right: 20px;
    color: var(--secondary-color);
}

.info-item h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.info-item p {
    color: #cccccc;
    margin: 0;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    width: 60%; /* Original desktop width */
    padding: 40px;
    background: #EAE0C8; /* Add slight transparency */
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(83, 104, 120, 0.1);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.form-group input:focus ~ .focus-border,
.form-group select:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
    left: 0;
}

.submit-btn {
    background: #536878;
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.submit-btn:hover {
    background: #6B7B8C;
    transform: translateY(-3px);
    box-shadow: #536878;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-content i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Animations */
@keyframes slideRight {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-right {
    animation: slideRight 1s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 1s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .contact-container {
        flex-direction: column; /* Stack sections vertically on mobile */
        margin-top: 100px; /* Adjusted space for navbar on mobile */
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .contact-info,
    .contact-form {
        width: 100%; /* Full width on mobile */
        padding: 20px;
    }

    .contact-info {
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .contact-info h1 {
        font-size: 1.8em; /* Smaller heading on mobile */
        margin-bottom: 15px;
    }

    .contact-info p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .info-details {
        margin-top: 30px;
    }

    .info-item {
        padding: 15px;
        margin-bottom: 15px;
        flex-direction: row; /* Keep icon and text in row */
        align-items: flex-start;
    }

    .info-item i {
        font-size: 20px;
        margin-right: 15px;
        margin-top: 3px; /* Align icon with text */
    }

    .info-item h3 {
        font-size: 1em;
    }

    .info-item p {
        font-size: 0.9em;
    }

    /* Social Links */
    .social-links {
        margin-top: 25px;
        justify-content: center;
        gap: 12px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9em;
    }

    /* Submit Button */
    .submit-btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    /* Ensure the navbar doesn't overlap */
    .main-navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .contact-container {
        margin-top: 80px;
        padding: 10px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .contact-info,
    .contact-form {
        padding: 15px;
    }

    .contact-info h1 {
        font-size: 1.5em;
    }

    .info-item {
        padding: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* If you have a fixed navbar, also ensure it has proper height */
.main-navbar {
    height: 80px; /* Adjust if needed */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
} 