/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f4f6fa;
    color: #111;
    line-height: 1.6;
}

/* ========== CONTACT HEADER ========== */
.contact-header {
    background: linear-gradient(135deg, #3366ff, #1a45ff);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: fadeDown 1s ease;
}

.contact-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeUp 1.2s ease;
    padding: 0 15px;
}

/* ========== CONTACT CONTAINER ========== */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    flex-wrap: nowrap;
    /* side-by-side on desktop */
}

/* ========== CONTACT INFO (LEFT) ========== */
.contact-info {
    flex: 0 0 35%;
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: fadeInLeft 1s ease;
}

.contact-info h2 {
    margin-bottom: 25px;
    color: #1a45ff;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
    align-items: flex-start;
}

/* 🔹 FIXED ICON BOX */
.icon-box {
    font-size: 1.6rem;
    width: 60px;
    height: 60px;
    background: #e4edff;
    color: #3366ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Hover effect for icons */
.icon-box:hover {
    background: #3366ff;
    color: #fff;
    transform: scale(1.05);
}

.info-item h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: #111;
}

.info-item p {
    font-size: 0.95rem;
    color: #555;
}

/* ========== SOCIAL LINKS ========== */
.social-links {
    margin-top: 25px;
}

.social-links h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #111;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4edff;
    color: #3366ff;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #3366ff;
    color: #fff;
    transform: translateY(-3px);
}

/* ========== CONTACT FORM (RIGHT) ========== */
.contact-form {
    flex: 0 0 65%;
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: fadeInRight 1s ease;
}

.contact-form h2 {
    margin-bottom: 20px;
    color: #1a45ff;
    font-size: 1.5rem;
}

.contact-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #3366ff;
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.15);
}

.contact-form textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
}

.contact-form button {
    padding: 15px;
    width: 100%;
    background: linear-gradient(135deg, #3366ff, #1a45ff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #2646e6;
    transform: translateY(-2px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media(max-width: 900px) {
    .contact-container {
        flex-direction: column;
        margin: -40px 15px 40px;
    }

    .contact-info,
    .contact-form {
        flex: 1 0 100%;
    }

    .contact-header {
        padding: 50px 20px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1rem;
    }
}

@media(max-width: 480px) {
    .contact-header {
        padding: 40px 15px;
    }

    .contact-header h1 {
        font-size: 1.75rem;
    }

    .contact-header p {
        font-size: 0.95rem;
    }

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

    .contact-form button {
        font-size: 1rem;
        padding: 12px;
    }
}
