/**
 * Estilos del Formulario B2B
 */

/* Contenedor principal */
.fwb2c-form-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.fwb2c-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabecera del formulario */
.fwb2c-form-header {
    background: linear-gradient(135deg, #E10A30 0%, #B50826 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.fwb2c-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.fwb2c-form-header p {
    margin: 0;
    opacity: 1;
    font-size: 16px;
    color: white;
}

/* Formulario */
.fwb2c-form {
    padding: 30px;
}

/* Secciones */
.fwb2c-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.fwb2c-section:last-of-type {
    border-bottom: none;
}

.fwb2c-section-title {
    color: #E10A30;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E10A30;
}

/* Filas y columnas */
.fwb2c-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px -10px;
}

.fwb2c-form-group {
    flex: 1;
    padding: 0 10px;
    margin-bottom: 15px;
}

.fwb2c-form-group.fwb2c-col-2 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Labels */
.fwb2c-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #d63638;
    font-weight: bold;
}

/* Inputs y selects */
.fwb2c-input,
.fwb2c-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fwb2c-input:focus,
.fwb2c-textarea:focus {
    outline: none;
    border-color: #E10A30;
    box-shadow: 0 0 0 3px rgba(225, 10, 48, 0.1);
}

.fwb2c-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Input de archivo */
.fwb2c-file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fwb2c-file-input:hover {
    border-color: #E10A30;
    background: #fef0f3;
}

.fwb2c-file-info {
    margin-top: 8px;
}

.fwb2c-file-info small {
    color: #666;
    font-size: 12px;
}

/* Preview de archivos */
.fwb2c-file-preview {
    margin-top: 15px;
}

.fwb2c-file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 8px;
}

.fwb2c-file-item-icon {
    margin-right: 10px;
    font-size: 20px;
}

.fwb2c-file-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.fwb2c-file-item-size {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.fwb2c-file-item-remove {
    background: #d63638;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.fwb2c-file-item-remove:hover {
    background: #b52828;
}

/* Sección legal */
.fwb2c-legal-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.fwb2c-legal-text {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-left: 4px solid #E10A30;
    border-radius: 4px;
}

.fwb2c-legal-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.fwb2c-legal-text p:last-child {
    margin-bottom: 0;
}

/* Checkbox */
.fwb2c-checkbox-group {
    margin-top: 15px;
}

.fwb2c-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.fwb2c-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.fwb2c-checkbox-label span {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* Mensajes de error */
.fwb2c-error {
    display: block;
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
    min-height: 0;
}

.fwb2c-error:empty {
    display: none;
}

.fwb2c-input.error,
.fwb2c-textarea.error {
    border-color: #d63638;
}

.fwb2c-general-error {
    background: #fef0f0;
    border-left: 4px solid #d63638;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: #d63638;
}

/* Botones */
.fwb2c-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.fwb2c-submit-btn {
    background: linear-gradient(135deg, #E10A30 0%, #B50826 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(225, 10, 48, 0.2);
    position: relative;
    min-width: 200px;
}

.fwb2c-submit-btn .btn-text,
.fwb2c-submit-btn .btn-loading {
    color: white;
}

.fwb2c-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(225, 10, 48, 0.3);
}

.fwb2c-submit-btn:active {
    transform: translateY(0);
}

.fwb2c-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fwb2c-submit-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de éxito */
.fwb2c-success-message {
    text-align: center;
    padding: 50px 30px;
}

.fwb2c-success-icon {
    width: 80px;
    height: 80px;
    background: #00a32a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.fwb2c-success-message h3 {
    color: #00a32a;
    font-size: 28px;
    margin: 0 0 20px 0;
}

.fwb2c-success-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .fwb2c-form-header h2 {
        font-size: 24px;
    }
    
    .fwb2c-form-header p {
        font-size: 14px;
    }
    
    .fwb2c-form {
        padding: 20px;
    }
    
    .fwb2c-form-group.fwb2c-col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .fwb2c-section-title {
        font-size: 18px;
    }
    
    .fwb2c-submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .fwb2c-form-wrapper {
        padding: 0;
        margin: 15px auto;
    }
    
    .fwb2c-form-container {
        border-radius: 0;
    }
    
    .fwb2c-form-header {
        padding: 20px 15px;
    }
    
    .fwb2c-form-header h2 {
        font-size: 20px;
    }
    
    .fwb2c-form {
        padding: 15px;
    }
}
