/**
 * Business Formation Frontend Styles
 *
 * @package BusinessFormation
 * @author Jeremiah Castillo - Kre8ivTech, LLC
 */

.bf-formation-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.bf-formation-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.bf-form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3338;
}

/* Progress Steps */
.bf-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.bf-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.bf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.bf-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.bf-step.active .bf-step-number {
    background: #2271b1;
    color: #fff;
}

.bf-step.completed .bf-step-number {
    background: #46b450;
    color: #fff;
}

.bf-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.bf-step.active .bf-step-label {
    color: #2271b1;
    font-weight: 600;
}

/* Form Steps */
.bf-form-step {
    display: none;
}

.bf-form-step.active {
    display: block;
}

.bf-form-step h3 {
    margin-bottom: 30px;
    color: #2c3338;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

/* Form Fields */
.bf-form-row {
    margin-bottom: 25px;
}

.bf-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3338;
}

.bf-form-row input[type="text"],
.bf-form-row input[type="email"],
.bf-form-row input[type="tel"],
.bf-form-row select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.bf-form-row input:focus,
.bf-form-row select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.bf-form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.bf-field-description {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

.required {
    color: #d63638;
}

/* Services */
.bf-services-list {
    margin-bottom: 30px;
}

.bf-service-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.bf-service-item:hover {
    border-color: #2271b1;
    background: #f8f9fa;
}

.bf-service-item input[type="checkbox"] {
    margin-right: 10px;
}

.bf-service-item label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
}

.bf-service-item strong {
    margin-bottom: 5px;
    color: #2c3338;
}

.bf-service-item span {
    font-size: 13px;
    color: #666;
}

/* Review Section */
.bf-review-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.bf-review-section {
    margin-bottom: 20px;
}

.bf-review-section h4 {
    margin: 0 0 10px;
    color: #2271b1;
}

.bf-review-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.bf-review-item:last-child {
    border-bottom: none;
}

.bf-review-label {
    font-weight: 600;
    color: #2c3338;
    display: inline-block;
    width: 150px;
}

.bf-review-value {
    color: #666;
}

/* Buttons */
.bf-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.bf-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bf-btn-prev {
    background: #f0f0f1;
    color: #2c3338;
}

.bf-btn-prev:hover {
    background: #dcdcde;
}

.bf-btn-next,
.bf-btn-primary {
    background: #2271b1;
    color: #fff;
}

.bf-btn-next:hover,
.bf-btn-primary:hover {
    background: #135e96;
}

.bf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.bf-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.bf-form-messages.show {
    display: block;
}

.bf-form-messages.success {
    background: #d5f3db;
    color: #1e8f3b;
    border: 1px solid #46b450;
}

.bf-form-messages.error {
    background: #fce2e1;
    color: #d63638;
    border: 1px solid #d63638;
}

/* Loading State */
.bf-formation-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bf-formation-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bf-formation-container {
        padding: 20px;
    }
    
    .bf-form-row-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .bf-progress-steps {
        flex-wrap: wrap;
    }
    
    .bf-step {
        margin-bottom: 20px;
    }
    
    .bf-step-label {
        display: none;
    }
    
    .bf-form-actions {
        flex-direction: column;
    }
    
    .bf-btn {
        width: 100%;
    }
}
