/* Base Container Styles */
.company-form-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Section Styling */
.company-form-section,
.contact-form-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.company-form-section-title {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Grid Layouts */
.company-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.company-form-full-width {
    grid-column: span 2;
}

/* Form Elements */
.company-form-label,
.contact-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.company-form-input,
.contact-form-input,
.company-form-select,
.contact-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s ease;
}

.company-form-textarea,
.contact-form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    resize: vertical;
}

/* Focus States */
.company-form-input:focus,
.contact-form-input:focus,
.company-form-select:focus,
.contact-form-select:focus,
.company-form-textarea:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Required Field Indicator */
.company-form-required {
    color: #ef4444;
    margin-left: 2px;
}

/* Collapsible Sections */
.contact-section-header {
    background-color: #f3f4f6;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.contact-section-title {
    font-weight: 600;
    color: #374151;
}

.contact-section-content {
    display: none;
    padding: 1rem 0;
}

.contact-section-content.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Action Buttons */
.company-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.company-form-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-form-button-blue {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.company-form-button-blue:hover {
    background-color: #2563eb;
}

.company-form-button-green {
    background-color: #10b981;
    color: white;
    border: none;
}

.company-form-button-green:hover {
    background-color: #059669;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .company-form-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .company-form-grid,
    .contact-section-content.active {
        grid-template-columns: 1fr;
    }
    
    .company-form-actions {
        flex-direction: column;
    }
    
    .company-form-button {
        width: 100%;
    }
}
