/* styles/contact.css */

.contact-main {
    padding: 4rem 0; /* Adjusted padding */
    background-color: var(--bg-color);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem; /* Added padding for smaller screens */
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.contact-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.dark-mode .contact-header h1 {
    color: #a5d6a7;
}

.contact-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
    opacity: 0.8;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

/* Form Styles */
.contact-form-card {
    padding: 3rem;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select { 
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form select {
    /* Styles specific to the select dropdown */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23231f1f' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}


/* --- FIX FOR DARK MODE AUTOFILL --- */
.dark-mode .contact-form input:-webkit-autofill,
.dark-mode .contact-form input:-webkit-autofill:hover, 
.dark-mode .contact-form input:-webkit-autofill:focus, 
.dark-mode .contact-form input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-color) !important;
    box-shadow: 0 0 0 30px var(--bg-color) inset !important;
    -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
}

.dark-mode .contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9d1d9' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}


.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(44, 107, 47, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.send-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: white;
}

/* Contact Info Styles */
.contact-info-card .card {
    padding: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.info-item p,
.info-item a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.9;
}

.info-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-main {
        padding: 3rem 0;
    }
    .contact-container {
        padding: 0 4%;
    }
    .contact-form-card {
        padding: 2rem;
    }
}
