/* Base Styles */
:root {
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #ffffff;
    --muted-text: #b3b3b3;
    --card-bg: #1e1e1e;
    --border-color: #333333;
}

.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #faedd9);
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Container */
.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.1);
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-group input,
.input-group textarea,
.select-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #2d2d2d;
    color: var(--light-text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    order: 1;
}

/* Style for labels */
.input-group label {
    order: 2;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 5px;
    transition: all 0.3s ease;
}

/* Hide the placeholder */
.input-group input::placeholder,
.input-group textarea::placeholder {
    opacity: 0;
}

/* Show label when input is focused or has content */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.select-group select:focus + label,
.select-group select:not([value=""]) + label {
    color: var(--primary-color);
    transform: translateY(0);
}

.input-group input:focus,
.input-group textarea:focus,
.select-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--muted-text);
}

.input-group i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.input-group:focus-within i {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Style for select group */
.select-group {
    position: relative;
    order: 1;
    width: 100%;
}

/* Hide default dropdown arrow */
.select-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
    padding-right: 40px; /* Make room for our custom arrow */
}

/* Custom dropdown arrow */
.select-group::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 35%;
    transform: translateY(-50%);
    color: var(--muted-text);
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Adjust padding for textarea to prevent text under icon */
.input-group textarea {
    padding-top: 15px;
    min-height: 120px;
    resize: vertical;
}

/* Ensure icons stay in place on hover/focus */
.input-group:hover i,
.input-group:focus-within i {
    transform: scale(1.1);
}

/* Adjust textarea label position */
.input-group textarea + label {
    margin-top: 10px;
}

/* Adjust select group label */
.select-group + label {
    order: 2;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 5px;
    display: block;
}

/* Adjust for select when an option is selected */
.select-group select:not([value=""]) + label,
.select-group select:focus + label {
    color: var(--primary-color);
}

/* Hover and focus states for select */
.select-group:focus-within::after {
    color: var(--primary-color);
    transform: translateY(-50%) rotate(180deg);
}

/* Style the select options */
.select-group select option {
    background-color: var(--card-bg);
    color: var(--light-text);
    padding: 10px;
}

/* Style the select when it's focused */
.select-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary-color), #faedd9);
    background-size: 200% auto;
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #faedd9, var(--primary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

#btn-clr{
    color: #303030;
}

#btn-clr:hover{
    color: #000000;
}

/* Contact Info */
.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.1);
}

.info-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.info-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid transparent;
}

.contact-method:hover {
    transform: translateX(5px);
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: var(--primary-color);
    transform: rotate(10deg);
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon i {
    color: #111;
}

.contact-details h4 {
    color: var(--light-text);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details a, 
.contact-details p {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Social Links */
.social-connect {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-connect h4 {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #faedd9);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover i {
    color: #111;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: var(--darker-bg);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.map-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: translateX(-50%);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-container,
.contact-info,
.map-container {
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-info {
    animation-delay: 0.2s;
}

.map-container {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-container,
    .contact-info {
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .contact-method {
        padding: 12px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .form-header h2,
    .info-header h2 {
        font-size: 1.5rem;
    }
    
    .form-header p,
    .info-header p {
        font-size: 0.9rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin: 0 0 15px 0;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}
