/* Contact Information Section - Match Basic Information Styling */

/* Convert contact section from collapsible to regular form section */
#contact-section-wrapper {
    /* Remove collapsible behavior visually */
    background: white !important; /* Ensure white background */
}

/* Override any gray backgrounds */
#contact-section-wrapper,
#contact-section-wrapper .collapsible-section,
#contact-section-wrapper .collapsible-content,
#contact-section-wrapper .form-section-content {
    background: white !important;
}

/* Remove custom header styling - let it use default collapsible styling */

/* White background when expanded */
#contact-section-wrapper .collapsible-content {
    background: white !important; /* White background to match Basic Info */
    padding: 0 !important;
}


/* Style the content area with WHITE background */
#contact-section-wrapper .form-section-content {
    padding: 1.5rem !important;
    background: white !important; /* White background */
}

/* Create a consistent grid layout for contact fields */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Email field spans 2 columns */
.contact-info-grid .email-field {
    grid-column: span 2;
}

/* Phone field (if added) spans 2 columns */
.contact-info-grid .phone-field {
    grid-column: span 2;
}

/* Address section styling */
.address-section {
    margin-top: 1.5rem;
}

.address-section h5 {
    margin: 0 0 1rem 0 !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    display: flex !important;
    align-items: center !important;
}

.address-section h5 i {
    margin-right: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

/* Street address spans full width */
.address-street {
    margin-bottom: 1rem;
}

/* City, State, Zip in 3 columns */
.address-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid .email-field,
    .contact-info-grid .phone-field {
        grid-column: span 1;
    }
    
    .address-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .address-grid > :last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid .email-field,
    .contact-info-grid .phone-field {
        grid-column: span 1;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .address-grid > * {
        grid-column: span 1 !important;
    }
}

/* Remove border between basic and contact sections */
.form-section + #contact-section-wrapper {
    border-top: none !important;
}

/* Ensure consistent spacing */
#contact-section-wrapper {
    margin: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

/* Match form control styling - GRAY BACKGROUND for input fields */
#contact-section-wrapper .form-control {
    background-color: #f3f4f6 !important; /* Light gray background like Basic Info */
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease !important;
}

#contact-section-wrapper .form-control:focus {
    background-color: #f9fafb !important; /* Slightly lighter gray on focus */
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Ensure select dropdowns also have gray background */
#contact-section-wrapper select.form-control {
    background-color: #f3f4f6 !important;
}

/* Disabled fields should be even more gray */
#contact-section-wrapper .form-control:disabled {
    background-color: #e5e7eb !important;
    cursor: not-allowed !important;
}

/* Match label styling */
#contact-section-wrapper label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.375rem !important;
}