/* =====================================================
   CONTACT SECTION: UNIFIED COMPACT CARD LAYOUT
===================================================== */

/* 1. Section Background & Spacing */
.contact-section {
    padding: 100px 0;
    background: #f3f3f5;
    position: relative;
    overflow: hidden;
}

.contact-section .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.contact-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #28282b;
}

.contact-section .section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* 2. The Main "Unified" Card Wrapper 
   (This now holds the border and shadow, instead of the inner containers) */
.contact-wrapper {
    display: flex;
    max-width: 950px; /* Limits width for a compact look */
    margin: 0 auto;

    /* NEW: White background + Gradient Border Trick */
    background: 
        linear-gradient(#fff, #fff) padding-box, /* Inner white background */
        linear-gradient(135deg, var(--gradient-1), var(--gradient-2)) border-box; /* Gradient border source */
    border: 2px solid transparent; /* Transparent border allows gradient to show through */
    
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensures the gradient side stays inside rounded corners */
}

/* 3. Left Side: The Form (60% Width) */
.contact-form-container {
    flex: 1.5;
    padding: 40px;
    /* Removed individual borders/shadows since wrapper has them now */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form .form-label {
    font-size: 1rem;
    font-weight: 600;

    /* CHANGED: Dark text */
    color: #374151;

    margin-left: 4px;
}

/* Compact Input Fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s;
}

.input-wrapper:focus-within i {
    color: var(--gradient-3);
}

.contact-form .form-input,
.contact-form .form-textarea {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Compact padding */
    
    /* CHANGED: Light background and border */
    background: #f3f3f5; 
    border: 1px solid #d1d5db; /* Light grey border */
    color: #333333; /* Dark text */

    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    border-color: var(--gradient-3);
    
    /* CHANGED: Keep background white on focus */
    background: #f3f3f5;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); /* Optional: adds a subtle glow */
}

.contact-form .form-textarea {
    resize: none;
    min-height: 100px; /* Shorter height */
    padding-top: 12px;
}

.input-wrapper.textarea-wrapper i {
    top: 14px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

/* 4. Right Side: The Info Sidebar (40% Width) 
   (This side gets the nice gradient background) */
.contact-info-container {
    /* REMOVED: background gradient */
    background: transparent; 
    
    /* CHANGED: Light grey separator line instead of dark border */
    border-left: 1px solid #f0f0f0;
    
    padding: 40px;
    display: flex;
    flex-direction: column; /* justify-content: space-between; */
    gap: 40px;
    position: relative;
}

/* REMOVED: The backdrop blur ::before element is no longer needed on white */
.contact-info-container::before {
    display: none;
}

/* NEW: Force the "Quick Contact" title to be dark */
.contact-info-container h3 {
    color: #111827 !important; /* Dark black */
}

/* Redesigning the Info Cards to look like list items */
.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    /* Remove padding */
    background: transparent;
    /* Remove background */
    border: none;
    /* Remove border */
    border-radius: 0;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateX(5px);
    /* No border change needed */
}

.info-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* CHANGED: Light grey background instead of glass effect */
    background: #f3f4f6; 
    
    /* CHANGED: Dark grey icon color */
    color: #4b5563;

    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-card-content h4 {
    font-size: 0.95rem;
    font-weight: 700;

    /* CHANGED: Dark text */
    color: #1f2937;

    margin-bottom: 2px;
}

.info-card-content p {
    font-size: 0.9rem;

    /* CHANGED: Medium grey text */
    color: #6b7280;

    margin: 0;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    /* Gold accent for links */
    text-decoration: none;
}

/* =====================================================
   RESPONSIVE (Mobile & Tablet)
===================================================== */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column-reverse; /* Info on TOP */
        max-width: 100%;
        margin: 0 20px;
    }

    .contact-info-container {
        padding: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        gap: 20px; /* Consistent spacing between rows/cols */
        justify-content: flex-start; /* Align items to start, don't spread them */
    }

    /* FIX: Force the Title to take full width so it sits on top */
    .contact-info-container h3 {
        width: 100%;
        margin-bottom: 5px;
    }
    
    /* FIX: Make cards occupy exactly half the space (minus the gap) */
    .info-card {
        width: calc(50% - 10px); 
        flex: 0 0 calc(50% - 10px); /* Prevents shrinking/growing */
    }

    .contact-form-container {
        padding: 30px;
    }
}

/* Small Mobile (Stack everything vertically) */
@media (max-width: 575px) {
    .contact-wrapper {
        margin: 0 15px;
    }
    
    .contact-info-container {
        flex-direction: column; /* Stack vertically */
    }
    
    .info-card {
        width: 100%; /* Full width on small phones */
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}