/* --- General Setup --- */

.contact-section {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
/* --- The Card --- */

.contact-card {
    background: #ffffff;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
/* --- Left Side: Info --- */

.contact-info {
    flex: 1;
    background: #1e293b; /* Dark Slate Blue */
    color: #ffffff;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}
    /* Decorative Circle in background */

    .contact-info::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

.info-header h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.info-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.info-header p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}
/* Info Items (Address, Email, Phone) */

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.2rem;
    color: #60a5fa; /* Accent Blue */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .icon-box {
    background: #60a5fa;
    color: #1e293b;
    transform: scale(1.1);
}

.text-box h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.text-box p, .text-box a {
    font-size: 0.95rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

    .text-box a:hover {
        color: #60a5fa;
    }
/* Social Links */

.social-links {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .social-links p {
        margin-right: 10px;
        font-size: 0.9rem;
    }

    .social-links a {
        color: #ffffff;
        width: 35px;
        height: 35px;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background: #60a5fa;
            border-color: #60a5fa;
            color: #1e293b;
        }
/* --- Right Side: Map --- */

.contact-map {
    flex: 1.2; /* Takes up slightly more space */
    position: relative;
    padding-top: 30px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Ensure height on mobile */
    filter: grayscale(20%); /* Make map look sophisticated */
    transition: filter 0.3s ease;
}

.contact-map:hover .map-wrapper {
    filter: grayscale(0%);
}
/* Floating Tag on Map */

.map-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .map-tag i {
        color: #ef4444; /* Red pin color */
    }
/* --- Responsive Design --- */

@media (max-width: 850px) {
    .contact-card {
        flex-direction: column;
    }

    .contact-info {
        padding: 40px 30px;
    }

    .contact-map {
        height: 400px; /* Fixed height for map on mobile */
    }
}

@media (max-width: 480px) {
    .info-header h1 {
        font-size: 2rem;
    }

    .info-item {
        flex-direction: column;
    }

    .icon-box {
        margin-bottom: 10px;
    }
}

.form-label {
    font-size: 16px; /* increased from 14px */
    font-weight: 600;
    color: #222;
}

.form-wrapper {
    width: 100%;
    height: 100%;
    background: #ffffff;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-form {
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 500;
        color: #333;
    }

    .form-group input, .form-group textarea {
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        transition: border 0.3s ease;
    }

        .form-group input:focus, .form-group textarea:focus {
            border-color: #007bff;
            outline: none;
        }

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #007bff;
    color: #fff;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .submit-btn:hover {
        background: #0056b3;
    }

.section-heading {
    margin-top: 10px;
    margin-bottom: 20px;
}

.section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #1abc9c; /* teal color like your design */
    font-weight: 600;
    text-transform: uppercase;
}

    .section-subtitle::before, .section-subtitle::after {
        content: "";
        width: 40px;
        height: 2px;
        background-color: #1abc9c;
        display: inline-block;
    }

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2d3d;
    margin-top: 10px;
    position: relative;
}
    /* Optional small underline under main title */

    .section-title::after {
        content: "";
        display: block;
        width: 50px;
        height: 3px;
        background-color: #1abc9c;
        margin: 8px auto 0;
        border-radius: 2px;
    }

.section-heading {
    margin-bottom: 20px;
}

.section-title-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #60a5fa;
}

    .section-title-with-lines::before, .section-title-with-lines::after {
        content: "";
        flex: 1;
        height: 2px;
        background-color: #1abc9c; /* your theme color */
        max-width: 60px;
    }

    .section-title-with-lines span {
        white-space: nowrap;
    }

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================= */
/* CONTACT FORM UI IMPROVEMENTS  */
/* ============================= */

/* Form container */
.contact-form {
    background: #ffffff;
    border-radius: 12px;
}

    /* Input fields */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.25s ease;
        background-color: #f9fafb;
    }

        /* Focus effect */
        .contact-form input:focus,
        .contact-form textarea:focus,
        .contact-form select:focus {
            border-color: #60a5fa;
            background-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
        }

    /* Labels */
    .contact-form label {
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 6px;
    }

    /* Form group spacing */
    .contact-form .form-group {
        margin-bottom: 16px;
    }

/* Two column spacing fix */
.data-flex > div {
    width: 100%;
}

/* Button */
.contact-form .submit-btn {
    background: linear-gradient(135deg, #60a5fa, #1d4ed8);
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

    /* Button hover */
    .contact-form .submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

/* Error messages */
.contact-form .invalid-feedback {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

/* Resume remove button polish */
#removeResume {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s ease;
}

    #removeResume:hover {
        background: #b91c1c;
    }

/* Responsive tweak */
@media (max-width: 768px) {
    .data-flex {
        flex-direction: column !important;
    }
}

.contact-form .invalid-feedback {
    display: none;
}
