.company-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.company-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.company-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
}
.company-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 72rem;
    max-height: min(94vh, 880px);
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(221, 214, 254, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.company-modal.is-open .company-modal-dialog {
    transform: translateY(0) scale(1);
}
.company-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border-bottom: 1px solid #e9d5ff;
    flex-shrink: 0;
}
.company-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.company-modal-sub {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.35rem 0 0;
    line-height: 1.5;
}
.company-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.625rem;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
}
.company-modal-close:hover {
    background: #fff;
    color: #0f172a;
}
.company-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .company-modal-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}
.company-modal-details,
.company-modal-form-panel {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
}
.company-modal-details {
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
}
@media (min-width: 1024px) {
    .company-modal-details {
        border-bottom: none;
        border-right: 1px solid #f1f5f9;
    }
}
.company-modal-intro {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.company-modal-section {
    margin-bottom: 1.25rem;
}
.company-modal-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}
.company-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}
.company-modal-list li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.5;
}
.company-modal-list li::before {
    content: '✓';
    color: #7c3aed;
    font-weight: 700;
    flex-shrink: 0;
}
.company-modal-steps {
    display: grid;
    gap: 0.625rem;
}
.company-modal-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.company-modal-step-num {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #7c3aed;
    background: #ede9fe;
    border-radius: 0.5rem;
    padding: 0.25rem 0.45rem;
    flex-shrink: 0;
}
.company-modal-step-body strong {
    display: block;
    font-size: 0.8125rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}
.company-modal-step-body p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.company-modal-industries {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.6;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}
.company-modal-form-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
.company-modal-form-head p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.45;
}
.company-modal-form .field {
    margin-bottom: 0.875rem;
}
.company-modal-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}
.company-modal-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 480px) {
    .company-modal-field-row { grid-template-columns: 1fr; }
}
.company-modal-form input,
.company-modal-form textarea,
.company-modal-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 0.875rem;
    outline: none;
}
.company-modal-form input:focus,
.company-modal-form textarea:focus,
.company-modal-form select:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}
.company-modal-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}
.company-modal-submit:hover:not(:disabled) {
    filter: brightness(1.05);
}
.company-modal-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}
.company-modal-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    text-align: center;
}
.company-modal-alert-error {
    background: #fef2f2;
    color: #b91c1c;
}
.company-modal-success {
    text-align: center;
    padding: 2rem 1rem;
}
.company-modal-success-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 1.5rem;
    line-height: 3rem;
}
.company-modal-success h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.company-modal-success p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}
body.company-modal-open {
    overflow: hidden;
}
